this post was submitted on 24 Jun 2026
342 points (99.4% liked)

Technology

85745 readers
5168 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
 

Archive link: https://archive.ph/NaK7K

you are viewing a single comment's thread
view the rest of the comments
[–] Zarobi@aussie.zone 14 points 2 days ago (3 children)

Most of my career I was allowed to write code how I wanted. I made it beautiful and nice to read. It was genuinely fun to find the best way to implement each feature.

My final job, I was forced to add semicolons on new lines for each if else statement, even for early returns, remove hyphens from my comments because they were "improper grammar", put a useless giant copy pasted comment at the start of each file so you can't even see any code without scrolling, one separate file for each class even if it's an internal helper class used nowhere else, and use interfaces and MVVM for literally everything, even when it was severely over-engineering (or should I say overengineering). It just felt soul crushing to make this ugly ass code that took forever to write, just because the style guide said so.

Then A.I. happened and I quit being a software engineer completely. Telling an A.I. to do my work for me is just depressing. What's even the point anymore? I still code for fun but I'm done with the industry.

[–] vinnymac@lemmy.world 6 points 2 days ago (2 children)

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.

[–] Aceticon@lemmy.dbzer0.com 3 points 1 day ago* (last edited 1 day ago) (2 children)

And then somebody changes the auto-formatter settings and all of a sudden every single file changed and committe appears as having most lines changes and you loose the ability find the real code changes between a version before that and the current version.

Guess how I found this out ...

Standardizing code format via that path only works well if you start it really early in the project and never change it after that.

(Also, it doesn't solve the problem of different software design styles)

[–] vinnymac@lemmy.world 5 points 1 day ago* (last edited 1 day ago)

I hear you, but these are solve-able human problems, not code problems:

Manager: Jose revert your commit, thanks. Jose: okay, it’s been reverted, I won’t do that again, thanks for explaining to me why exactly what I did was the wrong thing to do.

I’ve had this exact conversation about this topic at least a half dozen times over the last decade.

When it comes to legacy code, almost all auto formatting tools I’ve used allow you to ignore whole directories and files, which can be very handy for legacy areas of the codebase not yet ready for this transition.

As for scenarios where large rewrites are necessary, it’s best to separate from any actual work, so the blast radius is focused, and that commit can be marked properly using .git-blame-ignore-revs which completes fixes the history issues that are common amongst those who don’t know what they are doing.

Definitely a painful process it can be, but it’s better to fight this battle than it is to try and get 1,000 humans to agree on something as vague as “style”

[–] jj4211@lemmy.world 3 points 1 day ago

Ah yes, some random intern suddenly has 'credit' for almost all the codebase because they ran a linter with different settings than previous linter settings..

[–] Zarobi@aussie.zone 6 points 2 days 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

[–] mereo@piefed.ca 7 points 2 days ago (1 children)

If you don't mind me asking, to which career did you switch to?

[–] Zarobi@aussie.zone 10 points 2 days ago* (last edited 2 days ago)

Unemployed / disability lol. But if I could still move around I'd probably get into something outdoorsy. Park ranger or the like. Keeping a candle lit though, in case one day I miraculously recover or medical science advances or something.

Edit: actually it's the reason I did software engineering in the first place. But actually this industry is now hostile to people with disability. Can I work from home because leaving the house is hard? No, everyone must be in office chained to your desk 9/9/6. Can I be neurodivergent? No, everyone must have constant in person meetings and work in open plan offices.

[–] turkalino@sh.itjust.works 3 points 2 days ago (1 children)

I wish I could work somewhere like your first paragraph. My career has been your second paragraph, probably because I’ve only worked on medical devices and we gotta have higher standards than a lot of developers. It also got taken a bit too much to the extreme tho

[–] Zarobi@aussie.zone 4 points 2 days ago

Believe it or not my first paragraph was working on medical software lol. It was good though, I liked the feeling of helping doctors help people, making the world a better place.