| « Prev | Page 1 | Page 2 | Page 3 | Next » |
|
Andy was here frist
|
|
Frist!
(Yea yea akismet) |
|
public class Andy extends Object{
... } public class X extends Andy Where X is every class in your codebase. |
|
My database stuff seems to have a small trait of Andyism in it. There are little bits of Andy (75%) throughout:
SELECT foo FROM bar WHERE a = @a AND b = @b AND ... |
Re: The Andy Pattern
2011-11-28 09:10
•
by
Anonymous
(unregistered)
|
It's too early for horror stories. |
|
Andy must have been part of a pair programming team (evidenced by the frequent use of "we"). Unfortunately for his partner, Andy was the only one allowed to drive. Andy mut've been some kind of Senior Software Engineer.
|
|
Personally I see this as a failure of the code review team. How did this code reach beyond the development machine is a mystery to me?
A "propah" code review would have eliminated such errors in the future. It is imperative that the programming team mend its ways and have some sort of process before releasing code to production. Does anyone care about variable names if the code does what it is supposed to? |
|
I like how every sample contains an additional little wtf in the from of an unused variable, etc. etc.
|
|
Andy would be the reason why a baseball bat is an essential tool for code reviews.
|
Re: The Andy Pattern
2011-11-28 09:22
•
by
nag_geoff
(unregistered)
|
Resorting to violence or threats thereof, will halt the meteoric rise of human civilization. |
|
Here lies andy
peperony and chease |
Not only that, but if the snippets are accurate, it does not follow consistent identation/spacing, consistent word case, consistent naming convention, etc etc Captcha: valetudo... ouch, just perfect, I'm afraid |
Reread it again and just noticed that little pearl
Yup, not used at all :D |
I regularly think about a baseball bat when facing some of the ex-coders of my current project... should I worry? |
You got inconsistencies in languages themselves, too. In PHP, for example, some functions start with, eg. str_, while others don't have the underscore. You also have parameters that follow ($needle, $haystack) for some functions, and other, similar functions have ($haystack, $needle). If such things are built into a language, then can you still call it a WTF? It seems more like that guy's been coding the same way languages've been made. |
About here, somebody would make the obligatory remark about PHP and TRWTF. |
TRWTF is PHP There! Lunch time, can I go now? |
|
What would come of coupling between Andy and the Brillant Paula Bean?
Perhaps a new horror movie series for programmers? |
Two negatives Make a positive... |
Actually, it's an optimization using string interning ;). |
Sorry, we already have that: public interface LoggableObject { ... } public abstract AbstractLoggableObject implements LoggableObject { ... } and everything is a descendent of AbstractLoggableObject. |
Re: The Andy Pattern
2011-11-28 10:00
•
by
TPS Reports
(unregistered)
|
If that language is PHP, then yes, we can definitely still call it a WTF. |
|
Writing to an LCD? Is this code for an embedded system?
|
|
That reminded me of the song by The Killers: Andy You're a Star! (www.youtube.com/watch?v=xY0y-gOe78c)
|
.pde is an extension commonly used by Arduino code, so I'm guessing that it is, yes. |
Why not use constant here? |
|
Its an RFID reader for a tennis game featuring Andy Murray. Simples.
|
This made me giggle because it reminds me of a the "Systems Engineer" I once worked alongside who would lay lan cable all day... |
|
Reminds me of Rachelle.
//TODO: Andy |
He did... Didn't you see the quoted 'R'? |
Or maybe the partner was so ashamed, he advised Andy to sign his code this way. |
FTFY |
Because the week after, it'd be "S". That's not very constant, is it, if he has to change it each week? |
|
Yes, but i am saying use constant like this.
I thinking that andy like to see his name in coed all time. So this blatent misuse of variable naming conventions. |
Who is passing the "S" in that case? Are you seeing thing that I am not seeing or are you his boss / coleage / subordinete? |
Who doesn't like to see their "andy" (or whatever you call yours) in a coed? |
I don't like to name mine because then I feel bad when I beat it... |
|
No I'm not this Andy!
|
Re: The Andy Pattern
2011-11-28 10:46
•
by
zirias
(unregistered)
|
So, Andy is useless you say? |
Re: The Andy Pattern
2011-11-28 10:50
•
by
OldCoder
(unregistered)
|
Now you're being silly! |
|
I assume that the intention of the dramatic comment
// activate help variable is to impress readers who might otherwise think that Andy is an idiot who's overly fond of superfluous temporaries. |
Re: The Andy Pattern
2011-11-28 10:56
•
by
Paul
(unregistered)
|
Depends. Were you planning to maintain or re-use the code at all? |
Re: The Andy Pattern
2011-11-28 10:56
•
by
randyandy
(unregistered)
|
No, variable names are superfluous. To be sure we're not mislead by variable names, we have a SCM commit hook that runs the source through an obfuscator. |
|
Andy walks with me,
Andy talks with me, Andy tells me I am his own. |
|
This article gave me visual hallucinations. By the second code snippet, I was starting to see the code written in crayon.
ANDY MADE THIS. I'M HELPING! FRANK AND BEANS! FRANK AND BEANS! |
Re: The Andy Pattern
2011-11-28 11:14
•
by
Jonathan
(unregistered)
|
|
TRWTF is Arduino used in production.
|
If you own a baseball bat, but don't actually play baseball, then yes you should worry. |
Totally. Meteors don't rise, they fall. |
|
This WTF just put a smile on my face. I wouldn't smiling if I'd been the poor sap who mailed this in, though.
|
| « Prev | Page 1 | Page 2 | Page 3 | Next » |