Click here to Skip to main content
15,887,214 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: This code may not quite do what it says it does. Pin
austin hamman5-Jul-11 4:27
austin hamman5-Jul-11 4:27 
GeneralRe: This code may not quite do what it says it does. Pin
chmod22225-Jul-11 4:31
chmod22225-Jul-11 4:31 
GeneralRe: This code may not quite do what it says it does. Pin
User 48350475-Jul-11 3:39
User 48350475-Jul-11 3:39 
GeneralRe: This code may not quite do what it says it does. Pin
Mark AJA5-Jul-11 9:01
Mark AJA5-Jul-11 9:01 
GeneralRe: This code may not quite do what it says it does. Pin
Gates VP5-Jul-11 9:17
Gates VP5-Jul-11 9:17 
GeneralRe: This code may not quite do what it says it does. Pin
KP Lee6-Jul-11 6:41
KP Lee6-Jul-11 6:41 
GeneralRe: This code may not quite do what it says it does. Pin
Member 80050308-Jul-11 7:10
Member 80050308-Jul-11 7:10 
RantThe Engineer (wears a cowboy hat) Pin
RobCroll22-Jun-11 20:36
RobCroll22-Jun-11 20:36 
Bumped into an interesting “Engineered” approach the other day. Went for a meeting to discuss 2 applications that share many common features. So I was expecting 2 solutions, each sharing a number of projects.

How wrong I was. It turned out to be 2 applications in the one project! I didn't react surprised because I've seen the approach before. One project liberally sprinkled with pre-processor directives.
#if APP_ABC
	//Do stuff for ABC application
#else
	//Do stuff for XYZ application
#endif


Fortunately the developer reassured me he was an Engineer a few times so that made me feel a lot of better. D'Oh! | :doh:
"You get that on the big jobs."

GeneralRe: The Engineer (wears a cowboy hat) Pin
JV999923-Jun-11 21:54
professionalJV999923-Jun-11 21:54 
GeneralRe: The Engineer (wears a cowboy hat) Pin
RobCroll29-Jun-11 5:16
RobCroll29-Jun-11 5:16 
GeneralRe: The Engineer (wears a cowboy hat) Pin
Sander Rossel24-Jun-11 8:04
professionalSander Rossel24-Jun-11 8:04 
GeneralRe: The Engineer (wears a cowboy hat) Pin
TorstenH.27-Jun-11 4:39
TorstenH.27-Jun-11 4:39 
GeneralRe: The Engineer (wears a cowboy hat) Pin
gavindon27-Jun-11 6:55
gavindon27-Jun-11 6:55 
GeneralRe: The Engineer (wears a cowboy hat) Pin
djdanlib27-Jun-11 11:16
djdanlib27-Jun-11 11:16 
GeneralRe: The Engineer (wears a cowboy hat) Pin
BillW3328-Jun-11 3:04
professionalBillW3328-Jun-11 3:04 
GeneralWhat If Pin
AspDotNetDev21-Jun-11 16:20
protectorAspDotNetDev21-Jun-11 16:20 
GeneralRe: What If PinPopular
RobCroll21-Jun-11 18:16
RobCroll21-Jun-11 18:16 
GeneralRe: What If Pin
AspDotNetDev21-Jun-11 18:46
protectorAspDotNetDev21-Jun-11 18:46 
GeneralRe: What If Pin
Slacker00722-Jun-11 2:20
professionalSlacker00722-Jun-11 2:20 
GeneralRe: What If Pin
BrainiacV22-Jun-11 3:59
BrainiacV22-Jun-11 3:59 
GeneralRe: What If Pin
KP Lee6-Jul-11 6:51
KP Lee6-Jul-11 6:51 
GeneralRe: What If Pin
Br.Bill22-Jun-11 6:56
Br.Bill22-Jun-11 6:56 
GeneralRe: What If Pin
AspDotNetDev22-Jun-11 7:00
protectorAspDotNetDev22-Jun-11 7:00 
GeneralRe: What If Pin
dawmail33323-Jun-11 13:32
dawmail33323-Jun-11 13:32 
GeneralRe: What If Pin
djdanlib27-Jun-11 11:17
djdanlib27-Jun-11 11:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.