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

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Name: Anonymous 2012-07-27 23:30

`
>always write one statement per line as a matter of convention
>still need to put a semicolon at the end of the line
>it's 2012 and everyone has baby duck syndrome about a shitty hack meant to help parsers from the 1960s

Name: Anonymous 2012-07-28 13:14

>>14
JavaShit has ``semicolon insertion'', whereby semicolons are inserted into one's anus code.
for (i=0; s[i] != '\n'; ++i);
s[i] = ' ';

The ``logical'' thing for that code to do is this, which replaces the first newline with a space, if you ask any JavaShit programmer.
for (i=0; i < len; ++i)
     a[i] = 0

This code is even more ``logical'' to a JavaShit programmer because it does exactly what they would expect: it wastes time with a loop, and then sets the value of the last element of the array to 0.
i = len > 0 ? len - 1 : 0
     a[i] = 0

This is the OPTIMIZED version of the above code.

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