this post was submitted on 29 Feb 2024
367 points (96.0% liked)

Programmer Humor

18418 readers
895 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ptz@dubvee.org 19 points 4 months ago* (last edited 4 months ago) (2 children)

So....basically a prettier. I've never seen them improve the readability of my code. If I want pretty code, I just write pretty code :shrug:

All the prettiers do is just 'eff up my deliberate indentations and break the editor's ability to collapse code sections.

[–] lazynooblet@lazysoci.al 29 points 4 months ago

Sounds like you're using a shittier prettier

[–] BombOmOm@lemmy.world 2 points 4 months ago* (last edited 4 months ago) (1 children)

Same. There is a logic to all code choices. Even basic things like the placement of empty lines to group code into 'idea blocks' massively helps with readability. This idea block touches x, and this next idea block touches y.

A tool can't perform perform even basic logic like that.

[–] kogasa@programming.dev 9 points 4 months ago

If you have a lot of semantic breakpoints (like the end of a concept) that don't line up with syntactic breakpoints (like the end of a method or expression body) your code probably needs to be refactored. If you don't, then automatic code formatting is probably all you need.