207
submitted 16 hours ago* (last edited 16 hours ago) by fubarx@lemmy.world to c/technology@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] vinnymac@lemmy.world 1 points 2 hours ago

These days it’s very common to write whatever code you want, and a formatter automatically rewrites it to conform to the projects rules during precommit.

Which is great because it allows you to focus on intent instead of format, and completely avoids any team disagreements or change rejections for trivial bullshit.

[-] Zarobi@aussie.zone 1 points 1 hour ago

My favourite part is when your style or the auto formatter changes over time and you have to decide between:

  • running the auto formatter on 200,000 12 year old code files
  • doing them one by one
  • formatting them when you have to change that file
  • or ignoring all the warnings forever (it's this one, this is what you do)

Plus it doesn't fix the problem of auto formatters writing ugly code. You can't easily tell the auto formatter that early returns can be bracketless for brevity, but nothing else can be. Unless you add a comment like \\ ignore-rule-2753674 which makes me want to throw up

this post was submitted on 24 Jun 2026
207 points (100.0% liked)

Technology

85699 readers
3622 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 3 years ago
MODERATORS