- 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
What time is it again? 14:51 HKT? Frist time ever meet this.
Also, I reached here from the actual article page, which I reached by clicking on the "newer article link" of the article published on 2014-10-20.
This is kind of an epic WTF of the site.
Admin
Wait, how many topics are there?
http://what.thedailywtf.com/t/its-safer-to-use-numbers/4178
Admin
The other article contained an apostrophe in the title and crashed the Front Page. See 500 Internal Error when Editing and Saving Unpublished Article with Apostrophe in title on the Front Page issue tracker.
Admin
At least the article title wasn’t
'); DROP TABLE Articles; --
...Admin
On a related note: Discourse actually does handle apostrophes. What a Discoursvery!
Admin
This is in reference to the actual article...
I'm interested to know what GetOverallQuality() involves. Summarising overall quality with a boolean return value would imply poor quality!
Also I'm not sure why you would ever need to bother manually logging this error and redirecting. If error logging and handling was correctly configured (which I'm guessing isn't), throwing one would be enough.
Admin
They should have used a PC instead of Mac.
Admin
Even if your enum represents an
int
, never use an instance of anint
, always cast it.Although, that's not the biggest issue here.
Admin
In C#, you can indeed have two enums equal to the same value.
Admin
The short solution is to make an enum entry for 4 parameters and send an extra:
Admin
May I humbly redirect you to the Evil ideas thread?
Admin
Sadly, your choice is ugly: Spend hundreds of hours to rewrite and correct the stupid design...or build stupid workaround for stupid design in two hours. Sadly, the winners are the people who do the latter, since they are more productive.
...and bosses love productivity. (Boss: "Why can't you be more productive, like George here? Here, George, have another banana.")
It's not that bosses hate doing things the right way. They'll tell you every day that everything should be done the right way. But the rewards all go to George...and he will become your system architect.
There's a reason why slapdash programmers and horrible designs don't get weeded out...but are instead perpetuated.
Admin
You get a sad like. :( WTF Where's the sad face?
Admin
The "good emoji" thread is :cyclone: :repeat_one: :arrow_double_down: that way.
Specifically, it's not on thedailywtf.com.
Admin
:person_frowning:?
Admin
Look in the mirror. It's part of everyone forced to use Discourse.