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

help-circle














  • naught@sh.itjust.workstoProgrammer Humor@lemmy.ml1 hour in Java
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    edit-2
    3 months ago

    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.”