Click here to Skip to main content
15,881,882 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.

 
GeneralRateOfInterest... Pin
Sandeep Mewara10-Jul-12 5:04
mveSandeep Mewara10-Jul-12 5:04 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult10-Jul-12 11:05
mvePIEBALDconsult10-Jul-12 11:05 
AnswerRe: RateOfInterest... Pin
Sandeep Mewara10-Jul-12 19:46
mveSandeep Mewara10-Jul-12 19:46 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 3:42
mvePIEBALDconsult11-Jul-12 3:42 
QuestionRe: RateOfInterest... Pin
Sandeep Mewara10-Jul-12 19:49
mveSandeep Mewara10-Jul-12 19:49 
AnswerRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 3:47
mvePIEBALDconsult11-Jul-12 3:47 
GeneralRe: RateOfInterest... Pin
BobJanova11-Jul-12 0:44
BobJanova11-Jul-12 0:44 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 3:50
mvePIEBALDconsult11-Jul-12 3:50 
BobJanova wrote:
obvious repetition of code


Yeah, so what? There's not much of it and it's clear.

I totally agree with using an array. But I'd use a for loop starting at 1.
GeneralRe: RateOfInterest... Pin
BobJanova11-Jul-12 4:38
BobJanova11-Jul-12 4:38 
GeneralRe: RateOfInterest... Pin
Sandeep Mewara11-Jul-12 7:14
mveSandeep Mewara11-Jul-12 7:14 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 8:37
mvePIEBALDconsult11-Jul-12 8:37 
JokeRe: RateOfInterest... PinPopular
S Houghtelin10-Jul-12 11:21
professionalS Houghtelin10-Jul-12 11:21 
GeneralRe: RateOfInterest... Pin
greldak10-Jul-12 22:07
greldak10-Jul-12 22:07 
GeneralDating PinPopular
V.10-Jul-12 3:56
professionalV.10-Jul-12 3:56 
GeneralRe: Dating Pin
Brisingr Aerowing10-Jul-12 13:57
professionalBrisingr Aerowing10-Jul-12 13:57 
GeneralRe: Dating Pin
Peter_in_278010-Jul-12 14:13
professionalPeter_in_278010-Jul-12 14:13 
GeneralRe: Dating Pin
V.11-Jul-12 9:14
professionalV.11-Jul-12 9:14 
GeneralRe: Dating Pin
jschell11-Jul-12 8:09
jschell11-Jul-12 8:09 
JokeRe: Dating PinPopular
walterhevedeich10-Jul-12 19:26
professionalwalterhevedeich10-Jul-12 19:26 
GeneralRe: Dating Pin
BobJanova11-Jul-12 4:38
BobJanova11-Jul-12 4:38 
GeneralRe: Dating Pin
Andrei Straut11-Jul-12 6:19
Andrei Straut11-Jul-12 6:19 
GeneralRe: Dating Pin
UNCRushFan15-Jul-12 12:46
UNCRushFan15-Jul-12 12:46 
GeneralRe: Dating Pin
jschell11-Jul-12 8:11
jschell11-Jul-12 8:11 
GeneralYou know it's time to go home... PinPopular
StM0n10-Jul-12 2:59
StM0n10-Jul-12 2:59 
GeneralRe: You know it's time to go home... Pin
Nagy Vilmos10-Jul-12 3:26
professionalNagy Vilmos10-Jul-12 3:26 

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.