-
Notifications
You must be signed in to change notification settings - Fork 13
Initial code checkin #17
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: master
Are you sure you want to change the base?
Conversation
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.
Some feedback to make the code more idiomatic
public int y; | ||
|
||
public PersonLocation(String person_, int x_, int y_) { | ||
person = person_; |
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.
More idiomatic: this.person = person
- don't use underscores.
package shouty; | ||
|
||
public class PersonLocation { | ||
public String person; |
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.
Be a good citizen - declare all immutable fields as final
import io.cucumber.java.Before; | ||
import io.cucumber.java.Scenario; | ||
|
||
import java.io.Console; |
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.
Not used
Code for the Connect 2020 session with Emmanuel