Click here to Skip to main content
15,891,375 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: Thousands of links using... Pin
krumia4-Mar-12 16:35
krumia4-Mar-12 16:35 
GeneralRe: Thousands of links using... Pin
Mohibur Rashid7-Mar-12 22:47
professionalMohibur Rashid7-Mar-12 22:47 
GeneralClassic literature still relevant Pin
MClancy28-Feb-12 4:06
MClancy28-Feb-12 4:06 
GeneralRe: Classic literature still relevant Pin
PIEBALDconsult28-Feb-12 6:00
mvePIEBALDconsult28-Feb-12 6:00 
GeneralRe: Classic literature still relevant Pin
KP Lee13-Mar-12 13:17
KP Lee13-Mar-12 13:17 
GeneralRe: Classic literature still relevant Pin
SASS_Shooter1-May-12 6:29
SASS_Shooter1-May-12 6:29 
JokeFormat string to string Pin
RobCroll27-Feb-12 19:04
RobCroll27-Feb-12 19:04 
GeneralRe: Format string to string Pin
Gary Wheeler28-Feb-12 0:27
Gary Wheeler28-Feb-12 0:27 
One of the gems I keep finding in a (former) coworker's code:
CString string;
string.Format(_T("some text"));
CString::Format() does 'C' printf() style formatting. Why go through all that just to initialize a string to a constant value? Roll eyes | :rolleyes:

For the non-MFC folks in the audience:
CString string(_T("some text"));
is the preferred way to do this.
Software Zen: delete this;

GeneralRe: Format string to string Pin
Julien Villers7-Mar-12 0:09
professionalJulien Villers7-Mar-12 0:09 
GeneralRe: Format string to string Pin
scotchfaster16-Mar-12 17:58
scotchfaster16-Mar-12 17:58 
GeneralSilly SQL PinPopular
ZurdoDev27-Feb-12 8:06
professionalZurdoDev27-Feb-12 8:06 
GeneralRe: Silly SQL Pin
Mohibur Rashid27-Feb-12 20:05
professionalMohibur Rashid27-Feb-12 20:05 
GeneralRe: Silly SQL Pin
Shameel28-Feb-12 0:42
professionalShameel28-Feb-12 0:42 
GeneralRe: Silly SQL PinPopular
ZurdoDev28-Feb-12 2:10
professionalZurdoDev28-Feb-12 2:10 
GeneralRe: Silly SQL Pin
Andy Missico6-Mar-12 19:37
Andy Missico6-Mar-12 19:37 
Generalapp as an object name Pin
kmoorevs22-Feb-12 4:26
kmoorevs22-Feb-12 4:26 
GeneralRe: app as an object name Pin
ekolis22-Feb-12 7:11
ekolis22-Feb-12 7:11 
GeneralRe: app as an object name Pin
Chris Meech22-Feb-12 7:34
Chris Meech22-Feb-12 7:34 
GeneralRe: app as an object name PinPopular
kmoorevs22-Feb-12 9:24
kmoorevs22-Feb-12 9:24 
GeneralRe: app as an object name Pin
PIEBALDconsult23-Feb-12 14:02
mvePIEBALDconsult23-Feb-12 14:02 
GeneralRe: app as an object name Pin
kmoorevs24-Feb-12 7:06
kmoorevs24-Feb-12 7:06 
GeneralRe: app as an object name Pin
RobCroll24-Feb-12 0:56
RobCroll24-Feb-12 0:56 
GeneralRe: app as an object name Pin
kmoorevs24-Feb-12 7:15
kmoorevs24-Feb-12 7:15 
GeneralRe: app as an object name Pin
alcexhim28-Mar-12 14:00
alcexhim28-Mar-12 14:00 
GeneralRe: app as an object name Pin
kmoorevs29-Mar-12 2:34
kmoorevs29-Mar-12 2:34 

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.