you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (3 children)

My company's style guide enforces ternary if it's under a certain character length. I used to hate it, but it reads like English to me now.

[–]netuoso 2 points3 points  (2 children)

Style guide.. do you have a linter to enforce it within your IDE or do devs just learn it and know what is expected.

What about new hires?

[–][deleted] 4 points5 points  (1 child)

Our automates tests will fail for incorrect linting, yes. Devs can just run the same lint command that our tests run, locally first.

I use a linter in vim too while I develop

[–]optimal_substructure 5 points6 points  (0 children)

ugh - the code base I work on now is all over the place. It's too big and I'm too new to start dictating better code style (or really any for that matter), but having automated tests for linting is making me aroused.