this post was submitted on 18 Jul 2025
9 points (100.0% liked)

Ask

623 readers
57 users here now

Rules

  1. Be nice
  2. Posts must be legitimate questions (no rage bait or sea lioning)
  3. No spam
  4. NSFW allowed if tagged
  5. No politics
  6. For support questions, please go to !newtolemmy@lemmy.ca

Icon by Hilmy Abiyyu A.

founded 4 months ago
MODERATORS
 

Original question by @cy_narrator@discuss.tchncs.de

Only technology itself. Do not include any human being associated with that technology

you are viewing a single comment's thread
view the rest of the comments
[–] cloudless@piefed.social 4 points 2 weeks ago (2 children)

In programming. New line before the opening bracket? Or after the opening bracket?

I prefer this:

function sayHello()
{
    console.log("Hello!");
}
[–] neidu3@sh.itjust.works 3 points 2 weeks ago* (last edited 2 weeks ago)

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.

[–] DmMacniel@feddit.org 3 points 2 weeks ago

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.