Click here to Skip to main content
12,549,003 members (48,210 online)

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: ... WHY?! Pin
Matt U.19-Nov-13 9:36
memberMatt U.19-Nov-13 9:36 
GeneralRe: ... WHY?! Pin
Brisingr Aerowing19-Nov-13 11:09
professionalBrisingr Aerowing19-Nov-13 11:09 
GeneralRe: ... WHY?! Pin
Quirkafleeg25-Nov-13 22:36
memberQuirkafleeg25-Nov-13 22:36 
GeneralRe: ... WHY?! Pin
Bernhard Hiller19-Nov-13 22:22
professionalBernhard Hiller19-Nov-13 22:22 
The reason behind that WTF is likely simple: somewhen during development, there was a problem, or an extreme value case had to be tested (width greater than screen width), and a developer decided to replace temporarily
htmlToImageConverter.BrowserWidth = int.Parse(tWidth);
htmlToImageConverter.BrowserWidth = int.Parse("1025");
But then forgot to change it back. And nobody complained till you happened to find that WTF...
GeneralRe: ... WHY?! Pin
RyanDev20-Nov-13 1:24
memberRyanDev20-Nov-13 1:24 
GeneralRe: ... WHY?! Pin
Matt U.20-Nov-13 3:15
memberMatt U.20-Nov-13 3:15 
GeneralRe: ... WHY?! Pin
Bernhard Hiller20-Nov-13 23:12
professionalBernhard Hiller20-Nov-13 23:12 
GeneralRe: ... WHY?! Pin
Matt U.21-Nov-13 3:14
memberMatt U.21-Nov-13 3:14 
GeneralRe: ... WHY?! Pin
Bernhard Hiller21-Nov-13 21:56
professionalBernhard Hiller21-Nov-13 21:56 
GeneralRe: ... WHY?! Pin
Matt U.22-Nov-13 3:38
memberMatt U.22-Nov-13 3:38 

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.

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 22 Oct 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid