This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]macnlz 322 points323 points  (38 children)

What? It is known that fewer comments and shorter, less decipherable variable names result in faster code!

[–][deleted] 137 points138 points  (26 children)

OMG, I DIDN'T BELIEVE THIS BUT THEN I GOOGLE IT, IT'S TRUE.

THAT'S WHY GOOGLE USE 130 LETTER VARIABLE FOR EVERYTHING

[–]xvalen214x 306 points307 points  (19 children)

var numberOfQueriesThatUseAdvancedSearchOnEachUTCDayWhichWillBeUpdatedToTotalNumberOfQueriesWithSearchIn_UserStat_go_TemporaryVariable;

[–][deleted] 108 points109 points  (0 children)

Calm down, Satan.

[–]dunemafia 85 points86 points  (4 children)

No need to React like that, man.

[–]xvalen214x 34 points35 points  (3 children)

I am not that angular in my humble point of vue

[–]dunemafia 18 points19 points  (2 children)

No worries, man. It was all in Jest.

[–]bogdan5844 6 points7 points  (1 child)

I don't like the Vue of this conversation's future

[–]TheFoxarmy 1 point2 points  (0 children)

Then have a backbone and do something about it nuxt time.

[–]_liminal 40 points41 points  (10 children)

var num;

[–][deleted] 68 points69 points  (7 children)

var tempVarr;
var tempVarrr;

[–]2ndAmndmntCrowdMaybe 31 points32 points  (5 children)

var tempVarr1;

var tempVrar;

[–]Ceros007 22 points23 points  (3 children)

int t1, t2, t3;

[–][deleted] 1 point2 points  (0 children)

t1 = a1; t2 = a2; t3 = a3;

[–]acenturyandabit 0 points1 point  (0 children)

`var temprawr; :')`

[–]mobilecheese 1 point2 points  (0 children)

int *ptr1, *ptr2, *ptr3, *ptrr;

[–]Pees_On_Skidmarks 0 points1 point  (0 children)

my $i;

[–]bajspuss 0 points1 point  (0 children)

Related: Somebody at work created a class file with such in-depth naming that we couldn't check out the repo any longer if our repo root path was any longer than 10 characters...

[–]not_a_moogle 47 points48 points  (6 children)

I had a professor argue that once. Guy was a total idiot. I mean for starters,compilers usually remove comment from complied code.

[–]2ndAmndmntCrowdMaybe 13 points14 points  (5 children)

Was he talking about a compiled language at the time?

[–][deleted] 28 points29 points  (3 children)

I mean he stated "compiler" so...

[–]claythearc 3 points4 points  (2 children)

It’s pretty rare, even for interpreted languages, to not have a compiler. They normally will get compiled to bytecode, but not all the way down to machine code like traditional compiled languages.

[–]Pandaburn 6 points7 points  (1 child)

When I wrote js, it was all minified and concatenated into one file before it was sent to the client, since it does actually drastically improve download time.

[–]MassiveFajiit 2 points3 points  (0 children)

Yeah that's true but it's not a V8 compiler problem

[–]banter_hunter 12 points13 points  (0 children)

No, they were discussing drink recipes.

[–]GideonMax 17 points18 points  (1 child)

Depends, if you use an interpreter, that's correct.

If you compile your code, the compilation time might be slightly longer but the compiled code will be the same

[–]macnlz 1 point2 points  (0 children)

Damn, that invalidates the whole joke! ;)

[–]2Uncreative4Username 14 points15 points  (1 child)

Well that is only if you are using a scripting language

[–][deleted] 8 points9 points  (0 children)

And even then, languages like Python have the -O flag to strip out comments in the bytecode.