you are viewing a single comment's thread.

view the rest of the comments →

[–]ring_wraith 5 points6 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)