Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Naming Variables

Name: Anonymous 2011-04-06 21:07

I just name them as they come. For example the first one will be something like int one;, the second int two;, etc, etc...
I think it's a pretty good system.

Name: Anonymous 2011-04-06 21:30


x y z w a b c d     generic object
xs ys zs ws ls      generic collection of objects
i j k l             loop indexen
n m i j k l         generic numbers
f g h fn fun proc   generic procedures
p                   predicate
r result            return value
z                   generic symbol, used for dispatching
a args              generic rest arguments (to be used with apply)
rest xs             generic rest
obj                 generic object
v v1 v2 ... vn      generic vector
h                   generic hash

Name: Anonymous 2011-04-06 21:31

>>2
DONT NEED THAT

Name: Anonymous 2011-04-06 21:33


spawnMissile m o src dst pl
 -> u:[@(newUnit o m) "owner"=0 "tile"=src "disp"=32src "payload"=pl]
    v:(dst-src)*32 s:3*u."speed" ttl:v.abs%%s
 -> u."anim"=:['missile ttl]
 -> u."dir"=:v%%(max ttl 1)
 -> order "die" u."id"
 -> unitSay "shot" u -> u.placeUnit -> [u@!newUnits]

Name: Anonymous 2011-04-06 21:52

>>2
I think I'm going to use this. Thanks.

Name: Anonymous 2011-04-06 22:29


int a;
char fff;
float asd;
long tits;

Name: Anonymous 2011-04-06 22:46

char mander; float zel;

Name: Anonymous 2011-04-06 22:55

too bad >>4 is a huge faggot

Name: Anonymous 2011-04-07 0:58

all my variable names are 1 character long because i need to save some bytes

Name: VIPPER 2011-04-07 4:17

>>2
You have solved my biggest problem for me.
Suck my cock.

Name: Anonymous 2011-04-07 9:03

You should use short names for local variables and longer meaningful names for function arguments, global variables and fields of classes.

Method's body should be short, so you may understand meaning of short variable's name easily.

Name: Anonymous 2011-04-07 9:13

>>11
Stop taking it seriously

Name: Anonymous 2011-04-07 9:31

>>12
Stop misunderstanding autists

I'm sure in his mind his comment was a hilarious joke

Name: Anonymous 2011-04-07 9:40

>>13
I didn't considered this as joke.

Name: Anonymous 2011-04-07 9:55

>>14
LISTEN HERE, YOU

Name: Anonymous 2011-04-07 10:37

>>2
indexen
*xarntwitch*

Name: Anonymous 2011-04-07 13:22

>>16

WHAT IT'S SUPPOSED TO BECOME THEN?

INDEXOLLOXEN?

Name: Anonymous 2011-04-07 13:46

indexes, indices

Name: Joshua Bloch Meme Fan 2011-04-07 13:48

I will cheerfully spend literally hours on identifier names: variable names, method names, and so forth, to make my code readable. If you read some expression using these identifiers and it reads like an English sentence, your program is much more likely to be correct, and much easier to maintain. I think that people who say, "Oh it's not worth the time; it's just the name of a variable," just don''t get it. You're not going to produce a maintainable program with that attitude.

It's from Chapter 5 in "Coders at Work", and I happen to think he's right

Name: Anonymous 2011-04-07 13:49

>>18
Seriously. Stop it.

Name: Anonymous 2011-04-07 13:53

>>20
hissss

Name: Anonymous 2011-04-07 14:11

>>18
INDEXEN! INDEXEN! INDEXEN IS THE STANDARD!!!

Name: Anonymous 2011-04-07 16:13

>>22
back to /ed/

Name: Anonymous 2011-04-07 16:16

I use self-descriptive identifier names that communicate the purpose for the variable, unless it's just a simple loop variable or array index.

Example:

void logger::report(log_record const& record) {
    lock_guard<mutex> guard(mutex_);
    for (log_sink& sink : global_sinks_) {
        if ((sink.min_level() <= record.level()) && (record.level() <= sink.max_level())) {
            sink->consume(record);
        }
    }
}

Name: Anonymous 2011-04-07 16:21

>>23
I'll go back to /standard/, thank you.

Name: Anonymous 2011-04-07 19:20

noko

Name: Anonymous 2011-04-07 19:21

noko

Name: Anonymous 2011-04-08 11:38

I adhere all my programming to whatever the spec says. Any variable identifiers that aren't spec'd out are given logical names.

Name: Anonymous 2011-04-08 11:43

i name all my variables zoklet please visit
http://www.zoklet.net/

Name: Anonymous 2011-04-08 23:20

I use the lyrics of the song I'm hearing when I need to name it.

Name: Anonymous 2011-04-09 2:03

>>30

What would you name this song?

http://www.youtube.com/watch?v=OLkJt5sxomM

Name: Anonymous 2011-04-09 2:16

>>31
Hax my anus?

Name: Anonymous 2011-04-09 2:17

>>27
noko static void main(int one, char **two) { ... }

Name: Anonymous 2011-04-09 4:41

>>31
That is True Blackness by Satanic Warmaster.

Name: Anonymous 2011-04-09 9:18

>>31
Industrial noise recording number 30.

Name: Anonymous 2011-04-09 12:57

extern double nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__));

Name: Anonymous 2011-04-09 13:35

I like to use GUIDs.  That way, I can copy and paste code everywhere and not worry about name collisions.


char *a2fca5e1_eb85_4d93_902d_fc9037dc71b0 = "anus";
puts("Hax my %s!", a2fca5e1_eb85_4d93_902d_fc9037dc71b0);

Name: Anonymous 2011-04-09 13:43

>>37
The whole idea behind GUIDs is retarded, incredibly low probability of getting dubz       is still not a zero probability.

Name: Anonymous 2011-04-09 13:45

>>36
__const__
Is this PYTHON?

Name: Anonymous 2011-04-09 13:48

___'''python'''___

Name: Anonymous 2011-04-09 13:49

>>38
100% probability of autism.

Name: Anonymous 2011-04-09 14:40

>>39

extern post /prog/ __attribute__ ((__reply__)) No. ;

Name: GCC FAGGOT 2011-04-09 15:44

>>36
Please optimize your __attribute__s !
extern double nan (__const char *__tagb) __attribute__ ((nothrow, const))[1]; extern double __nan (__const char *__tagb) __attribute__ ((nothrow, const));

-------------------------
[1] http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

Name: VIPPER 2011-04-09 15:50

JEWS

Name: VIPPER 2011-04-09 15:52

JEWS

Name: VIPPER 2011-04-09 15:54

JEWS

Name: VIPPER 2011-04-09 15:56

JEWS

Name: VIPPER 2011-04-09 15:58

JEWS

Name: Anonymous 2011-04-14 17:39

>>/g/16981926

Name: Anonymous 2011-04-14 17:39

>>>/g/16981926

Name: Anonymous 2011-04-14 17:40

>> /g/16981926

Name: Anonymous 2011-04-14 17:40

>>> /g/16981926

Name: Anonymous 2011-04-14 17:43

>>49-52

/backplate getgoes/

Name: Anonymous 2011-04-21 14:20

>>38
You're retarded, retard.

Name: Anonymous 2011-04-21 16:52

Eh?
Give me a link to pic: "Have you read your SICP today?"-with-the-crazy-trouser-snake-guy !

Don't change these.
Name: Email:
Entire Thread Thread List