- 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
lol ok moron.. you are not half as smart as you think you are.
Admin
Admin
Bert Glanstrom was such a programmer but they wouldn't employ him because he hadn't played with all the latest gadgets, took a donut which was there in a box in his interview room but wasn't intended for him, and had a name someone had decided to blacklist.
No jobs for intellects, just for idiots with nice personalities who have played with all the right toys.
Admin
All of them should be called TDWTFooleans. It's a modification of Hungarian Notation that self-documents the variable name.
Admin
Made me laugh ( yes of course fucking Out Loud, all laughter is by definition and how many people who type ROFLMAO are even fucking laughing, let alone rolling on the floor - I wish their arses would really fall off, now that would be funny)
Admin
Refactoring BEST case: While deciphering WTF the WTF code does, you determine that the reason it's so convoluted is because the original idiot author couldn't wrap his brain around the real problem and made a mess of it, and that as a result the WTF code doesn't actually function properly (at least in certain cases, perhaps not at all), so instead of replacing the code with code that "still does exactly what it did before", you fix the code in the process of making it more obvious/readable/maintainable. Do this a few times and you'll be the local hero, someone with a reputation for spotting/fixing longstanding (or not yet manifested but potentially OMG) quirks and bugs in the application.
Ok, so that's not technically "refactoring" if you fix it, but let's face it, how many times have you started out merely simplifying some convoluted piece of code, or just working carefully through it to figure out what the heck it does, and in the process discovered how broken it was? Once you're at that point, you might as well rewrite it to be both straightforward AND correct, and you wouldn't have gotten there if you hadn't started out to "just" refactor some P.O.S chunk of code.
In the case where the overly complicated WTF code turns out to actually work right (and that's not the way to bet), you've already invested the time and effort to know how to properly recode it cleanly, so you'll be doing the next programmer a favor by taking a moment to do that recoding, so that a) he won't have to go through the same painful process you did when you had to stop and decipher/verify the WTF code, and b) he won't be as likely to "guess" wrong about what it does (if he's not as tnorough as you are) and bolix something up while he's maintaining/upgrading it.
Admin
[quote user="Scarlet Manuka"][quote user="wtf"][quote user="Fred"]Refactoring best case: ... a giant meteor hits the earth, destroying all life.[/b] [/quote] FTFY.[/quote] FTFY.[/quote] FTFY.[/quote]
Admin
you mean less than True or more than false?
Admin