Click here to Skip to main content
16,020,677 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
Rob Grainger22-Oct-14 22:12
Rob Grainger22-Oct-14 22:12 
GeneralRe: for(int i=0; i<size; i++) Pin
Michael A. Cochran1-May-13 3:43
Michael A. Cochran1-May-13 3:43 
GeneralRe: for(int i=0; i<size; i++) Pin
Cj Welborn1-May-13 4:58
Cj Welborn1-May-13 4:58 
GeneralRe: for(int i=0; i<size; i++) Pin
Antonino Porcino1-May-13 5:03
Antonino Porcino1-May-13 5:03 
GeneralRe: for(int i=0; i<size; i++) Pin
RafagaX1-May-13 6:38
professionalRafagaX1-May-13 6:38 
GeneralRe: for(int i=0; i<size; i++) Pin
Carlosian2-May-13 4:36
Carlosian2-May-13 4:36 
GeneralRe: for(int i=0; i<size; i++) Pin
Don Bruck3-May-13 6:15
Don Bruck3-May-13 6:15 
GeneralRe: for(int i=0; i<size; i++) Pin
robocodeboy5-May-13 23:27
robocodeboy5-May-13 23:27 
Yes, it is so: i, j and k are standard notation for mathematical arithmetic progressions and series.
From well before FORTRAN. But FORTRAN was designed by mathematicians, so we programmers are carrying over the notation.

a,b,c -> constants
x,y,z -> unknown terms (or real coordinates in cartesian plane)
k,j,i -> INTEGER indexes or vector coordinates.

I think Gauss was already using this conventions, more than 100 years ago.
Gauss wins. As always.
GeneralRe: for(int i=0; i<size; i++) Pin
Nicolas Dorier4-May-13 21:37
professionalNicolas Dorier4-May-13 21:37 
GeneralRe: for(int i=0; i<size; i++) Pin
peterchen6-May-13 2:58
peterchen6-May-13 2:58 
GeneralRe: for(int i=0; i<size; i++) Pin
DanielSheets6-May-13 7:12
DanielSheets6-May-13 7:12 
GeneralRe: for(int i=0; i<size; i++) Pin
DerekT-P8-May-13 0:26
professionalDerekT-P8-May-13 0:26 
Generalwhile(life!=death) Pin
Bikash Prakash Dash11-May-13 5:03
Bikash Prakash Dash11-May-13 5:03 
GeneralRe: for(int i=0; i<size; i++) Pin
The Nightcoder19-May-13 23:58
The Nightcoder19-May-13 23:58 
GeneralRe: for(int i=0; i<size; i++) Pin
John Hunley29-May-13 8:46
John Hunley29-May-13 8:46 
GeneralRe: for(int i=0; i<size; i++) Pin
MacSpudster31-May-13 9:54
professionalMacSpudster31-May-13 9:54 
GeneralInteresting Observation Pin
virang_2129-Apr-13 14:45
virang_2129-Apr-13 14:45 
GeneralRe: Interesting Observation Pin
Pablo Aliskevicius29-Apr-13 19:47
Pablo Aliskevicius29-Apr-13 19:47 
GeneralRe: Interesting Observation Pin
agolddog1-May-13 3:42
agolddog1-May-13 3:42 
GeneralRe: Interesting Observation Pin
Raja Sekhar S5-Jun-13 21:14
Raja Sekhar S5-Jun-13 21:14 
GeneralRe: Interesting Observation Pin
Pablo Aliskevicius5-Jun-13 21:21
Pablo Aliskevicius5-Jun-13 21:21 
GeneralRe: Interesting Observation Pin
Raja Sekhar S5-Jun-13 22:05
Raja Sekhar S5-Jun-13 22:05 
GeneralRe: Interesting Observation Pin
Pablo Aliskevicius5-Jun-13 23:31
Pablo Aliskevicius5-Jun-13 23:31 
GeneralRe: Interesting Observation Pin
Raja Sekhar S5-Jun-13 23:39
Raja Sekhar S5-Jun-13 23:39 
GeneralNot 'Clap' but 'CLAP', dammit. Pin
Brady Kelly24-Apr-13 22:36
Brady Kelly24-Apr-13 22:36 

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.