Click here to Skip to main content
11,578,739 members (64,629 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, embarrasing 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: Happy new year... kind of... Pin
Jörgen Andersson17-Jan-13 9:04
memberJörgen Andersson17-Jan-13 9:04 
GeneralRe: Happy new year... kind of... Pin
peterchen28-Jan-13 22:05
memberpeterchen28-Jan-13 22:05 
GeneralRe: Happy new year... kind of... Pin
hoernchenmeister28-Jan-13 22:49
memberhoernchenmeister28-Jan-13 22:49 
JokeRe: Happy new year... kind of... Pin
VUnreal8-Feb-13 10:27
memberVUnreal8-Feb-13 10:27 
GeneralJust got an error from VS2012 Pin
Brisingr Aerowing15-Jan-13 8:48
memberBrisingr Aerowing15-Jan-13 8:48 
GeneralGetting it wrong badly Pin
PIEBALDconsult9-Jan-13 14:12
memberPIEBALDconsult9-Jan-13 14:12 
GeneralRe: Getting it wrong badly Pin
Sentenryu10-Jan-13 6:31
memberSentenryu10-Jan-13 6:31 
GeneralRe: Getting it wrong badly Pin
PIEBALDconsult10-Jan-13 7:42
memberPIEBALDconsult10-Jan-13 7:42 
No, the original inserts one there then uses LTRIM to remove it. Which means it will also remove any pre-existing SPACEs, which may not be as intended.
Mine will neither add nor remove a leading SPACE.
GeneralRe: Getting it wrong badly Pin
Sentenryu10-Jan-13 22:31
memberSentenryu10-Jan-13 22:31 
GeneralRe: Getting it wrong badly Pin
AspDotNetDev10-Jan-13 7:37
protectorAspDotNetDev10-Jan-13 7:37 
GeneralRe: Getting it wrong badly Pin
PIEBALDconsult10-Jan-13 7:52
memberPIEBALDconsult10-Jan-13 7:52 
GeneralRe: Getting it wrong badly Pin
AspDotNetDev10-Jan-13 8:11
protectorAspDotNetDev10-Jan-13 8:11 
GeneralFacepalm Moment Pin
Zac Greve7-Jan-13 8:47
memberZac Greve7-Jan-13 8:47 
GeneralRe: Facepalm Moment Pin
PJ Arends7-Jan-13 9:03
memberPJ Arends7-Jan-13 9:03 
GeneralRe: Facepalm Moment Pin
Zac Greve7-Jan-13 9:06
memberZac Greve7-Jan-13 9:06 
GeneralRe: Facepalm Moment Pin
peterchen7-Jan-13 10:03
memberpeterchen7-Jan-13 10:03 
GeneralRe: Facepalm Moment Pin
Zac Greve7-Jan-13 10:12
memberZac Greve7-Jan-13 10:12 
GeneralRe: Facepalm Moment Pin
Dave Kreskowiak7-Jan-13 9:15
mvpDave Kreskowiak7-Jan-13 9:15 
GeneralRe: Facepalm Moment Pin
Zac Greve7-Jan-13 9:30
memberZac Greve7-Jan-13 9:30 
GeneralRe: Facepalm Moment Pin
BobJanova7-Jan-13 23:29
memberBobJanova7-Jan-13 23:29 
GeneralRe: Facepalm Moment Pin
PIEBALDconsult7-Jan-13 9:17
memberPIEBALDconsult7-Jan-13 9:17 
GeneralRe: Facepalm Moment Pin
lewax007-Jan-13 10:52
memberlewax007-Jan-13 10:52 
GeneralRe: Facepalm Moment Pin
Jörgen Andersson7-Jan-13 10:05
memberJörgen Andersson7-Jan-13 10:05 
GeneralRe: Facepalm Moment Pin
Pete O'Hanlon7-Jan-13 10:17
protectorPete O'Hanlon7-Jan-13 10:17 
GeneralRe: Facepalm Moment Pin
Zac Greve7-Jan-13 10:20
memberZac Greve7-Jan-13 10:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web04 | 2.8.150603.1 | Last Updated 5 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid