Skip to content

Conversation

@AlvieH
Copy link
Owner

@AlvieH AlvieH commented Jun 11, 2020

Users able to upload addresses of their favorite coffee shops to the datastore server with light maps integration on the maps.html page.

Note: if there's blobstore stuff in here, that's because this branch was intended to build off blobstore integration but then blobstore was removed from the project - disregard any mentions and sorry about that!

EDIT: deployed to this link

Copy link
Collaborator

@askewc askewc left a comment

Choose a reason for hiding this comment

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

Looks pretty good, man!! Only one nit.

<p>Please put in the address of your favorite coffee place: </p>
<input type="text" name="address">
</br>
<p> Is your coffee place a starbucks?</p>
Copy link
Collaborator

Choose a reason for hiding this comment

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

no space after

Copy link
Owner Author

Choose a reason for hiding this comment

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

addressed in latest commit!

@AlvieH AlvieH requested a review from askewc June 12, 2020 14:22
/* Represents a user-uploaded coffee shop at specific address */
public class Cafe {
String address;
boolean isStarbucks;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you make this class "Immutable"? An example I found from the web:
https://howtodoinjava.com/java/basics/how-to-make-a-java-class-immutable/

Copy link
Owner Author

Choose a reason for hiding this comment

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

Done!

@AlvieH AlvieH requested a review from zkoogle June 12, 2020 20:06
this.isStarbucks = starbucks;
}

public static Cafe makeNewCafe(String address, boolean starbucks) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't really have much benefit in this case. We make a separate static creator when there is a complex business logic to call the constructor. There is no reason to hide the constructor if the parameters are identical.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Done!

private final boolean isStarbucks;

public Cafe(String address, boolean starbucks) {
private Cafe(String address, boolean starbucks) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd prefer the 'isStarbucks' to 'starbucks'.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Done!

@AlvieH AlvieH requested a review from zkoogle June 15, 2020 16:12
@zkoogle
Copy link
Collaborator

zkoogle commented Jun 15, 2020

LGTM. Please resolve the conflict.

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.

3 participants