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

 
GeneralRe: for(int i=0; i<size; i++) Pin
Lutosław24-May-13 11:47
Lutosław24-May-13 11:47 
GeneralRe: for(int i=0; i<size; i++) Pin
H.Brydon30-Apr-13 18:47
professionalH.Brydon30-Apr-13 18:47 
GeneralRe: for(int i=0; i<size; i++) Pin
englebart1-May-13 4:12
professionalenglebart1-May-13 4:12 
GeneralRe: for(int i=0; i<size; i++) Pin
Jacquers30-Apr-13 20:20
Jacquers30-Apr-13 20:20 
GeneralRe: for(int i=0; i<size; i++) Pin
Brady Kelly30-Apr-13 21:09
Brady Kelly30-Apr-13 21:09 
GeneralRe: for(int i=0; i<size; i++) Pin
Jacquers30-Apr-13 22:34
Jacquers30-Apr-13 22:34 
GeneralRe: for(int i=0; i<size; i++) Pin
Dan Neely1-May-13 2:35
Dan Neely1-May-13 2:35 
GeneralRe: for(int i=0; i<size; i++) Pin
YDaoust30-Apr-13 21:36
YDaoust30-Apr-13 21:36 
I tend to use Index instead of i (I definitely like verbose identifiers). And when I need several indexes, like in nested loops, I naturally call them Jndex, Kndex, Lndex... (not kidding).

I have not yet come to the point that I use Number and Mumber for counts.
GeneralRe: for(int i=0; i<size; i++) Pin
Matthew Bache30-Apr-13 22:26
Matthew Bache30-Apr-13 22:26 
JokeRe: for(int i=0; i<size; i++) Pin
YDaoust30-Apr-13 23:23
YDaoust30-Apr-13 23:23 
GeneralRe: for(int i=0; i<size; i++) Pin
Rob Grainger1-May-13 3:17
Rob Grainger1-May-13 3:17 
GeneralRe: for(int i=0; i<size; i++) Pin
gholamali Hosseini30-Apr-13 23:14
gholamali Hosseini30-Apr-13 23:14 
JokeRe: for(int i=0; i<size; i++) Pin
YDaoust30-Apr-13 23:27
YDaoust30-Apr-13 23:27 
GeneralRe: for(int i=0; i<size; i++) Pin
gholamali Hosseini30-Apr-13 23:49
gholamali Hosseini30-Apr-13 23:49 
JokeRe: for(int i=0; i<size; i++) Pin
YDaoust1-May-13 0:07
YDaoust1-May-13 0:07 
GeneralRe: for(int i=0; i<size; i++) Pin
gholamali Hosseini1-May-13 0:39
gholamali Hosseini1-May-13 0:39 
GeneralRe: for(int i=0; i<size; i++) Pin
WPerkins1-May-13 2:42
WPerkins1-May-13 2:42 
GeneralRe: for(int i=0; i<size; i++) Pin
tumbledDown2earth1-May-13 3:17
tumbledDown2earth1-May-13 3:17 
GeneralRe: for(int i=0; i<size; i++) Pin
H.Brydon1-May-13 5:55
professionalH.Brydon1-May-13 5:55 
GeneralRe: for(int i=0; i<size; i++) Pin
WPerkins1-May-13 7:47
WPerkins1-May-13 7:47 
GeneralRe: for(int i=0; i<size; i++) Pin
fredrick721-May-13 2:56
fredrick721-May-13 2:56 
GeneralRe: for(int i=0; i<size; i++) Pin
mc421-May-13 3:13
mc421-May-13 3:13 
GeneralRe: for(int i=0; i<size; i++) Pin
Rob Grainger1-May-13 3:20
Rob Grainger1-May-13 3:20 
GeneralRe: for(int i=0; i<size; i++) Pin
mc4222-Oct-14 10:46
mc4222-Oct-14 10:46 
GeneralRe: for(int i=0; i<size; i++) Pin
Rob Grainger22-Oct-14 22:12
Rob Grainger22-Oct-14 22:12 

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.