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: for(int i=0; i<size; i++) PinmemberMember 46088983-May-13 20:46 
GeneralRe: for(int i=0; i<size; i++) PinmemberAmarnath S30-Apr-13 0:48 
GeneralRe: for(int i=0; i<size; i++) PinmemberRosenne30-Apr-13 21:18 
GeneralRe: for(int i=0; i<size; i++) Pinmembergreldak30-Apr-13 22:47 
GeneralRe: for(int i=0; i<size; i++) Pinmemberdg6yhw111-May-13 6:32 
GeneralRe: for(int i=0; i<size; i++) Pinmemberdusty_dex30-Apr-13 1:26 
GeneralRe: for(int i=0; i<size; i++) PinprofessionalPIEBALDconsult30-Apr-13 2:56 
GeneralRe: for(int i=0; i<size; i++) Pinmemberjsc421-May-13 0:49 
If you were using 'i' before being introduced to FORTRAN, you must have been late being introduced. When I started, there was no lowercase!
 
After some assemblers, FORTRAN IV (aka FORTRAN 66) was one of the first high level languages that I learnt and so I (like everybody else) used I, J, and K as loop variable names. I also used FORTRAN II at college.
 
Shouldn't
for(int i =0; i
GeneralRe: for(int i=0; i<size; i++) PinprofessionalPIEBALDconsult2-May-13 3:26 
GeneralRe: for(int i=0; i<size; i++) PinmvpOriginalGriff30-Apr-13 4:03 
GeneralRe: for(int i=0; i<size; i++) PinmemberBrady Kelly30-Apr-13 21:54 
GeneralRe: for(int i=0; i<size; i++) PinmemberBrady Kelly30-Apr-13 22:01 
GeneralRe: for(int i=0; i<size; i++) Pinmembermark merrens30-Apr-13 6:24 
GeneralRe: for(int i=0; i<size; i++) PinprofessionalPIEBALDconsult30-Apr-13 16:43 
GeneralRe: for(int i=0; i<size; i++) Pinmembermark merrens1-May-13 6:09 
GeneralRe: for(int i=0; i<size; i++) PinmemberSentenryu2-May-13 1:32 
GeneralRe: for(int i=0; i<size; i++) PinprofessionalPIEBALDconsult2-May-13 3:28 
GeneralRe: for(int i=0; i<size; i++) PinprofessionalMember-99756132-May-13 4:46 
GeneralRe: for(int i=0; i<size; i++) Pinmembermark merrens2-May-13 6:16 
GeneralRe: for(int i=0; i<size; i++) PinmvpOriginalGriff2-May-13 6:58 
GeneralRe: for(int i=0; i<size; i++) PinmemberSentenryu2-May-13 8:07 
GeneralRe: for(int i=0; i<size; i++) PinprotectorAspDotNetDev30-Apr-13 9:15 
GeneralRe: for(int i=0; i<size; i++) PinmemberJacek Gajek24-May-13 1:32 
GeneralRe: for(int i=0; i<size; i++) PinprotectorAspDotNetDev24-May-13 5:54 
GeneralRe: for(int i=0; i<size; i++) PinmemberJacek Gajek24-May-13 12:47 

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
Web01 | 2.8.150302.1 | Last Updated 4 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid