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: Padding an ID to six digits PinmvpStephen Hewitt14-Jul-08 17:53 
GeneralRe: Padding an ID to six digits Pinmemberleppie14-Jul-08 21:26 
GeneralRe: Padding an ID to six digits PinmemberClementsDan19-Jul-08 17:49 
GeneralRe: Padding an ID to six digits Pinmembergeoffs14-Jul-08 20:50 
GeneralRe: Padding an ID to six digits PinmemberBadKarma14-Jul-08 21:41 
GeneralRe: Padding an ID to six digits PinmemberPIEBALDconsult15-Jul-08 4:39 
GeneralRe: Padding an ID to six digits PinmemberRi Qen-Sin17-Jul-08 3:42 
GeneralRe: Padding an ID to six digits PinmemberPIEBALDconsult17-Jul-08 8:38 
Well, kinda, yeah.
 
Assuming the ID begins as an int...
 
int ID = 123 ;
...
string strID = ID.ToString ( "000000" ) ;

GeneralRe: Padding an ID to six digits PinmemberPaul Conrad16-Jul-08 9:15 
GeneralRe: Padding an ID to six digits Pinmembersupercat918-Jul-08 5:30 
GeneralRe: Padding an ID to six digits Pinmemberdybs16-Aug-08 18:18 
General// Enforce Method Contract PinmvpJosh Smith13-Jul-08 14:05 
GeneralRe: // Enforce Method Contract PinmemberDownUnderDev13-Jul-08 14:40 
GeneralRe: // Enforce Method Contract PinmvpCPallini13-Jul-08 21:10 
GeneralRe: // Enforce Method Contract PinmemberSimon Capewell15-Jul-08 2:16 
GeneralRe: // Enforce Method Contract PinmemberCIDev2-Sep-08 11:48 
GeneralRe: // Enforce Method Contract PinmemberPaul Conrad14-Jul-08 7:03 
GeneralRe: // Enforce Method Contract PinmvpPete O'Hanlon14-Jul-08 9:07 
GeneralRe: // Enforce Method Contract PinmvpJosh Smith14-Jul-08 9:28 
GeneralRe: // Enforce Method Contract PinmvpStephen Hewitt14-Jul-08 21:31 
GeneralRe: // Enforce Method Contract PinmemberDavid Kentley15-Jul-08 6:19 
GeneralBoolean Variable Name PinmemberDaniel Kanev11-Jul-08 4:19 
GeneralRe: Boolean Variable Name PinmemberRage11-Jul-08 4:57 
GeneralRe: Boolean Variable Name PinmemberDaniel Kanev11-Jul-08 5:42 
GeneralRe: Boolean Variable Name Pinmemberwilliamnw13-Jul-08 22:10 

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
Web03 | 2.8.140827.1 | Last Updated 28 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid