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

Pages: 1-4041-

Whitespace is worthless extra bytes

Name: Anonymous 2007-05-16 17:11 ID:g5owuBHL

Ok /prog/, we all know indentation is stupid, but why does anyone use whitespace *anywhere*? It just makes the code take up that much more space on the disk, and it slows down the compiler because it has to read past all the whitespace so it can parse the code. I got rid of all my whitespace and my programs build so much faster now!

Name: Anonymous 2007-05-16 17:24 ID:w7d341ib

Stop using IDE

Name: Anonymous 2007-05-16 17:37 ID:5MMyGFvg

yeah, and down with line breaks too!

Name: Anonymous 2007-05-16 18:03 ID:sNqpat/v

I don't know about you, but I use spaces and tabs to AND and OR... oh, wait. 'Compiler', you say? 'Build'? Sheesh. No wonder your code takes up so much space.

Name: Anonymous 2007-05-17 3:57 ID:o+/F9xzH

Ok/prog/,weallknowindentationisstupid,butwhydoesanyoneusewhitespac
e*anywhere*?Itjustmakesthecodetakeupthatmuchmorespaceonthedisk,and
itslowsdownthecompilerbecauseithastoreadpastallthewhitespacesoitca
nparsethecode.Igotridofallmywhitespaceandmyprogramsbuildsomuchfast
ernow!

Name: Anonymous 2007-05-17 5:32 ID:Heaven

Lol at anyone who doesn't recognize this copypasta. Lurk moar.

Name: Anonymous 2007-05-17 5:33 ID:NzUxyd+Z

>>5
Iseewhatyoudidthar

Name: 1 2007-05-17 7:37 ID:UrbLl0Qe

>>6
I beg to differ.
If that's copypasta I must have zenned it, because I've never seen it before; I typed it out.

Name: Anonymous 2007-05-17 8:10 ID:Q/xnvnGe

>>8

You Just Got Trolled!

Name: Anonymous 2007-05-17 8:15 ID:wZgplQIf

I'd use whitespace instead of parens to decide order of evaluation. For example:
i = 2+3 * 5
means you have to do 2+3 first. For niceness, I'd require an equal number of spaces before and after each operator. Another example:
i = 2 + 3/2  *  8

Name: Anonymous 2007-05-17 8:21 ID:+XVQ/efz

>>10
Your second example shows exactly why that is a bad idea. It requires a fixed-width font to make it at all understandable.

Name: Anonymous 2007-05-17 8:29 ID:tfC3bF+2

>>10
That would great... for exactly two binary operations. Dumbass.

Name: Anonymous 2007-05-19 0:29 ID:+Us5sFuc

>>10
DIE YOU STUPID MOTHERFUCKER

Name: Anonymous 2007-05-19 1:38 ID:p0WqPxGt

>>10
Jesus Christ you're stupid. GTFO my /prog/

Name: Anonymous 2007-05-19 6:03 ID:kx9KaoFi

>>11
It requires a fixed-width font to make it at all understandable.
And this is bad because...?

Name: Anonymous 2007-05-19 6:16 ID:puPM9aFk

>>15
If you happen to like variable-width fonts more, or if someone prints out your code with variable-width fonts.

Name: Anonymous 2007-05-19 7:59 ID:8ov6C5eS

i have worked in maine, new hampshire, new york,utah, colorado,florida,bahamas.
never indented my code!
im undefeated in competitive obfuscation of code.
im on my way to IOCCC.
go ahead and come step anytime you want.b*tch

Name: Anonymous 2007-05-19 11:49 ID:+Us5sFuc

Here, I dont get the OP is not using whitespace supposed to be cool?
doCoolPeopleTalkLikeThis?
IDontThinkSo.

Cool people use spaces to seperate words, and they use punctuation (and paranthesis yes I have read sicp!) to emphasize meaning.

Name: Anonymous 2007-05-19 12:11 ID:puPM9aFk

>>18
There are to misspellings in your last sentence.

Name: Anonymous 2007-05-19 12:21 ID:Heaven

>>19
There are one misspellings in your last sentence.

Name: Anonymous 2007-05-19 12:35 ID:+Us5sFuc

>>20
There are zero misspellings in your last sentence.

Name: Anonymous 2007-05-19 15:05 ID:oS5LuyZ3

>>21
There are minus one misspellings in your last sentence.

Name: Anonymous 2007-05-19 15:25 ID:nocaXXc0

brain the get this, flavor your you've that you. don't crook Meta
 criticism and was

Name: Anonymous 2007-05-19 16:14 ID:Heaven

Vlad farted.

Name: Anonymous 2007-05-19 16:20 ID:henSQKYr

>>18
I also don't speak in code. There's a difference.

Name: Anonymous 2007-05-19 20:27 ID:o+vvkE+I

whitespace is generally ignored or taken out of your code by the compiler.  You must be using a higher level language to be worried about whitespace.  My advice, stop using VB and use a real language that is scalable.

Name: Anonymous 2007-05-19 20:29 ID:Hne2bxP+

Name: Anonymous 2007-05-20 7:28 ID:osxZuj9G

>>16
If you like variable width fonts for programming you're an idiot. If someone prints out your code in a variable width font they're an idiot.

Name: Anonymous 2007-05-20 7:33 ID:z9JPjCLq

>>28
And you don't need to give any reasons for that, because you're an EXPERT PROGRAMMER?

Name: Anonymous 2007-05-20 9:53 ID:+dKSd3DT

This topic sucks and is now about FUCK YEAH HTML.

Name: Anonymous 2007-05-20 19:53 ID:i+zyYjG8

>>28
If someone prints out code they're an idiot.
fixed

Name: Anonymous 2007-05-21 4:17 ID:VpKioO77

>>28
Truth

Name: Anonymous 2007-05-21 16:34 ID:5McnT7lf

>>31
Truth. I still laugh at the imbecile rejects for teachers I had at uni. They had to print code to read it! Ha ha ha, that's why they won't get a real job. Let them enjoy their 100 shee(i)ts of code, searching for functions, and lack of colour and parens/braces matching.

Name: Anonymous 2007-05-21 18:32 ID:xiVYZA7m

>>33

I had an instructor that didn't even know what the fuck the java code did (yes, we are forced to take java classes at my goddamn university.  then they dump us into C and expect us to know what the fuck we are doing.), and the code was so simple to manage arrays.  what do i get, in big fucking red letters(in pen of course cause it was printed) "what does this do?"

Name: Anonymous 2007-05-22 0:45 ID:t3jTyUYV

-_-

Name: Anonymous 2011-02-03 1:39

Name: Sgt.Kabu繩꟱kiman�馽 2012-05-29 1:46

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Name: Anonymous 2012-05-29 1:48


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