Skip to content

Conversation

@GT-IZT
Copy link
Owner

@GT-IZT GT-IZT commented May 23, 2023

No description provided.

@GT-IZT GT-IZT requested a review from kowallus May 23, 2023 23:21
Copy link
Collaborator

@kowallus kowallus left a 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.

Copy link
Collaborator

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;
Copy link
Collaborator

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;
Copy link
Collaborator

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;
Copy link
Collaborator

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 {
Copy link
Collaborator

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();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be final

Comment on lines +8 to +18
public int countOut() {
while (!isEmpty())

internalRhymer.countIn(super.countOut());

int ret = internalRhymer.countOut();

while (!internalRhymer.isEmpty())

countIn(internalRhymer.countOut());

Copy link
Collaborator

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 {
Copy link
Collaborator

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();
Copy link
Collaborator

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.

Copy link
Collaborator

@kowallus kowallus left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants