User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Favorite debug variable Page [1]  
Oeuvre
All American
6651 Posts
user info
edit post

I hate foo. I think it's stupid.

I just use letters, most often x or y.

6/17/2008 3:58:21 PM

agentlion
All American
13936 Posts
user info
edit post

$temp, $dummy

never was a fan of $foo and $bar either.....

6/17/2008 4:05:56 PM

Shaggy
All American
17820 Posts
user info
edit post

temp
tmep
test
junk

6/17/2008 4:08:14 PM

sarijoul
All American
14208 Posts
user info
edit post

test or crap

6/17/2008 4:27:19 PM

qntmfred
retired
40683 Posts
user info
edit post

i, j or x, y

6/17/2008 4:28:44 PM

Oeuvre
All American
6651 Posts
user info
edit post

wonder why i, j, x, and y are popular choices.

I know when I first learned to loop, it was always for(i,i<condition,i++). Wonder how that standard came about. Almost all of my for statement variables are i.

6/17/2008 4:30:42 PM

tl
All American
8430 Posts
user info
edit post

i and j are typically my loop counters.
x and y are, ummm, x and y. always need coordinates x, y, z.

i prefer crap, test, dummy, or temp.

i believe i've spent a lot of time debugging a subroutine or two that i've named "test" only to find out that's some implicit function in fortran. so i prefer to use something that wouldn't possibly be reserved as a built-in function, so i stick with crap.

6/17/2008 4:34:38 PM

LimpyNuts
All American
16859 Posts
user info
edit post

I use s or t.

6/17/2008 5:58:22 PM

kiljadn
All American
44690 Posts
user info
edit post

by far asdafaf

6/17/2008 6:03:48 PM

afripino
All American
11421 Posts
user info
edit post

i, k, index, my______

6/17/2008 7:32:53 PM

LimpyNuts
All American
16859 Posts
user info
edit post


Using Rubber As Condom
Try
HaveSex(Rubber)
Catch AIDS As Exception When Not Rubber.Intact
MsgBox("You've got the AIDS!")
Finally
MakeMeASandwich()
End Try
End Using

6/17/2008 7:48:57 PM

DirtyMonkey
All American
4269 Posts
user info
edit post

blah or poop, and sometimes if i'm just testing some conditional (especially one i don't want to be true) i might say

if(condition) print('fuck!');

6/17/2008 7:55:21 PM

AntecK7
All American
7755 Posts
user info
edit post

usually im pretty descriptive even in debu shit,

but I mainly write VBscript to ease my admin work

That being said.

I recently had to go through a few scripts and ad replace FUck, beause when i first wrote the original script (for my own use) i had all my connectivy status stored in that variable.

6/18/2008 12:08:22 AM

Oeuvre
All American
6651 Posts
user info
edit post

I typically do a

if(condition) then "Hello"


Keep it clean just in case.

6/18/2008 8:32:10 AM

BigMan157
no u
103354 Posts
user info
edit post

blargh and lol

6/18/2008 10:27:55 AM

Donogh5
All American
971 Posts
user info
edit post

Quote :
"I know when I first learned to loop, it was always for(i,i<condition,i++). Wonder how that standard came about. Almost all of my for statement variables are i."


i'm guessing it's down to i = increment


[Edited on June 18, 2008 at 10:46 AM. Reason : <]

6/18/2008 10:46:00 AM

Shaggy
All American
17820 Posts
user info
edit post

Set s
Iterator i
Map map

if(conditionthatshouldneverhappen)
System.err("fuuuuuuucccccckkkkkkkkkkkkkkkkkk");

6/18/2008 10:56:52 AM

 Message Boards » Tech Talk » Favorite debug variable Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.