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

Why are there two spaces instead of four in this Python code, it hurts my soul



Cost saving measure. This sort of emotionalism is why engineers need to kept out of the C-suite.


How is it a cost saving measure? Or are you being sarcastic? Hard to tell over text!


Yes, I'm joking. I also feel hurt by 2 space indents.


Not sure if you're being sarcastic, but if you're serious, I'm pretty sure the OP is talking metaphorically. It's just a slight annoyance he's not "emotional" about it.

I also fail to see how someone who is annoyed by code that doesn't follow well established standards is somehow not a good fit in the C-suite.


Space bloat.


Then there is Go and C#.


I guess they haven't read https://peps.python.org/pep-0008/#indentation

"Use 4 spaces per indentation level."


Seems random. This file has both 2 and 4: https://github.com/twitter/the-algorithm/blob/main/trust_and...



i think back in the day they copied googles python style guide




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: