|
...from the top of the page...
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.
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
you have copied all thing from the top of the page...
eNJOY c0ding....
|
|
|
|
|
But have you read it yet? Do you understand it?
|
|
|
|
|
Ya sir.and i don't think i have posted some wrong forum.shall i delete it?
eNJOY c0ding....
|
|
|
|
|
Leave it now, but in future pay attention to what the purpose of the forum is that you are posting in to. This forum is purely for code.
|
|
|
|
|
|
Don't be sorry about it. Anyone can make a mistake when they are new here. The important thing is that you learn.
|
|
|
|
|
Juhi Paunikar wrote: I think the life of software developer is a nothing but "The journey between LOGIN & LOGOUT"
Rather:
10 print "Hello Brave New World"
and:
<BindText Path="Windows.Controls.TextBox.Text" Value="Goodbye Cruel World!" Internationalization="All" Crypto="None" Expiration="@now" />
Marc
|
|
|
|
|
omg ... there are thousand other things ... like copy/code/paste/debug/build/run/execute/bug/bugs/more bugs/hell/fire/shout/yell/kill/hair loss/back pain/beer/more beer/etc etc
|
|
|
|
|
Haha its not like that
Along with Software development some of us are also involved with some other profession also , and they give same preference for both also.
Dat depends how we are leading our life.
|
|
|
|
|
|
From Socrates: All I know is that I know nothing.
I love it but sometimes I get tired of studying too much and I need a break. The thing is that in this field of knowledge we can't get often nor long breaks from studying and updating our's knowledge base. The more I study and get to know new things, I realize that I'm so dumb and I still need to learn so many things. That's so frustrating.
The thing is that I work from 8am to 6pm and study from 7pm to 10:30pm. I freelance on Saturdays and spend time with my family in Sundays. It's hectic and I don't have time for anything. Fortunately this is my last year in university, I believe I'll enjoy my studies and my family better from the next year and so on.
|
|
|
|
|
I am sure this was one of the hello-world codes for many of us ... But I wonder why the letter "i" .. I mean why on earth? With "a" the leading character why "i" ...
After sometime I found out that Fortran language (which was/is historically used for scientific calculations) use "i" as a starting character for all integer type variables, and the quickest varible to write would be "i"
Most authors and coders continued to use "i" even in C and then to C++ and then to C#, Java etc ...
Is this an interpretation?
|
|
|
|
|
i for iterator/iteration. Or i for index, as in how far through the loop it is.
.-.
|o,o|
,| _\=/_ .-""-.
||/_/_\_\ /[] _ _\
|_/|(_)|\\ _|_o_LII|_
\._. |\_/|"` |_| ==== |_|
|_|_| ||" || ||
|-|-| ||LI o ||
|_|_| ||'----'||
/_/ \_\ /__| |__\
modified 30-Apr-13 4:25am.
|
|
|
|
|
When I started I thought it was i for integer.
|
|
|
|
|
It is from Fortran. Integers were i to n, everything else was real. i happened to be the very first integer letter. Everyone unknowingly just followed Fortran.
|
|
|
|
|
Yes - for me it is a Fortran language practice. In Fortran IV, any variable starting with I, J, K, L, M, N is an integer (case-insensitive), whereas a variable starting with any other letter is a float. This continued for me, through C, Java, C++, C#.
|
|
|
|
|
|
There were but they were implicit.
Any variable name beginning with a letter between (and including) the first two letters of INteger was an integer, any other variable was a real.
|
|
|
|
|
Fascinating!
I know and still use that convention but had no idea what that particular set of letters was chosen until now.
Thanks.
Murray
|
|
|
|
|
Some of the earliest computer pioneers were mathematicians, and integers are usually represented by i, j and k. I guess it was just a convention academics adopted to avoid having to mentally remap a limited set of typewriter symbols.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
I was using i for index before I was introduced to Fortran.
|
|
|
|
|
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
|
|
|
|
|
Yes, quite. BASIC in 1983, Pascal in 1985, COBOL in 1986, Fortran (77?) in 1987. But BASIC is the only one I've been paid to use, COBOL and Fortran I only touched in college, and Pascal I haven't used at all since becoming comfortable with C. C# pays the bills now.
|
|
|
|
|
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...
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|