• 0 Posts
  • 42 Comments
Joined 2 years 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
    8 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.”












  • React is fine too with the right tooling. Next.js, create-t3-app, vite etc. are all nice. I think svelte has fewer unfamiliar mental models and hurdles to initial development though. I tried vue years ago and found react made far more sense to me for some reason.