- 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
That silly frist comment!
Admin
A nerdy rewrite of the script for 'Falling Down' might be appropriate. Might be.
Admin
Global variables? Terrible naming? Aargle!
Admin
TRWTF is the name Aargle Zymurgy
Admin
int up, Up, UP, uP, _up, UP, uP, up, uP; int uup, uUp, uUP, uuP, _uup, uUP, uuP, uup, uuP; int down, Down, DOWN, doWN, _down, DOWN, doWN, down doWN; int ddown, dDown, dDOWN, ddoWN, _ddown, dDOWN, ddoWN, ddown ddoWN; int left, Left, LEFT, leFT, _left, LEFT, leFT, left leFT; int right, Right, RIGHT, riGHT, right, RIGHT, right, riGHT; int lleft, lLeft, lLEFT, lleFT, _lleft, lLEFT, lleFT, lleft lleFT; int rright, rRight, rRIGHT, rriGHT, rright, rRIGHT, rright, rriGHT; int bb, Bb, BB, bB, _bb, BB, bB, bb, bB; int aa, Aa, AA, aA, _aa, AA, aA, aa, aA;
Admin
This is so pre 1964! Where are strange, charm, bottom & top?
captcha appellatio - the appellation of various flavours of "up"
Admin
↑ ↑ ↓ ↓ ← → ← → B A
Admin
You know, I would assume that there would already exist a tool for dealing specifically with these situations.
Admin
At least, C has static binding for global variable.
I had the fun to study and rewrite a natural language parser written in 60s style LISP, no parameters, and all the passing using dynamically binded global variables (an horror that was not mainstream anymore in lisp long before common lisp).
Difficult to understand, impossible to maintain ...
Admin
These "modestly complex" functions are, compared to some code I've had the misfortune to work with, models of simplicity. 10 to 40 lines? Mere nothings. I've seen functions with 2500 lines, in 1.6MB source files...
Admin
Uppity is a racist term, I'm not saying its usage is racist here, but it is a racist term. Its etymology is traced directly back to slave states in the U.S. as a term for a Black person who dosen't know their place.
http://www.theatlanticwire.com/politics/2011/11/yep-uppity-racist/45321/.
Admin
Admin
Is it racist when no-one knows that it is?
Does God exist anymore when no-one remembers him?
All these questions...
Admin
If you read the article again, you might stumble upon the clause: "A lot of people have no idea that the word "uppity," [i]when applied to black people[i], has racist connotations" (markup by me).
So I wouldn't think it problematic in the sense of code discussions - unless applied to a coder of known african-american origin, of course.
Admin
Admin
ThaT's FuCked _Up
Admin
Admin
FR_IsT_
Admin
You first.
Admin
Cool story bro.
CAPTCha: aliquam
Admin
Sounds like someone ported the application from some ancient version of BASIC (as existed on the Commodore 64 or TRS-80). Or maybe that was the only language they knew when they started writing C.
Admin
Admin
Hm... if people going mad about grammar are grammar nazis, are people going mad about such stuff political correctness nazis?
Wait, is nazi somehow a negative word? Hmm..
Admin
Admin
Only if you are talking about Germans.
Admin
Admin
I did say it, but I think I got away with it.
Admin
But if you are German (as I am, though I prefer European) and go mad about people going mad about ridiculous stuff (as I did), are you then a nazi nazi?
Admin
I call BS. Nobody would name their kid Aargle.
Admin
Admin
Godwin's law...
Admin
Correct. Thought I might as well be the one ;)
Admin
This one very much looks like a classic from the "Computer Stupidities" files, "Programming" section:
http://www.rinkworks.com/stupid/cs_programming.shtml (search for _up)
I'm pretty sure it has been in that list for at least 10 years by now already ...
Admin
Some people wouldn't know what refactoring was if it bit them on the ass.
Admin
Every professional C programmer knows to prevent collisions, append an underline character ('_') to the front of each variable. It's the only way to be sure.
Admin
Admin
No, it's not like that at all. It has nothing to with race. It can, like all negative or derogatory words, be used in a racist context, but that doesn't make it a racist word.
See: http://www.merriam-webster.com/dictionary/uppity
Admin
Admin
Admin
Admin
If those functions "only differed from each other by which global variable they operated on", shouldn't they all be the same length which it should be possible to state a little more precisely than "between 10 and 40 lines"?
Admin
See: http://www.etymonline.com/index.php?allowed_in_frame=0&search=uppity&searchmode=none. http://dictionary.reference.com/browse/uppity
<sings> Fuck you Akismet, fuck you A-kis-met, fuck you fuck you very muu-uuu-uuu-ch! </sings>
Admin
Admin
I immediately thought of that, too. Same submitter? Or stolen? Or, a lousy yet prolific programmer who keeps making the same mistakes?
Computer Stupidities is another great site, by the way.
Admin
This one has the feel of being an urban legend. I remember reading something similar from a contractor who was offered the job of maintaining a codebase with exactly this problem and having taken one look he turned the job down - but not before he had an anecdote to tell. This may well be that anecdote, but it was a good decade or more ago that I read it.
And I now notice someone else has made the same observation as me.
Admin
The submitter fails to mention whether or not the code in question worked. If it does/did, then it should not matter how it is implemented.
A WTF is product that does not work, not code that doesn't meet the personal aesthetics of a particular programmer.
Admin
If there are no more references to it, it should be garbage collected, I think.
Admin
Admin
No, that would be a normal failure. A Worse-Than-Failure would be (for example) code which does work, but nobody can figure out how the hell it does it.
Admin