Comment On Dirty Code

Ever since being hired, Adam had spent most of his time working on new projects. [expand full text]
« PrevPage 1 | Page 2 | Page 3Next »

Re: Dirty Code

2012-02-06 10:12 • by thatguy (unregistered)
If(fuckingcomment == frist)
{
unfuck yourself
}
else
{
you're fucked
}

Re: Dirty Code

2012-02-06 10:12 • by dude (unregistered)
I can has frist?

Re: Dirty Code

2012-02-06 10:12 • by Anon (unregistered)
\o/ unfucked++;

Re: Dirty Code

2012-02-06 10:13 • by Frist (unregistered)
Frist

Oh Askimet...

Re: Dirty Code

2012-02-06 10:16 • by benjymous (unregistered)
What language allows hypens in identifier names?

Re: Dirty Code

2012-02-06 10:20 • by Steve The Cynic
Easy... you document what it does, not what it calls itself while it does it.

It might well be accurate about the sexual proclivities of those who gave orders (for those who don't know: "wanker" is British slang for one who commits self-abuse), but the readers of the document don't need to know that.

And besides, you can simply add a disclaimer to the top of the document that any undesirable language in the document is simply quoted from the source code, if you do need to cite the actual names used in the code.

Re: Dirty Code

2012-02-06 10:21 • by Steve The Cynic
373825 in reply to 373823
benjymous:
What language allows hypens in identifier names?

LISP, Forth, COBOL <-- examples for you

Of course, none of them match the syntax given, but there you are...

Re: Dirty Code

2012-02-06 10:23 • by vexorian (unregistered)
373826 in reply to 373823
benjymous:
What language allows hypens in identifier names?
Yesssss, that was my first reaction too. We are such fucking geeks.

Re: Dirty Code

2012-02-06 10:23 • by PlayHideAndGoF$%^Yourself (unregistered)
Coding in TourettesScript

Re: Dirty Code

2012-02-06 10:24 • by //Wegge (unregistered)
373828 in reply to 373823
benjymous:
What language allows hypens in identifier names?


Cobol usually have these funke SOMETHING-DASH-SOMETHING variable names. Lisp, or at least elisp, also accepts hyphens in identifiers. I would guess that other languages that are stack based, also allows them.

Re: Dirty Code

2012-02-06 10:30 • by operagost
I guess we finally found an application for the Brainfuck language.

Re: Dirty Code

2012-02-06 10:36 • by PiisAWheeL
I've been known to write some pretty strange things on most of my freelance projects, but I keep the swearing to my own personal projects :)

Re: Dirty Code

2012-02-06 10:38 • by Anonymous Coward (unregistered)
373831 in reply to 373823
If it's fucked it should no longer have a hyphen, right? {grin}

Re: Dirty Code

2012-02-06 10:44 • by PiisAWheeL
373833 in reply to 373831
Anonymous Coward:
If it's fucked it should no longer have a hyphen, right? {grin}


Maybe the v is a roman numeral.

Re: Dirty Code

2012-02-06 10:44 • by Hand Wringer (unregistered)
I am shocked, shocked I tell you, to encounter this kind of juvenile language on The Daily What-The-...

Oh, never mind.

Re: Dirty Code

2012-02-06 10:47 • by Anon (unregistered)
373835 in reply to 373834
Hand Wringer:
I am shocked, shocked I tell you, to encounter this kind of juvenile language on The Daily What-The-...

Oh, never mind.


Outstanding

Re: Dirty Code

2012-02-06 10:51 • by tehR (unregistered)
I thought the convention for determination of true/false was:

//These fucking wankers wanted it unfucked
private bool un-fuck(int fuck-v) {
if (fuck-v == 0)
{
return false;
}
else
{
return true;
}
}

I, on the other hand, would have added a bit of flair:

...

private const int FUCK_ALL = 0

...

//These fucking wankers wanted it unfucked
private bool un-fuck(int fuck-v) {
if (fuck-v == FUCK_ALL)
{
return false;
}
else
{
return true;
}
}

Re: Dirty Code

2012-02-06 10:55 • by Ollie (unregistered)
373837 in reply to 373823
I call "bogus." C-like languages simply don't allow hyphens in identifiers.

Re: Dirty Code

2012-02-06 10:56 • by Not Steve The Cynic (unregistered)
373838 in reply to 373824
Steve The Cynic:
It might well be accurate about the sexual proclivities of those who gave orders (for those who don't know: "wanker" is British slang for one who commits self-abuse)…


Curiously enough, in Aussie english, it is the term used for male masturbation. Many people don't call that self-abuse… Is self-abuse itself a British euphemism for masturbation?

Re: Dirty Code

2012-02-06 10:58 • by No swear filter on the system? (unregistered)
ours specifically removes the word 'felching' (If you need to google it - DON'T!). Assuming that all the words were added to the list because they turned up in the code at some point then someone must've been having a really bad day...

Re: Dirty Code

2012-02-06 10:58 • by Nagesh (unregistered)
#define - _

#define MINUS -

Re: Dirty Code

2012-02-06 10:58 • by PK (unregistered)
373841 in reply to 373823
COBOL for example

Re: Dirty Code

2012-02-06 10:58 • by golddog (unregistered)
We just did a release. As always, found some bugs here and there, so I've been looking for the global un-fuck method.

So if I make that a static method in a Utility-type class, all I have to do is call it on page load, right?

Re: Dirty Code

2012-02-06 11:00 • by Anon (unregistered)
373843 in reply to 373838
Not Steve The Cynic:
Steve The Cynic:
It might well be accurate about the sexual proclivities of those who gave orders (for those who don't know: "wanker" is British slang for one who commits self-abuse)…


Curiously enough, in Aussie english, it is the term used for male masturbation. Many people don't call that self-abuse… Is self-abuse itself a British euphemism for masturbation?


Yeah, it is :)

Re: Dirty Code

2012-02-06 11:04 • by Paul Neumann (unregistered)
The post itself is the troll. Move along. Nothing to troll here.

Re: Dirty Code

2012-02-06 11:06 • by Ec the College Student (unregistered)
373845 in reply to 373834
Hand Wringer:
I am shocked, shocked I tell you, to encounter this kind of juvenile language on The Daily What-The-...

Oh, never mind.

No, no, it's the Daily Worse Than Failure! ;)

Re: Dirty Code

2012-02-06 11:08 • by Steve The Cynic
373846 in reply to 373838
Not Steve The Cynic:
Steve The Cynic:
It might well be accurate about the sexual proclivities of those who gave orders (for those who don't know: "wanker" is British slang for one who commits self-abuse)…


Curiously enough, in Aussie english, it is the term used for male masturbation. Many people don't call that self-abuse… Is self-abuse itself a British euphemism for masturbation?

Actually, it's commonly cited as a Roman Catholic euphemism for masturbation. The British euphemism is "wanking".

Re: Dirty Code

2012-02-06 11:15 • by Anketam
373847 in reply to 373845
Ec the College Student:
Hand Wringer:
I am shocked, shocked I tell you, to encounter this kind of juvenile language on The Daily What-The-...

Oh, never mind.

No, no, it's the Daily Worse Than Failure! ;)
Right...

You keep telling yourself that.

Re: Dirty Code

2012-02-06 11:16 • by NPSF3000 (unregistered)
SNAFU

---

akismet - go die in a hole.

Re: Dirty Code

2012-02-06 11:26 • by Harrow (unregistered)
373849 in reply to 373846
Steve The Cynic:
Not Steve The Cynic:
Steve The Cynic:
It might well be accurate about the sexual proclivities of those who gave orders (for those who don't know: "wanker" is British slang for one who commits self-abuse)…


Curiously enough, in Aussie english, it is the term used for male masturbation. Many people don't call that self-abuse… Is self-abuse itself a British euphemism for masturbation?

Actually, it's commonly cited as a Roman Catholic euphemism for masturbation. The British euphemism is "wanking".
I don't see what's abusive about it. I think it's rather nice.

The New England euphemism for masturbation is "enjoying oneself".

E.g.
--Are you enjoying yourself here in Boston?
--Well, I haven't had an opportunity to enjoy anybody else.

Or
--I hope you enjoyed yourself at the party.
--No, I waited until I got home.

-Harrow.

Re: Dirty Code

2012-02-06 11:31 • by Anon (unregistered)
373850 in reply to 373849
Harrow:
Steve The Cynic:
Not Steve The Cynic:
Steve The Cynic:
It might well be accurate about the sexual proclivities of those who gave orders (for those who don't know: "wanker" is British slang for one who commits self-abuse)…


Curiously enough, in Aussie english, it is the term used for male masturbation. Many people don't call that self-abuse… Is self-abuse itself a British euphemism for masturbation?

Actually, it's commonly cited as a Roman Catholic euphemism for masturbation. The British euphemism is "wanking".
I don't see what's abusive about it. I think it's rather nice.

The New England euphemism for masturbation is "enjoying oneself".

E.g.
--Are you enjoying yourself here in Boston?
--Well, I haven't had an opportunity to enjoy anybody else.

Or
--I hope you enjoyed yourself at the party.
--No, I waited until I got home.

-Harrow.


It is supposedly self abuse as in the strict word of the bible it is a sin.

Re: Dirty Code

2012-02-06 11:33 • by Peter (unregistered)
373851 in reply to 373838
Not Steve The Cynic:
Steve The Cynic:
It might well be accurate about the sexual proclivities of those who gave orders (for those who don't know: "wanker" is British slang for one who commits self-abuse)…


Curiously enough, in Aussie english, it is the term used for male masturbation. Many people don't call that self-abuse… Is self-abuse itself a British euphemism for masturbation?
"Self abuse" is the Victorian euphemism.

Re: Dirty Code

2012-02-06 11:39 • by Paul Neumann (unregistered)
373852 in reply to 373851
Peter:
"Self abuse" is the Victorian euphemism.
Damn you Victoria!!!

Re: Dirty Code

2012-02-06 11:50 • by Not Jimmy Wales (unregistered)
373853 in reply to 373838
Not Steve The Cynic:
Steve The Cynic:
It might well be accurate about the sexual proclivities of those who gave orders (for those who don't know: "wanker" is British slang for one who commits self-abuse)…


Curiously enough, in Aussie english, it is the term used for male masturbation. Many people don't call that self-abuse… Is self-abuse itself a British euphemism for masturbation?


I've always defined wanker as "a term of abuse for those whose sexual practice is exclusively self-abuse." (I included "exclusively" because I have read that 90% of the general population masturbates & the remaining 10% lies about it.)

On the other hand, although my not-namesake Jimmy Wales spends a significantly large proportion of his time avoiding the need to resort to self-abuse (i.e., he chases the ladies), many people consider him a wanker. Just saying.

Re: Dirty Code

2012-02-06 11:56 • by Thiago (unregistered)
You take some fuck then some shit
then some fuck then some shit
You've got a fuck-shit stack
A fuck-shit stack

http://blip.tv/ghost-robot/reggie-watts-fuck-shit-stack-4332479

Re: Dirty Code

2012-02-06 12:20 • by caper (unregistered)
Reminds me of the time when I reviewed code from a work-term student. Every variable name and function name was a curse word.

Re: Dirty Code

2012-02-06 12:32 • by ekolis
373857 in reply to 373838
Not Steve The Cynic:
Steve The Cynic:
It might well be accurate about the sexual proclivities of those who gave orders (for those who don't know: "wanker" is British slang for one who commits self-abuse)…


Curiously enough, in Aussie english, it is the term used for male masturbation. Many people don't call that self-abuse… Is self-abuse itself a British euphemism for masturbation?


Speaking of Australian slang, do you have any idea what the heck "bloody fruit-shop owner" is supposed to mean? The sniper in Team Fortress 2 is always saying that, and I have no idea what it means... my best guess is "operator of a gay brothel"...

Re: Dirty Code

2012-02-06 12:33 • by wbrianwhite
Is this a real example of the fuckhead pattern?

http://thedailywtf.com/Articles/Are-You-Cool,-Man-and-More.aspx

Why does Askimet think a link to this same site is spam? Un-fuck your code Askimet, you wankers.

Re: Dirty Code

2012-02-06 12:50 • by Nagesh (unregistered)
373859 in reply to 373858
wbrianwhite:
Is this a real example of the fuckhead pattern?

http://thedailywtf.com/Articles/Are-You-Cool,-Man-and-More.aspx

Why does Askimet think a link to this same site is spam? Un-fuck your code Askimet, you wankers.

Making fun of Indian is not being funy.

Re: Dirty Code

2012-02-06 13:08 • by Jay (unregistered)
Just to get serious for a moment:

While I'm sure it was great fun for the original programmer to create such variable and function names, they make maintenance of the code extremely difficult. If someone tells me that I have to update the formula for calculating freight cost, and you've cleverly named the freight cost calculation function "prostitute_urinating_on_homosexual" (or words meaning something similar), I am not going to laugh at how witty you were. After spending hours trying to even find the appropriate function, I will no doubt be using similar words to describe what should be done to the programmer.

If I had to maintain this, the first thing I'd do would be to figure out what those variables and functions really are, and rename them to something meaningful. Hopefully you have an IDE that makes renaming easy. (A simple search-and-replace doesn't always cut it, especially in object-oriented languages where a dozen classes might have functions with the same name. Try renaming your class's toString method with a search-and-replace.)

Re: Dirty Code

2012-02-06 13:16 • by Jamoche (unregistered)
Ever since being hired, Adam had spent most of his time working on new projects.

Please. You expect me to believe a wtf-worthy company puts new hires on new projects?

Re: Dirty Code

2012-02-06 13:17 • by Beavis (unregistered)
Q: What's the difference between a pregnant woman and a lightbulb?
A: You can unscrew a lightbulb.

Re: Dirty Code

2012-02-06 13:22 • by EatenByAGrue (unregistered)
373863 in reply to 373829
operagost:
I guess we finally found an application for the Brainfuck language.


Well, actually, even better here would be the variation of Brainfuck called f*ckf*ck that replaced all the tokens in the language with various vulgarities, as described here:

http://esoteric.voxelperfect.net/wiki/Fuckfuck

Re: Dirty Code

2012-02-06 13:53 • by Graham (unregistered)
What kind of language allows hypens/minus signs in variable and function names?

Re: Dirty Code

2012-02-06 14:00 • by C-Octothorpe
373865 in reply to 373861
Jamoche:
Ever since being hired, Adam had spent most of his time working on new projects.

Please. You expect me to believe a wtf-worthy company puts new hires on new projects?
I missed the part of the storey where it said Adam was a junior developer.

Q: You have ten years of experience and get hired at a new company. How many years of experience do you have?

a) Ten years
b) Zero

Re: Dirty Code

2012-02-06 14:19 • by Paul Neumann (unregistered)
373866 in reply to 373865
C-Octothorpe:
Jamoche:
Ever since being hired, Adam had spent most of his time working on new projects.

Please. You expect me to believe a wtf-worthy company puts new hires on new projects?
I missed the part of the storey where it said Adam was a junior developer.

Q: You have ten years of experience and get hired at a new company. How many years of experience do you have?

a) Ten years
b) Zero
This reeks of all the job postings wanting 15+ years in Windows 7 or 23+ years in Android development ...

Re: Dirty Code

2012-02-06 14:24 • by C-Octothorpe
373867 in reply to 373866
Paul Neumann:
C-Octothorpe:
Jamoche:
Ever since being hired, Adam had spent most of his time working on new projects.

Please. You expect me to believe a wtf-worthy company puts new hires on new projects?
I missed the part of the storey where it said Adam was a junior developer.

Q: You have ten years of experience and get hired at a new company. How many years of experience do you have?

a) Ten years
b) Zero
This reeks of all the job postings wanting 15+ years in Windows 7 or 23+ years in Android development ...
What? You don't believe I have 34 years in .Net development experience, not to mention my 29 years of Java experience?

I also helped design the big-bang... True storey!

Re: Dirty Code

2012-02-06 14:27 • by Franz Kafka (unregistered)
373868 in reply to 373850
Anon:

It is supposedly self abuse as in the strict word of the bible it is a sin.


nah, it's just the catholics that think so.

Re: Dirty Code

2012-02-06 14:34 • by FuBar (unregistered)
373869 in reply to 373850
Anon:
It is supposedly self abuse as in the strict word of the bible it is a sin.
Um, no it's not. You'll never find a chapter and verse to back your claim. Wearing blended fabrics, though, THAT is a sin! Deuteronomy 22:11.

Re: Dirty Code

2012-02-06 14:42 • by Jamoche (unregistered)
373870 in reply to 373865
C-Octothorpe:
Jamoche:
Ever since being hired, Adam had spent most of his time working on new projects.

Please. You expect me to believe a wtf-worthy company puts new hires on new projects?
I missed the part of the storey where it said Adam was a junior developer.

Q: You have ten years of experience and get hired at a new company. How many years of experience do you have?

a) Ten years
b) Zero


I missed the part of my comment where I said he was junior.
« PrevPage 1 | Page 2 | Page 3Next »

Add Comment