• 0 Posts
  • 13 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle



  • Just curious, what about spaces made it hard? What language would have been easier? In curly brace languages, 99% of the time, a curly brace is followed by a line break and an indent. Python is similar except it’s typically a colon, line break, then indent.

    What I have learned is: If the code is indented too deeply, it’s a code problem, not the language.

    Torvalds infamously wrote:

    “… if you need more than 3 levels of indentation, you’re screwed anyway, and should fix your program.”