Comment On Uppity

"The project was done in C and it was clear the original contractor had no comprehension of function parameters," Aargle Zymurgy writes, "Imagine a source file with 20 functions in it, all modestly complex (between 10 and 40 lines) that only differed from each other by which global variable they operated on. Now repeat for dozens of other modules." [expand full text]
« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Re: Uppity

2011-12-12 09:04 • by Nag-Geoff (unregistered)
That silly frist comment!

Re: Uppity

2011-12-12 09:08 • by DVD (unregistered)
A nerdy rewrite of the script for 'Falling Down' might be appropriate. Might be.

Re: Uppity

2011-12-12 09:10 • by dkf
Global variables? Terrible naming? Aargle!

Re: Uppity

2011-12-12 09:12 • by The poop of DOOM
TRWTF is the name Aargle Zymurgy

Re: Uppity

2011-12-12 09:25 • by XXXXX (unregistered)
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_;

Re: Uppity

2011-12-12 09:26 • by faoileag (unregistered)
This is *so* pre 1964! Where are strange, charm, bottom & top?

captcha appellatio - the appellation of various flavours of "up"

Re: Uppity

2011-12-12 09:26 • by Konami (unregistered)
↑ ↑ ↓ ↓ ← → ← → B A

Re: Uppity

2011-12-12 09:31 • by AdamJS (unregistered)
You know, I would assume that there would already exist a tool for dealing specifically with these situations.

Re: Uppity

2011-12-12 09:32 • by Maurizio (unregistered)
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 ...

Re: Uppity

2011-12-12 09:32 • by Steve The Cynic
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...

Re: Uppity

2011-12-12 09:34 • by Uncle Remus (unregistered)
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/.

Re: Uppity

2011-12-12 09:35 • by The poop of DOOM
369421 in reply to 369416
AdamJS:
You know, I would assume that there would already exist a tool for dealing specifically with these situations.

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.

Re: Uppity

2011-12-12 09:44 • by RN (unregistered)
369422 in reply to 369420
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)
369423 in reply to 369420
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)
369424 in reply to 369421
The poop of DOOM:
AdamJS:
You know, I would assume that there would already exist a tool for dealing specifically with these situations.

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.

I think the tool he was referring to is called "fire", as in "Kill it with fire."

Re: Uppity

2011-12-12 10:01 • by trtrwtf
ThaT's FuCked _Up

Re: Uppity

2011-12-12 10:03 • by boog
int up, Up, UP, uP, _up, _UP, _uP, up_, uP_;
Since then, I bet the contractor's rates have gone up, Up, UP!

Re: Uppity

2011-12-12 10:04 • by qbolec (unregistered)
FR_IsT_

Re: Uppity

2011-12-12 10:05 • by boog
369429 in reply to 369420
Uncle Remus:
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.
We should totally start boycotting TheDailyWTF.

You first.

Re: Uppity

2011-12-12 10:06 • by Turd (unregistered)
369430 in reply to 369420
Uncle Remus:
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/.


Cool story bro.

CAPTCha: aliquam

Re: Uppity

2011-12-12 10:07 • by TimT (unregistered)
369431 in reply to 369426
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)
369432 in reply to 369423
faoileag:
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.
OK I get it. It's like when white people call each other the N-bomb-- Totally not racist, just stupid.

Re: Uppity

2011-12-12 10:12 • by TheSHEEEP
369434 in reply to 369429
boog:
Uncle Remus:
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.
We should totally start boycotting TheDailyWTF.

You first.


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..

Re: Uppity

2011-12-12 10:15 • by boog
369435 in reply to 369434
TheSHEEEP:
boog:
Uncle Remus:
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.
We should totally start boycotting TheDailyWTF.

You first.


Hm... if people going mad about grammar are grammar nazis, are people going mad about such stuff political correctness nazis?
Who's going mad?

Re: Uppity

2011-12-12 10:16 • by Mikerad (unregistered)
369436 in reply to 369434
TheSHEEEP:
boog:
Uncle Remus:
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.
We should totally start boycotting TheDailyWTF.

You first.


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..


Only if you are talking about Germans.

Re: Uppity

2011-12-12 10:17 • by Uncle Remus (unregistered)
369437 in reply to 369434
TheSHEEEP:
boog:
Uncle Remus:
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.
We should totally start boycotting TheDailyWTF.

You first.


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..
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....

Re: Uppity

2011-12-12 10:21 • by misha (unregistered)
369438 in reply to 369436
Mikerad:

Only if you are talking about Germans.


I did say it, but I think I got away with it.

Re: Uppity

2011-12-12 10:26 • by TheSHEEEP
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?

Re: Uppity

2011-12-12 10:30 • by qwerty (unregistered)
I call BS. Nobody would name their kid Aargle.

Re: Uppity

2011-12-12 10:31 • by snoofle
369441 in reply to 369439
TheSHEEEP:
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?

Not sure I like where this is going.....

Re: Uppity

2011-12-12 10:35 • by abrasha (unregistered)
369442 in reply to 369441
Godwin's law...

Re: Uppity

2011-12-12 10:36 • by TheSHEEEP
369443 in reply to 369442
abrasha:
Godwin's law...


Correct. Thought I might as well be the one ;)

Copied from "Computer Stupidities"?

2011-12-12 10:39 • by hartmut (unregistered)
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 ...

Re: Uppity

2011-12-12 10:41 • by iToad (unregistered)
Some people wouldn't know what refactoring was if it bit them on the ass.

Re: Uppity

2011-12-12 10:48 • by Zapp Brannigan (unregistered)
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.

Re: Uppity

2011-12-12 10:57 • by Pim
369448 in reply to 369411
The poop of DOOM:
TRWTF is the name Aargle Zymurgy

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)
369449 in reply to 369432
Uncle Remus:
faoileag:
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.
OK I get it. It's like when white people call each other the N-bomb-- Totally not racist, just stupid.


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)
369450 in reply to 369423
faoileag:
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.

Curiously, you chose to emphasis that part with boldly black letters. That looks more racist than titling this article Uppity...

Re: Uppity

2011-12-12 11:09 • by OldCoder (unregistered)
369451 in reply to 369424
NothingToSeeHere:
The poop of DOOM:
AdamJS:
You know, I would assume that there would already exist a tool for dealing specifically with these situations.

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.

I think the tool he was referring to is called "fire", as in "Kill it with fire."

Actually, the first tool which came into my head on reading this was "a shotgun".

Re: Uppity

2011-12-12 11:10 • by geoff (unregistered)
369452 in reply to 369442
abrasha:
Godwin's law...
Stop it, you Godwin nazi.

Re: Uppity

2011-12-12 11:12 • by foo (unregistered)
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"?

Re: Uppity as being racist

2011-12-12 11:17 • by DaveK
369454 in reply to 369449
Recursive Reclusive:
Uncle Remus:
faoileag:
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.
OK I get it. It's like when white people call each other the N-bomb-- Totally not racist, just stupid.


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
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>

Re: Uppity

2011-12-12 11:22 • by DaveK
369455 in reply to 369453
foo:
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"?
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
369456 in reply to 369444
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.

Re: Uppity

2011-12-12 11:38 • by QJo
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.

Re: Uppity

2011-12-12 11:46 • by geoffrey (unregistered)
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.

Re: Uppity

2011-12-12 11:52 • by UncleAldo (unregistered)
369459 in reply to 369422
RN:

Does God exist anymore when no-one remembers him?


If there are no more references to it, it should be garbage collected, I think.

Re: Uppity

2011-12-12 11:53 • by DaveK
369460 in reply to 369458
geoffrey:
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.
Fail troll is fail.

Re: Uppity

2011-12-12 11:53 • by Puppity (unregistered)
369461 in reply to 369458
geoffrey:
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.


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.

Re: Uppity

2011-12-12 11:54 • by DaveK
369462 in reply to 369459
UncleAldo:
RN:

Does God exist anymore when no-one remembers him?


If there are no more references to it, it should be garbage collected, I think.
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?
« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Add Comment