| « Prev | Page 1 | Page 2 | Page 3 | Page 4 | Next » |
|
That silly frist comment!
|
|
A nerdy rewrite of the script for 'Falling Down' might be appropriate. Might be.
|
|
TRWTF is the name Aargle Zymurgy
|
|
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_; |
|
This is *so* pre 1964! Where are strange, charm, bottom & top?
captcha appellatio - the appellation of various flavours of "up" |
|
You know, I would assume that there would already exist a tool for dealing specifically with these situations.
|
|
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 ... |
|
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...
|
|
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/. |
That'd be Excel, then export it as CSV, followed by running it through one of the various CSV to XML convertors available, then parsing that XML in your code. |
|
Is it racist when no-one knows that it is?
Does God exist anymore when no-one remembers him? All these questions... |
Uppity as being racist
2011-12-12 09:45
•
by
faoileag
(unregistered)
|
|
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. |
Re: Uppity
2011-12-12 09:46
•
by
NothingToSeeHere
(unregistered)
|
I think the tool he was referring to is called "fire", as in "Kill it with fire." |
Since then, I bet the contractor's rates have gone up, Up, UP! |
We should totally start boycotting TheDailyWTF. You first. |
Cool story bro. CAPTCha: aliquam |
|
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.
|
Re: Uppity as being racist
2011-12-12 10:08
•
by
Uncle Remus
(unregistered)
|
OK I get it. It's like when white people call each other the N-bomb-- Totally not racist, just stupid. |
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.. |
Who's going mad? |
Only if you are talking about Germans. |
Calling people Nazis does a disservice to the world by comparing the perpetrators of the horror of the holocaust to stuffy tight-asses on the internet. By the way, your ellipsis is missing a dot.... |
I did say it, but I think I got away with it. |
|
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?
|
|
I call BS. Nobody would name their kid Aargle.
|
Not sure I like where this is going..... |
|
Godwin's law...
|
Correct. Thought I might as well be the one ;) |
|
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 ... |
|
Some people wouldn't know what refactoring was if it bit them on the ass.
|
|
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.
|
Indeed. Google for him, and you'll find his "about" page, featuring such people as Beccaboo Aero and Hannibal Kennedy. Come on, what do they think they are pulling? |
Re: Uppity as being racist
2011-12-12 11:05
•
by
Recursive Reclusive
(unregistered)
|
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 |
Re: Uppity as being racist
2011-12-12 11:05
•
by
U. Ppity
(unregistered)
|
Curiously, you chose to emphasis that part with boldly black letters. That looks more racist than titling this article Uppity... |
Actually, the first tool which came into my head on reading this was "a shotgun". |
Stop it, you Godwin nazi. |
|
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"?
|
Actually, see something with some etymology to it. If I told you that the word originated around 1875-1880 in the USA and its first recorded use was in "Uncle Remus", would you then perhaps accept that it was a variant of the earlier English term "uppish" that was coined specifically to refer to blacks? 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> |
I think it's saying that there were several functions, of between 10 and 40 lines, each of which existed in multiple overloaded versions that were identical but for the global they operated on. |
Re: Copied from "Computer Stupidities"?
2011-12-12 11:28
•
by
DrBen
|
|
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. |
|
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. |
|
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. |
If there are no more references to it, it should be garbage collected, I think. |
Fail troll is fail. |
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. |
Does God have an intrinsic reference counter? Or was all that biblical stuff about "separating the sheep from the goats" an early description of a primitive mark-sweep algorithm? |
| « Prev | Page 1 | Page 2 | Page 3 | Page 4 | Next » |