Hacker News new | past | comments | ask | show | jobs | submit login

Looks interesting. Could you please convert the tabs to 4 spaces though?



FYI, you can do this yourself with GitHub, by changing the URL.

for example: https://github.com/snovvcrash/usbrip/blob/master/setup.py?ts...


Why are you telling a maintainer which code-style to use?


FYI, I have no idea if I use tabs or spacves in my projects, my IDE is configured to use the popular linting/formatting so it autoformats using that,

Honest question, when you hit issues caused by someone else code not using your favorite style of tab vs spaces? Is there an editor/IDE that can't autodetect this and work properly or is there a language that would fail because is hyper sensitive to white space?


Python, which this program is written in, uses indentation for blocks. Mixing spaces and tabs is basically a syntax error.


Which is why PEP-8 the Python code style guide enforces 4 spaces. This maintains consistency throughout the community. Also PyCharm one of the more popular IDEs for Python uses 4 spaces by default.


That's not what PEP-8 is for, it was meant to define the style of the standard libraries. A lot of people in the community voluntarily adopted it for their projects, but that wasn't its purpose.


Right, but this doesn't mean that the author can't use tabs to indent their code.


Use PhPStorm, alt f6




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: