Sitelet https://github.com/cucumber-examples/shouty.java/pull/17
Skip to content

Initial code checkin - #17

Draft
sebrose wants to merge 7 commits into
masterfrom
connect
Draft

sebrose wants to merge 7 commits into
masterfrom
connect

Conversation

@sebrose

@sebrose sebrose commented Apr 16, 2020

Copy link
Copy Markdown
Contributor

Code for the Connect 2020 session with Emmanuel

@aslakhellesoy aslakhellesoy left a comment

Copy link
Copy Markdown
Contributor

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_;

Copy link
Copy Markdown
Contributor

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;

Copy link
Copy Markdown
Contributor

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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not used

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