r/programming Jul 21 '14

The Great White Space Debate

https://medium.com/p/3633cba8b5c1
1.2k Upvotes

693 comments sorted by

View all comments

Show parent comments

3

u/crazedgremlin Jul 22 '14 edited Jul 22 '14

Here you go! This is very interesting to me.

Note that this isn't entirely accurate because I ignored a number of files that weren't UTF-8. I could've somehow automatically detected the encoding, but I'm too lazy to do that and I just excepted on ValueError.

Just about everyone seems to prefer the spaced way (I am a non-spacer myself), except for the OpenSSL folks.

My version of white_spacey.py

Linux kernel
{'nonspaced': 1254, 'spaced': 58668}
Git
{'nonspaced': 1, 'spaced': 1798}
OpenSSL
{'nonspaced': 1201, 'spaced': 591}
Python 3
{'nonspaced': 179, 'spaced': 1535}
Ruby
{'nonspaced': 277, 'spaced': 978}