- 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
Friust
The cmment psoted so it must be rite.
Admin
#include <stdio.h> int main (void) {
return (5);
printf("Hello World!");
}
see, it compiles, Hello World Fails, no Bugs
Admin
"It compiles, ship it" That is our slogan at work. Glad to see our CTO is Nick.
Admin
If it compiles, the computer understand what you tell it to do. That doesn’t mean what you told it to do is what you wanted it to do.
Admin
Admin
Now I get it!
Admin
Admin
That's why we use PHP: no compiler means there are no errors
Admin
Admin
Admin
Admin
Admin
Just change the specs: Write a command line program that returns a status of 5 ..compiles and is correct.
Admin
Not a good example, a good compiler will give you a warning for unreachable code.
Admin
Admin
Admin
But I would have mercy on those who don't know when sizeof can be used without parens.
Admin
Admin
I was asked to help one of our c programmers once (I was a FORTRAN man and my knowledge of c was rudimentary, but I was available at the time and I had a reputation for being able to troubleshoot in multiple contexts).
"So what's wrong?" was my initial question.
"I dunno, man, it just won't work. It compiles okay ..." and he proceeded to do so. The act of compilation caused a copious and rapid flow of warning messages to vomit out all over the screen.
"Um ... have you tried investigating what those warnings are?"
"Nah, they're just warnings man, you don't need to give a damn about warnings ..."
Admin
Less code analogies, more stupidity 'splaining!
How bad was it? Brillant Nick teach-yourself-C-in-21-days code block? How could Fred cobble together this code with little to no mainframe access? Nice caffeine-powered weekend at JumboStore?
Admin
Admin
Works means expected output with expected input. To prove it works many forms of expected input are to be provided and checked with many forms of expected output.
Admin
Admin
"Look, now they're errors!"
"Oh yeah, you're right. I better start fixing those errors now. Thanks man!"
Admin
Working on Embedded Systems, I have become a stickler for no warnings left. And I use the highest warning levels sanely possible. That and unit tests (writing them for such systems is a bitch) means that my code basically works as intended. Learning that making a working product requires a lot more than just writing the code for it took a lot of sweat.
Admin
If you artificially synthesize a compount, it may not be the one you were trying to create. Dude, IT EXPLODES!
If you give come canvas a couple of brush strokes, it may not become the masterpiece you intended. Dude, IT IS MODERN ART!
Admin
TRWTF is using "they use *nix" as some sort of certification that they can program.
Admin
As a FORTRAN specialist, I wasn't to know about -Werror. The context of the position in the company was such that I was encouraged to trust the competency of my colleagues (basically: "Stop pointing out all these bugs in the code, man, hey, like, stop fixing stuff man, you're making the rest of us look bad, man ...") and so had got into the habit of expecting them to know what they were doing.
I started building a file containing code snippets to capture some of the more amusing bloopers, like YEAR2 = MOD (YEAR4, 1900) found during the course of the millennialisation project. I believe that file is no longer with us, or it would have been milked for this site long ago.
Admin
This.
Admin
Admin
I don't get it. Can you tell the joke again but differently?
Admin
I'm afraid I still don't understand. Can you give it to me in plumbing terms, with an Italian accent?
Admin
Admin
Admin
Admin
Admin
Admin
Mamma mia dude, IT-A STAR!
Admin
Yep, that's what my high school comp sci teacher used to say: "Computers are high-speed idiots, they do exactly what you tell them to do."
Admin
not by me
Admin
Make them code in Haskell. They won't be able to get anything to compile. Problem solved!
Admin
I'd have to assign ARWTF status to Fred and/or his attempts at explaining the problem. Seriously, did he really try to explain to a programmer using weak non-programming metaphors?
Try this next time:
If Nick still doesn't get it, haul out the GAU-8 from your back pocket and ...Oh, and yes, I know it won't compile as a stand-alone statement, thanks for letting me know about that.
Admin
Nick: But dude, it's wrong[/]! Fred: But it compiles, right? Nick: But dude, it's [i]wrong[/]! Fred: That's not the point: using your logic, because it compiles, it must be right -- agreed? What you said to me just now is: if it compiles, it must be right, yeah? Nick: But dude, it's [i]wrong[/]! Fred: So, just because your code compiles, that doesn't mean it's right? Nick: But dude, it [i]COMPILES!
And around and around, in ever increasing circles.
Admin
Buggritt -- I cocked up the styletags. Sorry.
Admin
Nah. It just means they will have a CHANCE at being good programmers, and not have drank the cool-aid.
Admin
Correct. Clearly this should have said "they have beards" for the proper effect!
Admin
Garbage in, Garbage out.
Admin
I just tell it to ... "Do what I mean, not what I say!"
captcha: usitas You can usitas a supposed-itory
Admin
As you are admittedly guessing, I thought I'd give you something definitive.
Admin
comment! correctly But spellchecks my