-
Notifications
You must be signed in to change notification settings - Fork 0
Maps integration #7
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
askewc
left a comment
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.
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> |
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.
no space after
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.
addressed in latest commit!
| /* Represents a user-uploaded coffee shop at specific address */ | ||
| public class Cafe { | ||
| String address; | ||
| boolean isStarbucks; |
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.
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/
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.
Done!
| this.isStarbucks = starbucks; | ||
| } | ||
|
|
||
| public static Cafe makeNewCafe(String address, boolean starbucks) { |
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.
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.
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.
Done!
| private final boolean isStarbucks; | ||
|
|
||
| public Cafe(String address, boolean starbucks) { | ||
| private Cafe(String address, boolean starbucks) { |
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.
I'd prefer the 'isStarbucks' to 'starbucks'.
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.
Done!
|
LGTM. Please resolve the conflict. |
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