r/ProgrammerHorror • u/Pepineros • Apr 13 '23
Colleague using a no-code solution needed a custom script to test that it's not December
107
Upvotes
r/ProgrammerHorror • u/Pepineros • Apr 13 '23
31
u/[deleted] Apr 13 '23
What is this monstrosity
12
u/redstonefreak589 Apr 13 '23
todayyyyy
5
u/Reckle_ Apr 13 '23
This makes me physically ill
2
u/DemmyDemon May 22 '23
Today's YYYY: todayyyyy
At least the variable name makes a lot more sense than I thought it did at first glance.
My code review comment: "No. Come see me at a desk for a quick run-through of the time/date stdlib. Merge rejected."
Not todayyyyy, junior. Not todayyyyy.
53
u/CiroGarcia Apr 13 '23 edited Sep 17 '23
[redacted by user]
this message was mass deleted/edited with redact.dev20
u/[deleted] Apr 13 '23
holy variable naming
5
u/bigno53 Apr 14 '23
This has to be a joke.
“Imagine you’re looking at a wall calendar with the name of the month at the top and today’s date circled. How would you go about determining if it’s December?”
“So, several questions…what century are we in? Can I assume common era? Is it okay to use the abbreviation “CE” or do you prefer the more explicit “The year of our lord yyyy” format?”
1
u/SenorSeniorDevSr Jun 25 '24
I mean, you can just do something like this. So this is a bit weird.
1
u/[deleted] Apr 14 '23
Todayyyyy
1
u/PloctPloct Apr 14 '23
todayyyyyyyyyy