Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Ashkan598yYeah, It is not right.
It depends on the language, but:
= or == ?
Btw, merry christmas :) -
burtybob4488y@Bobj2008 I'd like to report a bug, your code was telling me merry christmas yesterday but not today when today is christmas 😉
-
luk32118yYou are strongly triggering code review habits... Date should probably be named 'day' 😜
-
burtybob4488y@RandarXJ7 Perhaps but the name suggests we are using a Date instance which would conform to normal human counts.
OR
Date refers to a humanable item that would suggest it should start at 1
If month = 12 {
If date = 24 {
print = "Merry Christmas"
}
}
undefined