this post was submitted on 22 Nov 2025
651 points (98.7% liked)
Programmer Humor
27690 readers
506 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It's nice when a codebase has sane formatter conventions. I can't say that my workplace does, tho…
How is having
argumentsandthisan issue? If one doesn't need them, then it can be just left unused. I really don't get this argument. It makes everything visually a variable. I see no benefit to this convention and actively despise it.I've worked at several places that didn't have formatters when I started. they did by the time I left. you can incrementally adopt them and if it's automated most people at worst don't care. advocate for things you want
reassignment and hoisting are the significant ones. behavior around
thisdoes just seem more intuitive than otherwise when it comes up, so I think telling especially new devs to use const arrow fn everywhere but classes is a reasonable rulehate to break it to you but it behaves like a variable either way.
functionjust behaves closer to avarvariable.constfns are less like variables since no assignment. intellisense/devtools all show them just fine. it really is just a minor aesthetic difference on the definitionWe use formatters, I just disagree with our current conventions (nitpicky, I know).
To me it's about readability and declaring everything as
constgoes against that.What benefits does it have? Using
thisin arrow functions is still valid it's just that they will use parent scope to resolve it. You saying it doesn't havethisorargumentsdoesn't convey any benefits (nor real drawbacks) to me. Hence the convention feels useless at best.