Bob, Jim and Tim
-
- Enthusiast
- Posts: 731
- Joined: Wed Apr 21, 2004 7:12 pm
Bob, Jim and Tim
I have a really odd habbit of 'naming' my variables. Not in the sense that I give them names that describe what information they hold, but actual people's names. Usually they're three letters long and the most common are 'Bob', 'Jim' and 'Tim'. 'Kim' crops up occasionally - but not as often as the other three. Now this is usually only in very small projects, and 'test' files as otherwise I'd very quickly run out of variable names in a larger project - I was just wondering if anyone else has any quirky coding habits?
~I see one problem with your reasoning: the fact is thats not a chicken~
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Well, similar to pantcho (I think he already knows this heh)..
But yes, usualy very obsene variable names from my side (of course, but of course, for testing: small sources or very little programs that are for my own usage.. else I use descriptive variable names with no obsene contents hehe).
I'd sure get banned if I wrote down a list of this variable names...
But most common is "pija" (its a lexic from "penis" in spanish, very funny, indeed....... that is because my brother used to say "this is a pija, this is pija, this other is pija, its all pija" hence... I used to tell him "heck you love pijas!" and now for some odd reason I often use that as a variable for testing purposes)... They dont come worst than that, do they?
(laughs)...
Anyone with something worst than this?
Also.. would anyone tell me why everyone uses 'l' for 'for' loops.. I find 'm' more addecuate, but this 'l' variable I've seen it since long time ago, whats the deal with 'l' anyway?
I also add some formatting when I define a value in an array
for example:

etc
(and yes I use ; at the end of almost everything, this must be something to do with php or c.. else I might fall into basic's lazyness and whenever I must work in say, php, I might forget about the ; ...).
But yes, usualy very obsene variable names from my side (of course, but of course, for testing: small sources or very little programs that are for my own usage.. else I use descriptive variable names with no obsene contents hehe).
I'd sure get banned if I wrote down a list of this variable names...
But most common is "pija" (its a lexic from "penis" in spanish, very funny, indeed....... that is because my brother used to say "this is a pija, this is pija, this other is pija, its all pija" hence... I used to tell him "heck you love pijas!" and now for some odd reason I often use that as a variable for testing purposes)... They dont come worst than that, do they?
(laughs)...
Anyone with something worst than this?
Also.. would anyone tell me why everyone uses 'l' for 'for' loops.. I find 'm' more addecuate, but this 'l' variable I've seen it since long time ago, whats the deal with 'l' anyway?
I also add some formatting when I define a value in an array
for example:

etc
(and yes I use ; at the end of almost everything, this must be something to do with php or c.. else I might fall into basic's lazyness and whenever I must work in say, php, I might forget about the ; ...).
i'm not everyone 
always use 'n' for simple loops
but about strange habits... i always use underscores
old_screen_size = whatever
and i tend to (ab)use the word 'old'
if old_screen_size <> screen_size
and similar constructions
i never caught myself using strange or funny variable names... yet

always use 'n' for simple loops
but about strange habits... i always use underscores
old_screen_size = whatever
and i tend to (ab)use the word 'old'
if old_screen_size <> screen_size
and similar constructions
i never caught myself using strange or funny variable names... yet

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
-
- User
- Posts: 12
- Joined: Tue Jul 12, 2005 6:55 pm
- Location: United Kingdom
I was doing some later night programming with a mate once and he started to spell 'customers' as 'custard', the name sort of stuck by the end of the night had:
bowls_of_custard
spoons_of_custard
and all sorts of other names based on this custard theme
Needless to say the code was unreadable the next day but it strangely worked and is probably still in use to this day
bowls_of_custard
spoons_of_custard
and all sorts of other names based on this custard theme
Needless to say the code was unreadable the next day but it strangely worked and is probably still in use to this day

Heheheh
Iterations, makes sense.. However its stupid
Like those using 'FP' variable name for file pointers... pisses me off.
Cant you hold in your brain whats that variable holding ?? jeez. at least give it a more reasonable name, defining which file pointer is it.
Bah, I shouldnt care about them..
Now that I remember, I did had "pija" as an array name in a commercial project which did ship like that (laughs).. No one ever noticed of course. (How professional can you be?
).
Iterations, makes sense.. However its stupid
Like those using 'FP' variable name for file pointers... pisses me off.
Cant you hold in your brain whats that variable holding ?? jeez. at least give it a more reasonable name, defining which file pointer is it.
Bah, I shouldnt care about them..
Now that I remember, I did had "pija" as an array name in a commercial project which did ship like that (laughs).. No one ever noticed of course. (How professional can you be?

> I use to use 2 to 6 characters for variables
I used to use just 2 chars for variables because that's how it was back in
the VIC-20 and C-64 days.
Nowadays though I use either full descriptive
words (eg. "admin" if the user has admin rights on the PC) or acronyms for
longer stuff (eg. "sww" to indicate whether the app starts with Windows).
I used to use just 2 chars for variables because that's how it was back in
the VIC-20 and C-64 days.

words (eg. "admin" if the user has admin rights on the PC) or acronyms for
longer stuff (eg. "sww" to indicate whether the app starts with Windows).
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
-
- Enthusiast
- Posts: 731
- Joined: Wed Apr 21, 2004 7:12 pm
I use 't' for loops.
Edit:
Well I started off with DarkBasic, and in the documentation for 'For Next' loops they used a 't'. It's just stuck.
Edit:
Well I started off with DarkBasic, and in the documentation for 'For Next' loops they used a 't'. It's just stuck.
Last edited by Killswitch on Tue Nov 01, 2005 8:31 pm, edited 1 time in total.
~I see one problem with your reasoning: the fact is thats not a chicken~
And the reason?
To me M is closer than anything else.. comfyness!
It's because of my way of typing.. believe it or not I type faster with my method than with other conventional methods..
I can tell you that the M here is kind of losing the ink in this keyboard :p
So I might use it a lot I guess.. mhh loops, nice and tastey.
To me M is closer than anything else.. comfyness!
It's because of my way of typing.. believe it or not I type faster with my method than with other conventional methods..
I can tell you that the M here is kind of losing the ink in this keyboard :p
So I might use it a lot I guess.. mhh loops, nice and tastey.
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact: