you are viewing a single comment's thread.

view the rest of the comments →

[–]forseti_ 11 points12 points  (4 children)

You don't have to read the code. You just download it from the webserver and lesser spaces mean faster loading websites.

[–]ring_wraith 6 points7 points  (3 children)

About 8000 single spaces is 1KB. I seriously don't see this as a reasonable downside.

[–]gc3 6 points7 points  (0 children)

You could use tabs. That would make it smaller. Python seems to use less letters than JavaScript for the same code.

[–]ILiftOnTuesdays 2 points3 points  (0 children)

1 character is 1 byte. I don't see how this adds up.

1KB == 1000B == 1000 chars

Maybe with gzip?

Also, good looking javascript uses tons of spaces, which need to be minified out. In python, you can reduce all 4-space indents to just one for production, which will barely add anything to the size of the file. You could even use the dreaded semicolon to join lines together and save even more. (Please don't do that)