5 ms·
Why are there two spaces instead of four in this Python code, it hurts my soul
by robopsychology 4y ago
Why are there two spaces instead of four in this Python code, it hurts my soul
- anigbrowl 4y agoCost saving measure. This sort of emotionalism is why engineers need to kept out of the C-suite.
- robopsychology 4y agoHow is it a cost saving measure? Or are you being sarcastic? Hard to tell over text!
- anigbrowl 4y agoYes, I'm joking. I also feel hurt by 2 space indents.
- robopsychology 4y ago[flagged]
- SpEd3Y 4y agoNot 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.
- brucethemoose2 4y agoSpace bloat.
- aaa_aaa 4y agoThen there is Go and C#.
- holler 4y agoI guess they haven't read https://peps.python.org/pep-0008/#indentation https://peps.python.org/pep-0008/#indentation "Use 4 spaces per indentation level."
- tayo42 4y agoi think back in the day they copied googles python style guide
- paulddraper 4y agoI assume they copied it from Google. https://www.quora.com/Why-does-Google-use-2-spaces-for-Python-indentation https://www.quora.com/Why-does-Google-use-2-spaces-for-Pytho...
- xdennis 4y agoSeems random. This file has both 2 and 4: https://github.com/twitter/the-algorithm/blob/main/trust_and_safety_models/nsfw/nsfw_text.py https://github.com/twitter/the-algorithm/blob/main/trust_and...