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++) PinprofessionalPIEBALDconsult30-Apr-13 2:56 
GeneralRe: for(int i=0; i<size; i++) Pinmemberjsc421-May-13 0:49 
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 
It's also from FORTRAN for me, but we used just "i" rather than "index" partly because it saved time and space. We didn't have IDE's in those days, but punched cards (or paper tape) and is was a lot quicker to type a single character variable name on a punched card than a longer one. Saved waste as well if you mistyped "index" as "inedx" you had to chuck the card and type a new one.
With paper tape each character occupied 1/10th inch of tape, so "index" used 5 times the paper each time you typed it. With a long subroutine, that could get significant and make the roll a lot bigger (and heavier) and harder to roll back up again when it spooled off the end of the reader...
 
We only had 6 character variable names anyway... Laugh | :laugh:
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

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 

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.1411028.1 | Last Updated 28 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid