|
Ouch. And did you pass your class?
|
|
|
|
|
I want say where but at a past place of programmig (coudl be school or work) we came up with the below as a joke to see who could cathc on. It was for osmething that was not production so we didn;t have to worry about actually hurting any user, just havings ome fun...
The below I just pseudo code to demonstrate the variable names and functions we came up with:
DIM iWTFIT01
DIM sWTFIT02
DECLARE FUNCTION iWTFDID(sWTFAMI02 AS STRING) AS BOOLEAN
Can you guess the pattern?
|
|
|
|
|
|
Then this has long since become a tradition and cannot be a horror
A while ago he asked me what he should have printed on my business cards. I said 'Wizard'.
I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.
|
|
|
|
|
Well,
try to debug a piece of code where all the variables are named Pippo01, Pippo02, Pippo03...
I guess you will change your idea
Bye By(t)e
|
|
|
|
|
Actually, that would not hold me up very long. But you are right, it's not good style as the restrictions to naming variables have become history.
Long ago, when the Atari 800 still used to be a good machine, I 'unprotected' a game which turned out to be written in BASIC. They used a simple encryption to disguise it and also 'obfuscated' the BASIC code by renaming all variables to something like X1, X2 ... X3456. I even still remember which game it was
Before that I used to write machine language programs on my first little computer where even an assembler was a luxury. At this level your program is just a heap of hexadecimal values, but I'm still used to it. Recently I restored one of my earliest programs from the old cassette tapes and posted it to be used with emulators or the few surviving real machines.
A while ago he asked me what he should have printed on my business cards. I said 'Wizard'.
I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.
|
|
|
|
|
I'm not sure what's worse - baseball player names or Hungarian Nutation. Now where did I put that decoder ring?
|
|
|
|
|
Hmm, hungarian notation is probably as popular as RPN. I should start my old FORTH and code something, using hungarian notation.
http://en.wikipedia.org/wiki/Reverse_Polish_notation[^]
A while ago he asked me what he should have printed on my business cards. I said 'Wizard'.
I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.
|
|
|
|
|
tom1443 wrote: Hungarian Nutation
Nutation is indeed a fitting term for that. Did you intentionally misspell this or was it just a Freudian error?
|
|
|
|
|
Totally intentional, I was wondering how many people would pick up on it.
|
|
|
|
|
Awww, you're making me question my worth as a human being... I appear to be the only person alive who thinks hungarian notation is great. I find it much more useful than that infernal camelCase.
(Sunglasses because I cannot be seen in public after this).
|
|
|
|
|
I fondly remember a time at university when I coded some neural network stuff together with two friends. We frequently came up with all kind of silly variable names taken from Asterix comics, out of the midst of some of the more witty parts of our conversations, and the like.
On one occasion we were looking at a boolean variable that we realized we forgot to initialize, causing an error. We discussed whether we should initialize it to true or false, so I sat down and wrote:
bool isgood = true || false;
|
|
|
|
|
At one place I worked, there was this idiot who named all his subroutines after Disney characters
BALR 8, GOOFY
Another place had code from consultants that was complete alphabet soup with no comments.
function doIT (a, b, c, d, e)
But one guy I worked with insisted all routines and variables had to be 8 characters long. His method was to come up with a description like "Print Spooler" and then divide 8 by the number of words and then use those characters to make the label "PRINT SPOOLER" becomes "PRINSPOO". All well and good until you come up with a name like "SHIPPING STATION CONTROL LOOP" which became "SHSTCOLO" (pronounced "sheh steh coe low").
Psychosis at 10
Film at 11
|
|
|
|
|
BrainiacV wrote:
"Another place had code from consultants that was complete alphabet soup with no comments."
function doIT (a, b, c, d, e)
Hey, I think they stole that method from the place where I used to work!
Also the desire to limit names to 8 characters should have died when programing languages started supporting longer names.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
I could handle the 8 character limitation better than I could the output from another coder working in a language that supported 32 character names. He liked creating long names that ran up to the limit. That wasn't the bad part (aside from making statements cover multiple lines to get anything done), the bad part was that he couldn't spell! So now you had to type all these long names with his mis-spellings. Sometimes his names didn't make sense "FireHunterSeekerBlowBackTo"
Psychosis at 10
Film at 11
|
|
|
|
|
I don't mind longish names if they are actually descriptive and useful. I really don't like names (short or long) that serve to obfuscate the code.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
Today my esteemed coworker invented a brand new programming paradigm: Redundant Coding (tm).
This buggy old legacy code we are working with has a least three almost identical and insanely complicated instances of a special form of coordinate transformation. We want to simplify, but which one to keep?
My coworker suggested that we compare the results of the three code blocks too see which one, if any, would give diviant results. This immideately lead to the idea of letting the three instances "vote" on the right result. And BAM the Redundant Coding programming paradigm was born.
Just as a jumbo jet has three of everything just in case, our code has three almost identical code blocks, just in case one of them is buggy! If one code block produces deviant results, the other two will take over!
I am, of course, kidding. We will clean this mess up eventually.
|
|
|
|
|
Any follower of the Trek universe will agree triple redundancy lasts into the 24th century.
I need an app that will automatically deliver a new BBBBBBBBaBB (beautiful blonde bimbo brandishing bountiful bobbing bare breasts and bodacious butt) every day.
John Simmons / outlaw programmer
|
|
|
|
|
Hey, O'Brien always said that he would never do without a second backup.
O'BRIEN
In order to bring the system up to
Starfleet code, I had to pull out
the couplings to make room for a
secondary backup.
GILORA
Starfleet code requires a second
backup?
O'Brien reacts to her tone.
O'BRIEN
(patiently)
In case the first backup fails.
GILORA
What are the chances that a primary
system and its backup would both
fail at the same time?
O'BRIEN
It's not likely, but in a crunch, I
wouldn't want to be caught without a
second backup.
http://www.twiztv.com/scripts/ds9/season3/ds9-315.txt[^]
|
|
|
|
|
They seem to need all those parellel systems so they can re-route warp power through them every episode.
I need an app that will automatically deliver a new BBBBBBBBaBB (beautiful blonde bimbo brandishing bountiful bobbing bare breasts and bodacious butt) every day.
John Simmons / outlaw programmer
|
|
|
|
|
Yeah, they always have "auxiliary power", often going to "phasers" or "forward shields"... hmmm... if you don't get yourself into a battle, you won't need the weapons or shields... lol
|
|
|
|
|
Too.
Much.
Time.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
|
|
|
|
|
I'm pretty sure the very model you describe is in use in some situations. Am I crazy for thinking that something along those lines was in use by NASA at some point? Or was that just a crazy story I heard?
There's a scene in the movie Apollo 13 where the guys back in Houston need to check some maths. The camera pans along a line of slide rule wielding boffins all confirming that they get the same
result and giving a thumbs up.
-Rd
|
|
|
|
|
Yeah... NASA has always used the triple redundancy method in all it's calculations. Even today on the shuttles.
|
|
|
|
|
Soemwhere, I've got an electronicafied copy of the Apollo Orbiter Guidance System Manual. Serriouly geeky stuff.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
|
|
|
|