- 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
Come on, nobody has called shenanigans yet? This is the oldest joke in computer programming: uppity idiot X thought if it compiles it's done. Together with the now mandatory layers of WTF editor embellishment.
More interesting is this claim:
followed by......aaaaand the intermediate server accesses the mainframe how exactly?
Fake story is fake. Not funny.
Admin
At least your hilarious comment has rescued the thread though, eh?
Admin
Admin
It's like school. Just because you ace all your humanities courses, doesn't mean you know fuckall about anything.
Admin
My adviser in college demonstrated it this way: We were in his office. He challenged us to write a simple program to take a person out of his office and to the entry desk.
In general, the result was something like: "Stand up, turn right, walk forward to the door, turn the knob, open the door, walk forward, turn right, walk forward to the desk."
Having obtained the above instructions in writing on his blackboard, and after confirming that we all were satisfied with them, he then rose from behind his desk, went to the door (which had been closed) and opened it.
"How does your program work now?" he asked.
I've never seen a shorter or more effective demonstration of the cause and nature of bugs.
Admin
Wat?
Admin
And so they learnt about the nature of bug fixes in The Real World(tm).
Admin
Admin
Admin
Just because the toilet has a pipe fitted doesn't mean it isn't going into your mouth.
Admin
Just-a because-a all the pipes are a-connected, doesn't a-mean you haven't a-connected the U-bend to-a the taps. If-a sh*t coming out of your taps, is-a more likely your plumbing is-a bad than the city water supply.
Admin
I can't believe this stuff still goes on. Story time, 4chan-style:
This still goes on. DeityOfYourChoice help us.
Admin
What is the GAU-8?
Admin
Google is your friend: https://www.google.com/#q=GAU-8
Admin
Not even close. It only means your compiler didn't catch any compiling errors. It's easy to compile code followed by % run :Bus Error Core Dump
or %run FileNotFound
among others.
Admin
There are TWO grievous sins there - the parentheses, because typeof isn't a function, and using an exact equality operator to compare two values that are both strings, always, by definition.
Admin
I-a defeat-a the big monsta, but they say the princess, she's-a in anotha castle.
Admin
TRWTF is not using lmgtfy
Admin
Maybe he meant "definitionatious" ?
Admin
Admin
Admin
So, it compiled, but didn't prove it worked? Maybe he just needed to learn how to prove it first?
http://thedailywtf.com/Articles/The-Proven-Fix.aspx
Admin
Admin
Also, what's infinite recursion?
Admin
Ah. You want a Perl programmer.
Admin
Admin
Unfortunately, that does not always work. I had a problem with one COBOL compiler where there was an interaction between the Report Writer and the check for uninitialised variables such that a run with no input data would not be properly handled. When I took out that check option, the program worked.
Sincerely,
Gene Wirchenko
Admin
They should have been using a dependently typed programming language - then, if it compiles, then they also have a computer-generated proof of correctness!
Admin
Douglas Crockford disagrees with you on the second one; he advocates always using === and !== instead of == and !=.
Admin
Seriously, you end up with a proof that the code obeys some correctness definition, but not that the correctness definition actually solves the problem that you care about. Nor do you get a proof anyone would want to use your code (people aren't mathematical objects in any useful sense).
Admin
Admin
It wasn't just the '80s which had far too much cash.
Admin
Day 1, hour 1 of programming for any person, they should learn the difference between syntax errors and logical errors.
Admin
There should be a special place in hell for wish-it-was-strongly-typed languages.
Admin
+1
Admin
"Working as designed. Specs never mentioned an open door. Open Door policy will be implemented in Phase 2. We'll send you the bill."
Admin
"Are those depleted uranium rounds, or are you just happy to see me?"
CAPTCHA: erat. A-1 Exterminators smells erat, but they leave the big jobs to A-10 Exterminators.
I'm surprised and gratified to see someone else here who loves the Warthog :)
Admin
Who doesn't? IT'S PLANE BUILT AROUND A GUN
(not really, but never let the truth get in the way of a good story)
Admin
I'll allow that, but when you should know that it cannot affect the outcome, using === and !== just screams "I'm ignorant and have no clue what I'm doing, or why, but somebody once told me that == and != are dangerous". It's like riding around with the training wheels still on.
Admin
Using exact comparisons is not necessarily mean someone is riding around with training wheels. I often code defensively. A coworker hates when I bracket if statements when there is only one line. But I know that in the future some idiot is not going to read it properly and add something stupid in the wrong place. If I force them to put in into the brackets it should at least limit the danger. What if someone replaced the typeof call with mywackyfunction in the future? Well it probably will still be a pile of dung but at least if they return the wrong thing the test will fail.
After seeing all the crap that is the codebase I have to maintain I'm all for doing things that could limit future stupidity.
Admin
I think that person was talking about blindly using exact comparisons without exception, "just because." A concrete mindset by someone who would pay no attention to warnings, and would probably never read a site like this, although would probably be featured on it.
Admin
(object I (to (aspersion your)) (of Lisp)) (is (code Lisp) (and simple readable logical))
Admin
"Parenthesis" is singular. "Parentheses" is plural.
Now cue the reply about a special place in hell for pedants...
Admin
I want a refund on this WTF.
Admin
Admin
As it happens, there is a special hell for people who post what I was going to say before I say it.
Admin
Admin
My bowels are the loosely type. They're not good.
Admin
Parentheses are not just for function calls. You can use them to force orders of operations in expressions.
(x + y) * n is different then x + y * n for almost all cases.
Admin
Yeah, but in:
The parentheses are considered redundant.
I just tested this in PyCharm (which I just happened to have open, and does seem to be quite the code nanny), and it does display a warning, which I would have to agree with, regardless of language.