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: How to zero-pad a number? PinprofessionalNagy Vilmos1-Oct-13 1:49 
GeneralRe: How to zero-pad a number? PinmemberSortaCore1-Oct-13 1:55 
GeneralRe: How to zero-pad a number? PinprofessionalPIEBALDconsult1-Oct-13 5:18 
GeneralRe: How to zero-pad a number? PinprofessionalRichard Deeming1-Oct-13 5:27 
PIEBALDconsult wrote:
It can't be C#

Really? Poke tongue | ;-P
When one or both operands are of type string, + concatenates the string representations of the operands.




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: How to zero-pad a number? PinprofessionalPIEBALDconsult1-Oct-13 7:27 
GeneralRe: How to zero-pad a number? PinprofessionalRichard Deeming1-Oct-13 8:09 
GeneralRe: How to zero-pad a number? PinprofessionalPIEBALDconsult1-Oct-13 11:43 
GeneralRe: How to zero-pad a number? PinprofessionalRichard Deeming1-Oct-13 11:57 
GeneralRe: How to zero-pad a number? PinmemberBig Daddy Farang1-Oct-13 12:23 
GeneralRe: How to zero-pad a number? [modified] PinprofessionalPIEBALDconsult1-Oct-13 14:44 

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.150129.1 | Last Updated 31 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid