- 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 wouldn't assume that not knowing what the use case for the sorted data is.
Admin
Admin
Yet another top-hole reason not to go within 1000 miles of that shittycunt nation.
Admin
I can't hear you over my freedom.
Murica
Admin
Admin
Admin
Out of curiosity, what was the title you used for the submission?
Admin
Aha, now we begin to put our collective finger on what's really wrong. The real WTF is living in a country where the winner of a legal dispute is the one who has most money, as opposed to the one who is on the right side of the law.
Admin
South Africa (careers24, pnet, and careerjunction are OK boards), but it's hardly unique. A lot of non-US countries don't allow employers to simply fire you whenever they feel like it.
Admin
There's a downside to employee's rights, too. Starting up your own company is becoming near-impossible in some places due to mega bureaucracy. Also, if you hire other people, you're at the mercy of the laziest idiot that manages to cheat you into hiring him; not doing the job he was hired to do is not a good reason to fire someone here. (In Finland.)
Admin
Yes you can be fired for any reason, except all the reasons you cannot be fired. All of those reasons come from case law more than statute. And the first rule of contracts, a clause in a contract only matters if a court will enforce it. Employment contracts are rife with unenforceable clauses. It seems very hard for many people to get their head around, if it's generally not enforceable, that you signed it, doesn't make it enforceable.
One common way companies get tripped up is if they has procedures, either written or unwritten for when and how to terminate employees. If those aren't followed then it's a violation of the contract between the employer and employee and actionable.
Admin
Don't you see? Mack threw Aargle to the wolves so that he could himself keep the job... That was the point of writing the second sort implementation. Just shows how clueless Aargle was, not to see it coming.
Admin
It's true. For corporations.
Admin
While I understand the ternary operator, I would ban it too, along with the comma operator, due to the fact that abusing it provides a great way to write barely comprehensible and bug-ridden code.
I have spent the most bizarre Friday of my life refactoring code that was filled with ternary operator nightmare in the same way as the Europe was filled with snow this March.
Admin
Admin
In the US rules for smaller companies are different than large outfits for that reason. I work for a small company, they could just let me go anytime they want. Firing is a different story because it effects unemployment benefits. My boss says that the biggest problem with hiring someone is making sure they have a constant supply of work they can do, followed by managing health insurance plans.
Admin
"Real Escape String" in the title? Looks like whatever PHP code was hacked in to block access to future articles is the real WTF.
Admin
I could hear every line spoken by Tye in the voice of Alice from "Workaholics".
Admin
Admin
Admin
Admin
Admin
Admin
Admin
I wrote C code for the better part of 15 years, and I don't think I used the ternary operator more than once, and that was when I was still pretty green. It's one of those tools that looks cool on paper, but its actual use tends to muddy things.
But preprocessor abuse is a crime and should be punished severely.
Admin
a comment reminded me of something from one of Scott Adam's books: a company gave out questionnaires with a section called "areas you could improve on"...fortunately, a co-worker warned him that anything he wrote there would go on his record as "poor performance"!