- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
I''ll start commenting on April's Fool.
Admin
I think I need to start commenting of this month.
As such, this is my first comment.
Addendum 2024-03-18 08:04: I think I need to start commenting on the first of this month.*
Admin
Nice Indiana Jones reference by the way :-)
Admin
Mild WTF: using the octal constant
01
instead of the dcimal constant1
.Admin
I think you mean on the frist of this month.
Admin
No tests? No code review? For your sanity, s̷̡̳͇̤̜͓̬͖̱͇̗̣̝͚̖̬̯̯̪̟̘̪̯̟̰̮͕̎̀̓͌̏͊͊̐̈́̋̈̍̊̈́̋͆͘̕ͅt̸̨̛̞͔͉̟͎̰̻̺͕͋͊̑̈́̆̅́̾̌̈́̋͑̒͗̽̽̅͑͒̀̈́̀̋̎̂͑̇̕͘͘͘̚͠͝͝a̴̡̛̜͉̦̿͂͘y̷̨̢̛͈̪̪̗̱̻̙̫̰͍̩̗͔̝̝͖̹̰̳̱̹̺̝̰̖̘̫͙̟̗̰̟̔̃͗̂̂̔̎͐̒̎̅̓̓̐͑͊̎̀̎̏̊ ̴̨̢̨̧̧̮̳̞̦̬̥̯͇̫̳̩̱̪̲̳̙̦̩͔͙̞̱̹̣̿̏̀̓̔̋̈́̍͐̉̀̐̀̈̾̇͂̐̓̒̆̈́̐̒̍̃͑͋̐̎̃̈́̏̕͘̚̕͠͠͠͝͝ͅá̸̢̨̢̛͉̺̳̙̯͙͉̱̪̜̝̭͚̤̙͚̪̤̮̙̥͍̙̬͓̹͆̈́̆͒̄̆̅͜͜͠ẇ̵̨̡͓͔͉̦̜̬̪̰̦̣̯̰̠͓͈̗̞͔̰͇̲̖͙̙́̉̀͌̈́́̀̚̚͜ą̴̛̘̞̭̬̖̦̯͎͚̭̰̯̫͊̉̎̓͆̂̈́͌̈́̂̓͐̄̉̀̽̑̉̀̉̐̆͆̅̆̃̇͗̏̍͐̽̈̏̾͐̚͝͝͠y̵̧̧̪̹̟̰͇͖͓̮̼̠̘̯̯̤͕͉͉̖̝̯̫͉̞̗̿͗͗̅̈́̏̾̐̄̔͋͌́͘͘ ̶̛̛̖̈́̎́̌̏̓̈̌́͋͗̈̃̾̈̈́̉̄̍͗͒̈̇͛͒̑̉̀̆̇́̈́͗͒̅̂̽͐̓̄͘̚͝͠͝͝f̴̞̻͓͓̠̱̹̔̅̔̋́̑ͅr̷̡̧̛̛̤͖̞̥̥̝̝̜̠̮̗̦̹̘̤͇̗͈̟̭̗̖͕̙̿̑͋̌̓̔͋̿͋̓̄̌̇͆̿́͊̔̇̊̿͑̾̈́͒͆́́̀̓̎̊̓͆͐̃̆̓̿̚͘̕͜͝o̴̡̲͎̖̩͍͍̩͔͚̝̤̊͒̔̆̓̿͊͌͐̾̉̊͆̈͆̈́͌̒͐̏̄͐̄̿͊̓͑̄͂̀̿̀̌̄͗́̓̀̕̕̕͝͝͝͝͝͝͝m̶̢̡̧̢̹͈̝̠̩̯͈̥̟̩͇̠͕̯͇̝̬̮̝̹̖̼͙͎̥̯̫̘̱͚̩̦͎͗̓͋͜͜ͅ ̶̧̢̣͙̲͖̤͕̱͎̮̣͕͉͔͓̟̳̰̪͇̣͕̹̙͔͓̣͓̘̂͊̇͛́̋t̸̢͚̳̠̝̖̭͂̓̈͗̀͋͐̊̀̾̋̈̍̓̈̏͂̾̕̕͘̕̚͠ḩ̷̧̢̛̠̲͙̬̭͚̭̲͖̹̪͙̼̗̭̬̺̣̯̤̮̬̺̥̪̠̺̦̼̹̺̞̅͌̑͗̍͗̓͂̿͂̔͆͌́͌̒̋͑̒͗̈́̈́͛̇̀̂̈́̇̓̆́̀̿̌̕͜͠ą̶̧̢̛̲͇̰͙̯͚̫͔̯͇͙͎̻̼͍̩̮̖̹͈̯͚̪̳̲̰̘̙͔̝̘̯̙͈͎̜͆͒̔̇̊̑̓̋̌̾̀̀͐̈̈́̌́́͌̀̐͑̐̈̑̈̋̀͋̍̀̊̒́̏̋̀́̈́͐̕̕͘͘͜͝͝͝͝͠t̴̡̧̢̨̫͕̹̗̘̘̙͉̜͇͕̻̤̖̩̳͕̩͇̟̞̮̱͎̩̼̯͍̲̰͙͛́̀͗͊̀̇̓́̈́̆̒̀̎̓̑̕̕͜͝͝͠͝ͅ ̷̛̺̣̬̙͙̼̥̹̩̮̪͚͚̪̯͎̹̮̱̔̏͘͜c̶̖̜̰͒̈́͋͒̎̿̆̓̐͌̓̆͗̐͗ơ̸̢̨̡̢̧̥͖̹̤̺͈͕̮̻̙͇̖͈̥̙̘̤̟͍̠͓̣̺̫͉͎̜̳̗̫̞̼͙͇̻̻̠̓́̈́̂́̊̓̿̂̔̂́̋̉̆̂͆͝͝ͅd̵̡̨̡̧̡̝̜͚̤͓͍͍̤̣̝̯̖͍̗̻̝̙͈͉̞̤̙͔̜̲͓̪̤͔̮̳̪̪̟͖͚̬̩̯͓̪̖́̌͜͜͠ͅȩ̸̨̧̡̙̠̤͎̖̫͈̣̪̳̟̰̗̖̅̉̑͌̽̐͆̓̔͗̽̇̍͛̅͊̿͌̀͗̾́̑͗́́̊̆͆̓̚͝͠b̵̨̛͙̯͙̻̪̬̭̥̰̩̞̹̝̰̩̱͛͋̑́͗̀̓̂͗̈́̅͂̃͐͋̓̃̅͆̈̾̃́̓̋̈́̓͒̄̄̐̕̚̚͘̕͝a̸̢̢̡̡̧̛͍̖̥̳̮̫̻̳͓̖̠͔̟̪͈̞̤͕̤̞̅̈̀̌̓͑̽̈̆̒̋̄̐́̄̋̈̏̎͊͘͜͝ͅş̸̢̡͖͕͔̥̹̰͉̳̪̻͕̼̳͂̈́́̆͑̈́̄̉̈̅͐̈̋̀͋̏̈́̐͒̓͒̋̐̇͐̐̉̿̽̂̅̇̏͝ȩ̵̼̞͙͇̜͎͓̪͉̦̣̪̳̰͖͔̯̥̼̗̳̻̯͇͉̖̜͉̮̞̝̙̲͈̾̐̂̓͋̀̃̄̋͆̍̂͋̊̅͛̇̋̈́̎̈́̄̆̉̑͊͊̅̔̽̃͛̉̇̐̑͘̚͜͝ͅͅͅ!̵̡̧̨̢̧̛̺̦̲̱̝̤͕͙̠͎͇̥̻̭̰̬̻̫̬̬̬̺͇̖̯̥̱̞͙͈̲̰͉̻̣̩̠̪́̀̈́́̿̈́̄̎̀̈́́̈̇̅̈́͗͐̔̉͐̋̽̓̐̐̌́̏̀̅̒̄̉̉̿̌̊̏̓̆͘̚̕̕͜͜͜͝͝͝ͅ
Admin
I'm not going to confuse my phone's auto complete by writing that 🤣
Admin
I like that they used an octal constant, to give additional hilarity when the billing department asks for the term to start on the 15th of the month.
Admin
C# doesn't have octal literals, so even if someone changed it to 015, it would just mean 15.
Admin
The real WTF is that just about EVERY language starts off thinking that Date is a special case of DateTime, where you ignore the time portion. And that "pure" Date is usually an add-on library.
.Net finally added DateOnly and TimeOnly to the language.
I keep telling my colleagues that I hate time...
Admin
less-mild-WTF: allowing numbers to be specified in octal in a non-intuitive manner. I always hated that in C.
https://stackoverflow.com/questions/53458467/why-are-there-no-octal-literals-in-c
Admin
Python used to have the same kind of octal literals as C. That was fixed in Python 3, but now you can't have literals like 08 because there might be people you have moved from Python 2 and used such literals.
Admin
I thought I submitted this as a WTF some time back, but here's the short version. I worked for a company that made shipping software. One day, one of the other programmers comes to tell me that he and another programmer were going nuts for days trying to figure out why our USPS rates were all off. He set a listing of the function in front of me. I took one look at the static array with the rates, and I asked, "why did you do all the numbers in octal?" He scowled and snatched the listing away. They had padded all figures with leading zeros to make it all look pretty. That year, by pure coincidence, no USPS first-class postage had the digits 8 or 9 or the problem would have become immediately obvious.
Admin
No more unsubscribing burden after the first month free. Now everyday is the first month. Yay
Admin
You did: https://thedailywtf.com/articles/padded-mailers
Admin
Yeah, it took Java three attempts (and 8 language versions) to get a good native date API... and when it eventually came, it was heavily based on a popular third-party library which had been doing things right for years.
Admin
No need for testing or review at this point: compiler should just yell that "dateTime" is unused and force the developper to do something about it.
Admin
Or they tested it on the first of the month and everything worked fine
Admin
As a current uni student, it's hilarious and so baffling to me that the code editor that they probably used, didn't highlight the fact that the input to the function was unused. ("dateTime" is the actual input of type DateTime). Or maybe 'm thinking way too much, and this code existed long before code linting was a standard thing....