-
Notifications
You must be signed in to change notification settings - Fork 146
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
Making NASA APOD module date safe #457
Conversation
The module now * calculates "today" at NASA HQ's timezone * has min/max dates in date-picker control (browser may not support these, but they do no harm) * min date is 1995-06-16, the day of the first APOD * 1995-06-17, 18 & 19 are excluded from prev/next buttons because there are no pictures for these three days in the 25+ year history of APOD. * whether there is a "next" button (+ max date in picker) is now also determined by NASA HQ's timezone.
Why are there |
I prefer == unless I specifically care about type checking so I have no problem with it. What about this specific code would be enhanced with === ? |
Strict code is advised over less strict, in other words == can be false positive for whatever reason and makes code less good readable / bug tracable when === is really needed. == has no real purpose of usage anymore since years. |
Again, the changes in this PR specifically, are better by using === exactly how? |
As I explained, no false positives, always strict yes/no. Now you are never sure what happens when the layer below it fails, actually you do but you don't care when you could have cared more. Consistent coding or not! This is just lazy: oh it's also "good" this way as it works (for now). |
So nothing specific to this PR just more general "it is better". And you seem to be insinuating that I am lazy and don't care. Please don't comment on PRs unless your comment is SPECIFIC to something in the PR, and please keep your comments technical and positive. Thank you. |
Pullrequest
The module now
Issues
Checklist
How2Test
Todo