Click here to Skip to main content

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... PinmemberJörgen Andersson17-Jan-13 9:04 
GeneralRe: Happy new year... kind of... Pinmemberpeterchen28-Jan-13 22:05 
GeneralRe: Happy new year... kind of... Pinmemberhoernchenmeister28-Jan-13 22:49 
JokeRe: Happy new year... kind of... PinmemberVUnreal8-Feb-13 10:27 
GeneralJust got an error from VS2012 PinmemberBrisingr Aerowing15-Jan-13 8:48 
GeneralGetting it wrong badly PinmemberPIEBALDconsult9-Jan-13 14:12 
GeneralRe: Getting it wrong badly PinmemberSentenryu10-Jan-13 6:31 
GeneralRe: Getting it wrong badly PinmemberPIEBALDconsult10-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 PinmemberSentenryu10-Jan-13 22:31 
GeneralRe: Getting it wrong badly PinprotectorAspDotNetDev10-Jan-13 7:37 
GeneralRe: Getting it wrong badly PinmemberPIEBALDconsult10-Jan-13 7:52 
GeneralRe: Getting it wrong badly PinprotectorAspDotNetDev10-Jan-13 8:11 
GeneralFacepalm Moment PinmemberZac Greve7-Jan-13 8:47 
GeneralRe: Facepalm Moment PinmemberPJ Arends7-Jan-13 9:03 
GeneralRe: Facepalm Moment PinmemberZac Greve7-Jan-13 9:06 
GeneralRe: Facepalm Moment Pinmemberpeterchen7-Jan-13 10:03 
GeneralRe: Facepalm Moment PinmemberZac Greve7-Jan-13 10:12 
GeneralRe: Facepalm Moment PinmvpDave Kreskowiak7-Jan-13 9:15 
GeneralRe: Facepalm Moment PinmemberZac Greve7-Jan-13 9:30 
GeneralRe: Facepalm Moment PinmemberBobJanova7-Jan-13 23:29 
GeneralRe: Facepalm Moment PinmemberPIEBALDconsult7-Jan-13 9:17 
GeneralRe: Facepalm Moment Pinmemberlewax007-Jan-13 10:52 
GeneralRe: Facepalm Moment PinmemberJörgen Andersson7-Jan-13 10:05 
GeneralRe: Facepalm Moment PinprotectorPete O'Hanlon7-Jan-13 10:17 
GeneralRe: Facepalm Moment PinmemberZac 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.140922.1 | Last Updated 23 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid