- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Maybe his judgment was impaired because he was still recovering from a case of the MUMPS.
Admin
Apply your own patch to FTFY.
--Joe
Admin
This is no laughing matter... my gigantic idiot son was hurt even more badly when -
....
oh, never mind.
Admin
Has no one here seen Wile E. Coyote? http://www.youtube.com/watch?v=STeVTzWelns
+1 for those comments now becoming part of my every day coding.
Admin
Dear Bob,
In case you can’t tell, this is a grown-up place. The fact that you insist on rehashing some lame joke from a previous article clearly shows that you’re too young and too stupid to be using TheDailyWTF.
Go away and grow up.
Sincerely, Brad Glasnost
Admin
"quite the legacy...it's been around since 1997 "
That is NOT legacy...Try a code base that can trace itself back to the late 1960's (yes, over 40 years from the original COBOL on Punched Cards, and in many places the COBOL statements are still around as comments
Admin
Well WE have code that dates back to when computers were just theoretical, the comments are pictures of papyrus taken on a wooden table.
Admin
I would LOVE to see how they fit the punched cards into the code base. I bet merge conflicts in <insert version control here> are fun!
Admin
Cave paintings or it didn't happen...
Admin
Ladies and gentlemen, please observe with an appropriately critical eye the work of Paula Bean's mentor.
Admin
Brillant!
I guess he used to pad things out with whatever letter he was up to, and then he discovered the 'TAB' key
Admin
Admin
Argh - there's nothing worse. Leave tabs as tabs, for fuck's sake. Then you can configure your IDE to (visually) tab as many spaces as you like (I'm a 4-char man myself). But getting the IDE to physically replace the tabs with some arbitrary number of damn spaces fucks it up for everyone. Doing a diff is a bloody nightmare and utterly futile (and don't give me that fucking bollocks about diffs that "ignore white space", they're bloody useless.
Admin
Seriously. I hate lines that contain only an opening brace as much as anyone (they waste screen real estate and make the code harder to read for absolutely no reason), but you just don't clutter the diffs like that. Except, perhaps, if you're taking ownership of a module and it's formatted hopelessly inconsistently anyway.
Admin
I would have given the guy some piece of my mind for spamming up the revision history like that with useless cosmetic commits. They probably change every single line in the file without actually changing, much less improving, anything of actual substance. Try making meaningful diffs over larger spans of the revision history after a checkin like that.
Nevermind that, unless he's the project leader or has explicitly been given ownership of that particular piece of code, the formatting is just plain none of his business.
Also, accusing you of keeping a copy of the original file? Does that man even know what source repositories with revision control are for?
Admin
Admin
Yes, and No. I have set up a number of clients where as the code is being checked in, it is automatically formatted (with a much deeper formatter than typical in the IDE) so that no matter how the developer mungs the whitespace (and line breaks, and blank lines, and...) the code that is in the repository confirms to the company standards (or is rejected)
Admin
i was like, am I the only one that caught that?
Admin
Admin
The disadvantage of being a Super Genius (as opposed to just a regular Genius like me) is that any exposure to a fragment of your original code causes you to weaken and die.
Admin
Has "Nagesh" become the new "Anon"? I, for one, welcome our new Ganeshian overlords.
Admin
Admin
I'm surprised that nobody in the first set of comments said:
Frrrrriiiiiiiiisssssssssssssssttttttttttttttttttt
As for white space, an editor I used would properly make tabs if there was white space before a "tab stop". The problem is that people have different ideas of where the tab stops should be. Some bozos (probably "super geniuses") seem to feel that tabs are every 4 spaces. They should get a life.
I await the comments for tomorrow for a comment as described above.
Admin
What archaic stuff do you use there for diff?
Even open-source WinMerge can ignore whitespaces.
Admin
TRWTF is
What does that even mean!?
Admin
Yes, there are text editors which have an option to (a) allow the user to define the number of spaces a tab takes up, and (b) to allow the option to get the editor to replace all tabs by the requisite number of spaces before saving. White space diff or not white space diff, it causes irritation at the very least.
Developers using spaces to mimic tabs are shoddy developers, as far as I'm concerned. I've seen them, hitting the space key: plonk plonk plonk plonk plonk plonk plonk plonk plonk plonk plonk, whoops too many: where's the backspace key: plonk plonk plonk ... Most tedious to mentor such people, particularly if they have a tendency to raise their voice in annoyance when you gently attempt to point out techniques for increasing their throughput.
I wonder whether such people need to utilise such long-winded techniques of entering "non-functional code" into their source files so as to provide their fingers something to do while awaiting their brains to grind into motion.
Admin
Admin
Admin
Too much whiskey? Or is this a severe case of zunesis?
Maybe you should try that new russian drug crocodile that everyone now is raving about.
Stop posting that bullshit, i already told you that i am not related.
I say it again: Do not involve me in your business! I am not you son and you are not my uncle!
Admin
Sorry but it ain't new. I'm using it since 2000
Admin
Blabla blabla whitespaces ... WTF ? Why would anyone NOT use tabs when indenting code ??? Using whitespaces is just as smart as changing the language syntax to use ([ instead of { ...
Admin
Admin
(2) No, that is not syntax. Syntax is something the compiler (and language definition in general) cares about. Most languages (though exceptions exist) don't care about the variety or amount of whitespace you use. That makes it considerably less smart to attempt to change the compiler-relevant syntax than it is to do even foolish weird things with whitespace.
Admin
Seriously? That is far easier to read than the "Let's cram 400x commands on the same line" style.
vs
or having braces that are on different lines and appear "mismatched"
Admin
Matter of taste. The 3rd option is far more aesthetically pleasing to me than either of the other two - although the second is worse, of course.
Not having the braces physically line up is unnecessary. All that matters is for the closing brace to match up against the opening word (in this case "for") of the structure block it closes. If that's too far up the page and there are so many blocks and the structure goes so deep within those blocks that this is not straightforward, then you have a refactoring job on your hands.
Admin
Sum time for job securenes, you shuld write code and remove all spaces just before comit. if the configuraton manager is aslep on job, you can get code in.
Admin
If you suspect someone is beginning to suffer from Zunesis, arm yourself and call 911 immediately. For your own rectum's sake!
Think of the children! I know I do ;>
Admin
Admin
Admin
But actually i was referring to my preference of barbecue sauces which measure in several million Scoville, so your crying will be ensured!
Admin
It's because he spelt it wrong - should try Zedunesis
And if he refers to not knowing "YHBT" - that's "You Have Been Trollt"
Admin
Admin
The DebugObject function should be called getUndefinedIfDebugObjAndWinOutHasDocumentOrGetFalseAlertingTheUserIfWinOutHasNoDocument. See, NOW it makes sense, doesn't it? You're welcome.
Admin
I'll hook you up to the machine just to be safe.
Or, better yet? Do you have a dog? One with a long, thin snout? Cause he could always act as a proxy...
I rather enjoy the idea of doing something inhumane and awful to a party related to the target, as then they will have to feel the additional guilt of getting that innocent party hurt (e.g. their dog/wife/child/mother/postman).
Admin
...though it would rob some of the intimacy, which is the part often most savory...
...that feeling of satisfaction.
Admin
When I read about that "Suuuuuuuuuupppperrrrr Geeeeeeeeennniuuuuusssss" and the Slow-Motion-Guy, I understand why Scott Adams produced so many strips...
I also worked with a "super-genius-like" code: every time the programmer edited a line, he put his name in a comment after the darn line. I found code blocks, methods, classes and even classes' comments with this! Yes! He put a comment on a comment!
Admin
Hm, can I comment on an article that isn't published yet?
Admin
I like this sentence. A lot. I had the honor to inherit code from a programmer I never met in person, but yet I feel I know him very well. Using GUI elements as some kind of temporary storage (because variables might "forget" the values you assigned to them?), every variable is of type string, global, and conveniently named "a, b, c, d, e, e1, f, f2, g, gg" and so on, if's with empty else blocks. Empty if blocks, with code in the else block. Empty catches. No try-catch where it would make sense. Constantly "off by one" errors in his loops. Nested if-elses (I once encountered a nested level of 32), where a simple switch would have been much more readable. GUI programs that ran unobserved on a server (via Windows Scheduler) and closed themselves after 5 minutes "if the user isn't there to close the program"). All business logic conveniently placed in the Form_Load event.
I rewrote/refactored many of his programs I had to use on a regular basis. So I really hope I made the jobs of the people who follow after me a bit easier...