<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Fri May 24, 2013 8:44 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Fri May 24, 2013 8:44 am</pubDate>
  <lastBuildDate>Fri May 24, 2013 8:44 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Integer i : &amp;quot;Using Loops&amp;quot; LXF158</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=106217#106217</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=68033'&gt;einonm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jun 07, 2012 1:57 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I never use i for variable names, have you ever tried doing a grep for 'i' to find out all the places it's used? You'll end up hitting every 'if' in the file for one thing.&lt;br /&gt;
&lt;br /&gt;
As a consequence I always use 'ii' or 'jj' instead - much easier to search.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=106217#106217</comments>
                                        <author>einonm</author>
                                        <pubDate>Thu Jun 07, 2012 1:57 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=106217#106217</guid>
                                      </item>
                                      <item>
                                        <title>Re: Integer i : &amp;quot;Using Loops&amp;quot; LXF158</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=106211#106211</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=58561'&gt;Bazza&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jun 07, 2012 8:50 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hey carl_h...&lt;br /&gt;
&lt;br /&gt;
I always use n for a different reason - (n)umber...&lt;br /&gt;
&lt;br /&gt;
(But yeah, with the speccy I was lazy too... ;o)</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=106211#106211</comments>
                                        <author>Bazza</author>
                                        <pubDate>Thu Jun 07, 2012 8:50 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=106211#106211</guid>
                                      </item>
                                      <item>
                                        <title>Re: Integer i : &amp;quot;Using Loops&amp;quot; LXF158</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=106117#106117</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=1838'&gt;carl_h&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Jun 01, 2012 3:19 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Nuke wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;Graham Morrison wrote :- &amp;quot; the initial &lt;span style=&quot;font-weight: bold&quot;&gt;for&lt;/span&gt; statement requires a variable which for some reason is nearly always called &lt;span style=&quot;font-weight: bold&quot;&gt;i&lt;/span&gt; in examples&amp;quot;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
When I learned to program on a ZX Spectrum, I always used n, because in Sinclair Basic, for loops ended with a 'Next' statement, and 'NEXT n' was just two presses on the N key.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=106117#106117</comments>
                                        <author>carl_h</author>
                                        <pubDate>Fri Jun 01, 2012 3:19 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=106117#106117</guid>
                                      </item>
                                      <item>
                                        <title>Re: Integer i : &amp;quot;Using Loops&amp;quot; LXF158</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=105660#105660</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=68031'&gt;Xelous&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Apr 30, 2012 4:27 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      It was never important what i stood for, I've heard it called:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;br /&gt;
Index&lt;br /&gt;
Iterator&lt;br /&gt;
Increment&lt;br /&gt;
Integer&lt;br /&gt;
eye&lt;br /&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
Its no important that it means anything, but that it is simple in the code to see what is implied by the programmer... and especially to make sure not to use j as the next value somewhere in the code...&lt;br /&gt;
&lt;br /&gt;
At 3am on a coding kicker full of caffeine with the room all stuffy and the dog under the desk farting merrily, trying to decipher:&lt;br /&gt;
&lt;br /&gt;
for (int i = 0; i &amp;lt; imax; i++) {&lt;br /&gt;
   int jmax = i + 100;&lt;br /&gt;
   for (int j = i; j &amp;lt; (jmax); j++) {&lt;br /&gt;
&lt;br /&gt;
Is just horrible  &lt;img src=&quot;images/smiles/icon_lol.gif&quot; alt=&quot;Laughing&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=105660#105660</comments>
                                        <author>Xelous</author>
                                        <pubDate>Mon Apr 30, 2012 4:27 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=105660#105660</guid>
                                      </item>
                                      <item>
                                        <title>Re: Integer i : &amp;quot;Using Loops&amp;quot; LXF158</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=105559#105559</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=39'&gt;towy71&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Apr 26, 2012 8:38 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      i stands for interface as in gui &lt;img src=&quot;images/smiles/icon_razz.gif&quot; alt=&quot;Razz&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=105559#105559</comments>
                                        <author>towy71</author>
                                        <pubDate>Thu Apr 26, 2012 8:38 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=105559#105559</guid>
                                      </item>
                                      <item>
                                        <title>Re: Integer i : ¨Using loops¨ LXF158</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=105554#105554</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67227'&gt;Nuke&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Apr 26, 2012 7:10 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;DavidMcCrossan wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;Dear Nuke, you are almost certainly old to been around when there appeared a memorable cartoon in the famous American satirical mag featuring a whimsical representation of a hippy with beard, flares, sandals and guitar been wheeled out of the Courtroom as he declaimed the message ¨ a petty girl, a glass of wine and a charge of Statutory Rape...¨ &lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
Maybe, but I was never quite a contemporary of Omah Khayyam,&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.kellscraft.com/rubaiyatedition1.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;http://www.kellscraft.com/rubaiyatedition1.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;http://www.kellscraft.com/mcmanusruby2.JPG&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=105554#105554</comments>
                                        <author>Nuke</author>
                                        <pubDate>Thu Apr 26, 2012 7:10 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=105554#105554</guid>
                                      </item>
                                      <item>
                                        <title>Integer i : ¨Using loops¨ LXF158</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=105550#105550</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2755'&gt;DavidMcCrossan&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Apr 26, 2012 5:45 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Dear Nuke, you are almost certainly old to been around when there appeared a memorable cartoon in the famous American satirical mag featuring a whimsical representation of a hippy with beard, flares, sandals and guitar been wheeled out of the Courtroom as he declaimed the message ¨ a petty girl, a glass of wine and a charge of Statutory Rape...¨ &lt;br /&gt;
&lt;br /&gt;
Best&lt;br /&gt;
&lt;br /&gt;
David</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=105550#105550</comments>
                                        <author>DavidMcCrossan</author>
                                        <pubDate>Thu Apr 26, 2012 5:45 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=105550#105550</guid>
                                      </item>
                                      <item>
                                        <title>Re: Integer i : &amp;quot;Using Loops&amp;quot; LXF158</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=105545#105545</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Apr 26, 2012 12:43 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      When I learned CS at uni, i stood for index.&lt;br /&gt;
&lt;br /&gt;
That was Algol68, so a lot more modern than Fortran &lt;img src=&quot;images/smiles/icon_razz.gif&quot; alt=&quot;Razz&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=105545#105545</comments>
                                        <author>nelz</author>
                                        <pubDate>Thu Apr 26, 2012 12:43 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=105545#105545</guid>
                                      </item>
                                      <item>
                                        <title>Integer i : &amp;quot;Using Loops&amp;quot; LXF158</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=105544#105544</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67227'&gt;Nuke&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Apr 26, 2012 11:31 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Graham Morrison wrote :- &amp;quot; the initial &lt;span style=&quot;font-weight: bold&quot;&gt;for&lt;/span&gt; statement requires a variable which for some reason is nearly always called &lt;span style=&quot;font-weight: bold&quot;&gt;i&lt;/span&gt; in examples&amp;quot;&lt;br /&gt;
&lt;br /&gt;
He is writing a bit tongue in cheek, but of course it stands for &amp;quot;integer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
More specifically the practice comes from Fortran, which was my first programming language.  In IBM mainframe Fortran at least, all variables starting with letters between &lt;span style=&quot;font-weight: bold&quot;&gt;i&lt;/span&gt; and &lt;span style=&quot;font-weight: bold&quot;&gt;n&lt;/span&gt; were &lt;span style=&quot;font-weight: bold&quot;&gt;in&lt;/span&gt;tegers (geddit?) by default, and the rest were floating point.  So many coders adopted this convention as a lifetime habit, and &lt;span style=&quot;font-weight: bold&quot;&gt;i&lt;/span&gt; is my own first choice for any counter.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=105544#105544</comments>
                                        <author>Nuke</author>
                                        <pubDate>Thu Apr 26, 2012 11:31 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=105544#105544</guid>
                                      </item></channel></rss>