Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I used to take a similar stance.. Working with code from others, and as part of a group really reinforces why formatting standards can be a great thing. The ability to quickly scan code to find specific components because it's all in the format you've been using, instead of how Joe Schmoe in the cube next to you does it, is a lifesaver.
-
@molaram that reformatting of others code... That's a fantastic way to totally destroy change control tracking. You check in a document going from 2 space indentation to 4, and suddenly it shows every line changing instead of just whatever small update you might have made.
I'm not sure what your work environment is. I've worked in teams in both public and private sectors. In every job I've had, such a thing would have earned me a lecture from my supervisor and the scorn of my co-workers, at a minimum. I've seen such behavior used as part of the justification for terminating someone before. -
neeno31465y@RevThwack There's no need to force people to code in a specific style. Linters exist for a reason.
-
@ItsaMeTuni Linters help you find some of your errors. Style guidelines and enforcement is there to help keep your code maintainable and understandable to others.
If you're working alone and are sure nobody else will ever touch what you write, go ahead and use whatever format you want. If you're working as part of a team and writing something with staying power, stick to formatting and stylistic guidelines. You'll earn fewer enemies and stay employed longer. -
@molaram You think I'm taking about my personal preferences? You think you're going to find companies that are happy to change their business processes, simply because your personal preference is to ignore the coding practices they've adopted?
-
neeno31465y@RevThwack I might've confused linters with code formatters. I never had to use any of them since I never worked in a project with other people. Anyways, you can add code formatters to git pre-commit hooks, ensuring the repository has a specific code style. I imagine there must also be a git hook you can use to add a formatter when you pull commits.
-
@ItsaMeTuni I never argued that you can't, instead was trying to share some of the problems you'll face in the industry by ignoring coding styles and standards. Take it for what you will.
-
neeno31465y@RevThwack I never said I'd ignore standards. I said it's possible to work however you want and before committing an auto-formatter can apply the project's adopted style to your code.
-
@molaram Sounds like you've figured out a product to make... Code formatter plugin for various IDEs that will conform code to company standards prior to check-in.
Good luck with convincing business it's their responsibility to buy such thing, rather than the responsibility of their employees to simply follow guidelines. -
@molaram bloody hell. Probably a good thing in the long run if that's where their priorities are at
Related Rants
-
Keepertje50Stop f*cking calling me minority or part of a underrepresented group. Yeah I noticed I am one of the only wome...
-
DRSDavidSoft7Linus is savage guys! Apparently, he doesn't approve of GNU style coding Source: kernel.org
-
pretzlerich22I've taken my Dev rant over to Linked in. Fuck you recruiters!
I DESPISE languages that enforce a style on you because "muh community code consistency". Like ok, I understand it, but if it gets to a point where I cannot configure *MY* IDE to format *MY* code the way I want I'm gonna get pissed at you. Why does it matter to you if my project uses 2 or 4 spaces? At least give me the option to disable your fucking formatter and use my IDE's default one.
Fuck you Dart.
random
dart
fuck you
style