News for hackers. Stuff that matters.
Re:Lans.py: capture usernames, passwords, messages and injec... by smnrchrds on Saturday November 09, 2013 @10:55AM (#6701933)
Why not? It's a convention almost everyone has agreed upon. More than 95% of python code out there uses spaces[1]. The new PEP-8 prefers spaces over tabs. I have configured my text editor to put 4 spaces when I press the tab key and auto-indent with 4 spaces as well. Now, if I want to contribute to a project which uses tabs instead of spaces or use such a project in my own code, I have to change my text editor preferences every time I open those files or fork the project and convert tabs to spaces.

Tabs may have some advantages over spaces, but uniformity is far more important.

[1] http://sideeffect.kr/popularconvention/#python

There are no comments on this comment yet.