Re:Twitter open sourced the recommendation engine
by robopsychology on Friday March 31, 2023 @03:27PM
(#35392170)
Why are there two spaces instead of four in this Python code, it hurts my soul
[ Parent
| on HN ]
Re:Twitter open sourced the recommendation engine
by anigbrowl on Friday March 31, 2023 @03:41PM
(#35392376)
* * *
Re:Twitter open sourced the recommendation engine
by robopsychology on Friday March 31, 2023 @04:18PM
(#35392985)
How is it a cost saving measure? Or are you being sarcastic? Hard to tell over text!
Re:Twitter open sourced the recommendation engine
by anigbrowl on Friday March 31, 2023 @04:21PM
(#35393052)
Yes, I'm joking. I also feel hurt by 2 space indents.
Re:Twitter open sourced the recommendation engine
by robopsychology on Friday March 31, 2023 @04:29PM
(#35393161)
Hahaha I was sort of hoping you were an MBA who truly believed hitting 2 spaces instead of 4 spaces would save some sort of money at scale!
Re:Twitter open sourced the recommendation engine
by SpEd3Y on Friday March 31, 2023 @04:20PM
(#35393035)
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.
Re:Twitter open sourced the recommendation engine
by brucethemoose2 on Friday March 31, 2023 @04:23PM
(#35393072)
Space bloat.
Re:Twitter open sourced the recommendation engine
by aaa_aaa on Saturday April 01, 2023 @04:53AM
(#35398558)
Then there is Go and C#.
Re:Twitter open sourced the recommendation engine
by holler on Friday March 31, 2023 @03:40PM
(#35392364)
I guess they haven't read https://peps.python.org/pep-0008/#indentation
"Use 4 spaces per indentation level."
Re:Twitter open sourced the recommendation engine
by tayo42 on Friday March 31, 2023 @04:37PM
(#35393275)
i think back in the day they copied googles python style guide
Re:Twitter open sourced the recommendation engine
by paulddraper on Friday March 31, 2023 @05:23PM
(#35393859)
I assume they copied it from Google.
https://www.quora.com/Why-does-Google-use-2-spaces-for-Pytho...
Re:Twitter open sourced the recommendation engine
by xdennis on Saturday April 01, 2023 @05:22AM
(#35398677)
Seems random. This file has both 2 and 4: https://github.com/twitter/the-algorithm/blob/main/trust_and...