View Poll Results: What is you favoutite loop variable?
- Voters
- 21. You may not vote on this poll
-
Mar 13th, 2002, 06:31 AM
#1
Thread Starter
Lively Member
Last edited by Jamagei; Mar 13th, 2002 at 07:14 AM.
Now, aren't you sorry you didn't just keep on scrolling?
-
Mar 13th, 2002, 06:33 AM
#2
Lively Member
err ... what are favoutits ? Are they like the real thing ?
BTW. I always call my variables Charlie
A post brought to you by the Grim Reaper Appreciation Society™
"Buy your lifetime subscription now and save on your coffin"
-
Mar 13th, 2002, 06:36 AM
#3
Thread Starter
Lively Member
damn the typos.
And I can't change it
Now, aren't you sorry you didn't just keep on scrolling?
-
Mar 13th, 2002, 06:37 AM
#4
Lively Member
psssst, press edit an errr well edit it !
A post brought to you by the Grim Reaper Appreciation Society™
"Buy your lifetime subscription now and save on your coffin"
-
Mar 13th, 2002, 06:46 AM
#5
Thread Starter
Lively Member
You can't edit a poll once it is up there. Only Mods can do that.
Now, aren't you sorry you didn't just keep on scrolling?
-
Mar 13th, 2002, 06:49 AM
#6
Lively Member
I'm so so so so sorry
A post brought to you by the Grim Reaper Appreciation Society™
"Buy your lifetime subscription now and save on your coffin"
-
Mar 13th, 2002, 06:56 AM
#7
Thread Starter
Lively Member
So you bloody well should be
Now, aren't you sorry you didn't just keep on scrolling?
-
Mar 13th, 2002, 06:58 AM
#8
PowerPoster
Favoutites are what westie (emm to internationalise, the poorer burbs) girls put on before they hit the local pub on a saturday night.
I dont never ever neverrrrr use letters for loops. Well i do but i join a few of them together... they always mean something to me and sometimes remind me of that time in Paris walking along the Champs Elysees humming "don't blame it on the sunshine... don't blame it on the moonlight... "
-
Mar 13th, 2002, 06:59 AM
#9
Addicted Member
-
Mar 13th, 2002, 07:08 AM
#10
PowerPoster
Scary thing there Marty... u've edited that post and so I assume that the prev poem was even worse??
-
Mar 13th, 2002, 07:10 AM
#11
Lively Member
VB Code:
Public Sub Charlie(Charlie As Integer, Optional Charlie As String)
Dim Charlie As Integer
For Charlie = Charlie To Charlie Step -1
Charlie = Charlie & " does "
Next
End Sub
Sounds perfectly logical to me. You've only one variable name to remember.
A post brought to you by the Grim Reaper Appreciation Society™
"Buy your lifetime subscription now and save on your coffin"
-
Mar 13th, 2002, 07:11 AM
#12
Addicted Member
It was badly formatted!
don't ask me why, i like pie and the sky don't ask me why, i sometimes lie and buy don't ask me why why cos I am shy don't ask me why
-
Mar 13th, 2002, 07:12 AM
#13
Fanatic Member
iFlag for me
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Mar 13th, 2002, 07:12 AM
#14
Addicted Member
Or in my case:
VB Code:
Public Sub i(i As Integer, Optional i As String)
Dim i As Integer
For i = i To i Step -i
i = i & " i "
Next i
End Sub
-
Mar 13th, 2002, 07:15 AM
#15
PowerPoster
Originally posted by Martin Wilson
It was badly formatted!
T'were that was all that was bad
-
Mar 13th, 2002, 07:16 AM
#16
Thread Starter
Lively Member
My most humble apologies Wally. I made the same typo in the question for the poll and it was that to which I thought you were refering. I have now edited the title.
I subjugate myself to you.
Now, aren't you sorry you didn't just keep on scrolling?
-
Mar 13th, 2002, 07:18 AM
#17
Lively Member
Good show old man !
A post brought to you by the Grim Reaper Appreciation Society™
"Buy your lifetime subscription now and save on your coffin"
-
Mar 13th, 2002, 07:18 AM
#18
Addicted Member
BeachBum -
What are you suggesting? That I am not a poet!
Time for some digesting...and don't I know it!
-
Mar 13th, 2002, 07:21 AM
#19
Lively Member
BB is always suggesting things to people, usually of sexual nature.
This is the kind of mind that man has.
You should see him at the Mardi Gras. Pictures are circulation the Internet
A post brought to you by the Grim Reaper Appreciation Society™
"Buy your lifetime subscription now and save on your coffin"
-
Mar 13th, 2002, 07:26 AM
#20
Thread Starter
Lively Member
Now, aren't you sorry you didn't just keep on scrolling?
-
Mar 13th, 2002, 07:50 AM
#21
Hyperactive Member
S'gotta be strSQL . . . .
-
Mar 13th, 2002, 08:37 AM
#22
Addicted Member
Originally posted by gravyboy
S'gotta be strSQL . . . .
That's a pretty unusual choice of loop variable.
Another light-hearted post from Guru 
-
Mar 13th, 2002, 08:58 AM
#23
Fanatic Member
I don't use loops.
Loops are for losers...
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Mar 13th, 2002, 09:23 AM
#24
Like most people who learned Fortran as one of the first
languages I,J and K are the favoured loop variables. In Fortran
(at least those Fortrans that were in vogue in the 70's) any
variable that begain with the letters I,J or K were automatically
typed as integer.....meaning you didn't have to declare them.
For non-loop variables I prefer KKK and xxx.
Simon......awwww forget it. If it has to be explained, you
wouldn't be able to understand.
-
Mar 13th, 2002, 09:28 AM
#25
Thread Starter
Lively Member
I actually use k for no other reason than there were alot of Subs that had X (not x) as variables and it changed the entire set of x variables we had to upper case. It always defaulted to upper case as well, even when we changed them (or we might have missed some) but I couldn't stand the look of
Code:
For X = 0 to 10
instead of
For x = 0 to 10
So I started using k because it's nearly an x
Now, aren't you sorry you didn't just keep on scrolling?
-
Mar 13th, 2002, 09:35 AM
#26
PowerPoster
not that anyone cares but I start with x, if I use another in the same sub that would be y, then z, then if I need more I start from the beginning, e.g a, b, c etc
Hell, it's fun.
-
Mar 13th, 2002, 09:37 AM
#27
Fanatic Member
Simon......awwww forget it. If it has to be explained, you
wouldn't be able to understand.
Don't worry, I do use loops really. I just wanted to be different... 
As for variable naming, I always stick to rigid variable naming conventions (even for lowly loop variables) so I use:
intCount
A bit more of a pain to type but, a convention's a convention.
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Mar 13th, 2002, 09:38 AM
#28
Fanatic Member
I have been known to use starsky and hutch as named ranges in excel...
-
Mar 13th, 2002, 09:43 AM
#29
Lively Member
See ?
And you were laughing when I said I name them Charlie, S and Angels ...
A post brought to you by the Grim Reaper Appreciation Society™
"Buy your lifetime subscription now and save on your coffin"
-
Mar 13th, 2002, 10:08 AM
#30
transcendental analytic
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Mar 13th, 2002, 10:52 AM
#31
Hyperactive Member
OK . . . OK . . . . . I read the title of the thread and stupidly thought that the poll was the same . . . . ah well . . . .
In that case I nominate intLoop. I use it in the sense of a prefix . . . ie intLoopX and intLoopY when populating a chart or intLoopDays & intLoopHours when going through the week etc.
S'that alright now?
-
Mar 13th, 2002, 12:51 PM
#32
Monday Morning Lunatic
Code:
for(list<string>::iterator i = m_items.begin(); i != m_items.end(); ++i) {
// ...
}
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|