-
Notifications
You must be signed in to change notification settings - Fork 0
Review #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: review
Are you sure you want to change the base?
Conversation
Constants
commit b814f3c Author: 240827 <[email protected]> Date: Tue May 23 23:42:35 2023 +0200 dodanie dokumentacji do klasy DefaultCountingOutRhymer commit b0d0113 Author: 240827 <[email protected]> Date: Tue May 23 23:10:17 2023 +0200 utworzenie metody testRhymers
kowallus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 pts (too late penalty)
Specific issues are inlined in the code.
Lack of encapsulation in Node class (Task 11 in "accessory i hermetyzacja")
I suggest starting from the beginning and redo task avoiding mistakes. Fork iis-pio-2023 repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commits polluted with project files (.settings, .idea, etc.).
| */ | ||
| public class DefaultCountingOutRhymer { | ||
|
|
||
| public static final int NUMBER = 12; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong name.
Errors in collaborators work (lack of good review). Extracting constants is done incorrectly. Have you used review hints ('Github - PR checkpoint' at wikamp).
| * @return boolean value indicating if the rhymer is full. | ||
| */ | ||
| public boolean isFull() { | ||
| return total == 11; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another constant. It is related to NUMBER
| * @return boolean value indicating if the rhymer is empty. | ||
| */ | ||
| public boolean isEmpty() { | ||
| return total == NEGATIVE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This constant should be different (separate) than the one in peekaboo and countOut methods.
| @@ -0,0 +1,21 @@ | |||
| package edu.kis.vh.nursery; | |||
|
|
|||
| public class FifoRhymer extends DefaultCountingOutRhymer { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fifo -> FIFO
|
|
||
| public class FifoRhymer extends DefaultCountingOutRhymer { | ||
|
|
||
| private DefaultCountingOutRhymer internalRhymer = new DefaultCountingOutRhymer(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be final
| public int countOut() { | ||
| while (!isEmpty()) | ||
|
|
||
| internalRhymer.countIn(super.countOut()); | ||
|
|
||
| int ret = internalRhymer.countOut(); | ||
|
|
||
| while (!internalRhymer.isEmpty()) | ||
|
|
||
| countIn(internalRhymer.countOut()); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting convention issues (problems with merging 'format' branch?)
you forked a wrong repo
| import edu.kis.vh.nursery.defaultCountingOutRhymer; | ||
| import edu.kis.vh.nursery.DefaultCountingOutRhymer; | ||
|
|
||
| public interface Rhymersfactory { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rhymersfactory -> RhymersFactory
| public interface Rhymersfactory { | ||
|
|
||
| public defaultCountingOutRhymer GetStandardRhymer(); | ||
| public DefaultCountingOutRhymer GetStandardRhymer(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong convention. Method names should start from a lower case.
kowallus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 pts (too late penalty)
Specific issues are inlined in the code.
Lack of encapsulation in Node class (Task 11 in "accessory i hermetyzacja")
I suggest starting from the beginning and redo task avoiding mistakes. Fork iis-pio-2023 repo.
No description provided.