this post was submitted on 18 Jul 2025
9 points (100.0% liked)
Ask
623 readers
57 users here now
Rules
- Be nice
- Posts must be legitimate questions (no rage bait or sea lioning)
- No spam
- NSFW allowed if tagged
- No politics
- For support questions, please go to !newtolemmy@lemmy.ca
founded 4 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
In programming. New line before the opening bracket? Or after the opening bracket?
I prefer this:
Same. Makes it easier to comment out a conditional and use something else when debugging.
Plus it's a lot easier to visually match braces.
depends on the language recommendation and the project. Have it as a auto-on-save mechanism and you don't even have to think about that.