PDA

View Full Version : The *&%$#!% programmer !



caroundw5h
05-26-2004, 05:32 PM
after reading this article (http://www.wired.com/wired/archive/12.06/start.html?pg=3) , I'm curious to know who here riddles their source code with cuss words? have you ever worked on sofware and documetented it with cuss words for something company who had no idea?

Perspective
05-26-2004, 06:19 PM
only in school projects.... especially for debug statements ;)

vNvNation
05-26-2004, 08:29 PM
I think it's quite healthy. I mean, it's almost a way to fight back against the code (obviously, it's the code's fault that it chooses not to work).

XSquared
05-26-2004, 08:43 PM
I don't swear in my comments. I just get incredibly sarcastic.

Thantos
05-26-2004, 09:28 PM
90% of my user validation error messages are designed to belittle the person :)

major_small
05-26-2004, 09:36 PM
it's not a big habit or anything, but yeah... and I put easter eggs in some of my code as well as some things that show up when you break it down with a hex editor ;)

http://www.durak.org/sean/pubs/kfc/

ober
05-27-2004, 07:27 AM
I use cuss words all the time when debugging, mainly because it would stand out more as opposed to other things. I rarely leave things like that in my comments, however. It's unprofessional and can put a negative spin on you later if someone with a lack of a sense of humor is rummaging through your code.

But I'm with Thantos... sarcastic comments abound throughout my comments.

Prelude
05-27-2004, 10:45 AM
Swearing in your comments makes you look like a fool IMO. Witty comments and puns make code more fun to read as long as they convey the necessary information. Remember that above all, comments are there to aid the reader in understanding your code and the intentions behind it.

Lurker
05-27-2004, 10:53 AM
I don't curse in my comments. I don't comment much either, however; it's something I really need to start doing.

adrianxw
05-27-2004, 11:04 AM
>>> Swearing in your comments makes you look like a fool IMO.

Yup.

>>> 90% of my user validation error messages are designed to belittle the person

Nope. If the user enters the wrong information to your prompt, you have failed in your task of preventing such an occurrance. Belittling the user for your failure is poor show. It is your job to make the data entry process work for the "challenged", and make then come away with a sense of acheivment. Running them down will not encourage learning.

Management, different story - We once had a screen which we knew would be seen which said something like...

A position indication record has been attached to a dummy node record. Despite numerous discussions with XYZ, I was assurred this would never happen. His extension number is 3033.

... and if AJC or SJP ever read this, PM me!

Thantos
05-27-2004, 11:13 AM
Nope. If the user enters the wrong information to your prompt, you have failed in your task of preventing such an occurrance.
Well when you ask for a zip code any they gave you a city name its really not the programmer's fault the user was too dumb to read the prompt. I agree that any professional apps shouldn't belittle anyone but for my personal apps or ones for school its all about having some fun.

whackaxe
05-27-2004, 11:26 AM
i curse a bit in source code when i have to do something the long way (compared to PHP in any case)

adrianxw
05-27-2004, 12:27 PM
>>>
Well when you ask for a zip code any they gave you a city name its really not the programmer's fault the user was too dumb to read the prompt.
<<<

Why? You are an American, you know what a "ZIP" code is. To me, ZIP is a make of barbecue lighting blocks, it is also the thing on the front of my trousers.

I happen to be old enough and worldly wise enough to know that it is also the "post code" in the US, but you assume I know that.

Ask me what my zip code is, and "14 inches" could be a totally accurate answer...

Jeremy G
05-27-2004, 01:12 PM
I like to make make allusions to god in my code comments.

Like:
// and on the first day he create int main, and he saw that it was good
int main() { };

etc.
But usualy thats only when I'm coding school programs. When i'm coding stuff thats actauly fun or practical, i tend to comment incredibly sparingly.

Thantos
05-27-2004, 01:18 PM
Why? You are an American, you know what a "ZIP" code is. To me, ZIP is a make of barbecue lighting blocks, it is also the thing on the front of my trousers.

I happen to be old enough and worldly wise enough to know that it is also the "post code" in the US, but you assume I know that.

