Skip to content
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

damian-moreno--practice-day5 #31

Open
wants to merge 20 commits into
base: practice-day5
Choose a base branch
from

Conversation

damian-mor
Copy link

Hello! just a quick note: rubocop keep telling me that the error handling-blocks where 'redundant' i think for the sake of this exercise was necessary since I needed to raise the errors and catch them on the same block, wich i agree is redundant.
I personally always have issues locating where to raise/catch errors and this practice just confused me more. @jakobhans @hivanreyes @Apostat23

attr_accessor :missions

@@mission_status = %w(active paused aborted accomplished failed)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would avoid this extra empty line here as @@mission_status is set and used right after.

}
end
end
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

An extra empty line at the end of the file is needed and taken as a good practice.

players: {},
control: {},
status: nil
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would define this kind of hashes using one line @board = { players: {}, control: {}, status: nil }


x = ErrorTest.new
x.new_worker name: 'damian'
x.new_mission(pack: {})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same thing, please add an extra empty line at the end of the files.

Copy link
Collaborator

@Apostat23 Apostat23 left a comment

Choose a reason for hiding this comment

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

We should set a sync to talk about the Rubocop issue you report, lets see what is tat about.

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.

2 participants