Ask me what my zip code is, and "14 inches" could be a totally accurate answer...

Way to go in missing the point. It was an example. My point was that the programmer is not at fault for the user putting in wrong information, only for accepting it as valid.

Since you want to argue the example instead of the point lets try this one:

"Enter an integer between 0 and 10 inclusively (Example: 0, 5, 10): "
and the user enters 13 how is this the programmer's fault?

An example of my response would be something like this:

Since you obviously could not understand my simple instructions let me break it down for you. Type a whole number (a number without a decimal point [.]) and press enter. The number should be between 0 and 10 and may include 0 and 10. Lets see if you can do it right this time:

Lurker
05-27-2004, 01:58 PM
I love messages like those. There's very little ambiguity.

Lurker
05-27-2004, 02:03 PM
But usualy thats only when I'm coding school programs. When i'm coding stuff thats actauly fun or practical, i tend to comment incredibly sparingly.

Same here. I once had a final in an INCREDIBLY easy class using QBASIC ( :shudder: ). The instructor repeated many, many times "comment your code!". So I commented EVERY SINGLE LINE (this program had about 500 lines; not a lot, but I did this in a day while thinking of a storyline). I love being known as "The Psycho" :) .

VirtualAce
05-27-2004, 04:01 PM
What's a comment?


LOL


:D



j/k

major_small
05-27-2004, 04:20 PM
usually for any coding I do, I throw in curses if I'm commenting for myself, but before the final code gets put out there, I go through and get rid of all the curses... I still leave all the sarcastic comments in there though:


intI=static_cast<int>(floatX); //if you don't get it, remove it and see what happens...

I only do that when I'm commenting a line that is overly obvious...

nickname_changed
06-01-2004, 06:38 AM
Then Thantos your input box should replace numbers greater than 10 with 10 automatically, or something like that. Like the zip thing - if they try to enter text, it should beep or something to only allow them to enter numbers. They dont need a big fat dialog jumping down their throats - everyone knows users don't read prompts properly, you need to design to allow for that.

Edit: Perhaps for the 0-10 thing, you should have chosen a slide ruler control.

bludstayne
06-01-2004, 05:35 PM
I don't really think anything of cursing at all. They're just words. However, it does offend some people, that's why I myself only cuss around people I know don't care. It's not that I purposely do so, it's just that when I'm around friends I usually don't have to watch my tongue as much.

When you write code you do not know who is going to read it. If someone that is easily offended by cursing just happens to read your code, (s)he'll not think much of you in the future. Just like any communicated works. The only works I ever curse in are literary/musical works, because if you censor yourself in those works than your true thoughts are not being expressed. It is kind of annoying turning on artists that curse abnoxiously in their music. You know they probably put it in there to try to make it sound "cool" or something. Damn mainstream I am sillyI am sillyI am sillyI am sillying I am sillyI am sillyI am sillyI am silly on the goddamn I am sillyI am sillyI am sillyI am sillying radio need to shut the I am sillyI am sillyI am sillyI am silly up and suck a motherI am sillyI am sillyI am sillyI am sillying dick, yo!

edit: Whoever put the "I am silly" censor in is a genius. I am NOT saying that sarcastically either.

webmaster
06-01-2004, 06:32 PM
edit: Whoever put the "I am silly" censor in is a genius. I am NOT saying that sarcastically either.
Thanks!

JaWiB
06-01-2004, 06:43 PM
Lol it took me a while to figure out why people were saying "I am silly" in their posts...I think the first one I saw it in was one of Xterria's so I just kinda figured he did it on purpose...

Xterria
06-01-2004, 06:59 PM
Lol it took me a while to figure out why people were saying "I am silly" in their posts...I think the first one I saw it in was one of Xterria's so I just kinda figured he did it on purpose...
you have to pick on the forum idiot, dont you?
bastard.

JaWiB
06-01-2004, 07:02 PM
If the shoe fits...

major_small
06-01-2004, 07:21 PM
If the shoe fits...
...wear it. if not, it must be xterria's