|
|
|
|
|
by 8bithero
2663 days ago
|
|
My current works codebase.
I've never seemed to like other peoples code. Not even my own after 1 month
But this code is very good. I would attribute it to the strong set of rules and design patterns everyone follows. All code/services are broken up into `unit` which all follow the same pattern, of how it's called, how the code is arranged etc. This means there is no ambiguity for any new starters trying to contribute to the codebase. In addition to that our linter doesn't allow you to push code if it detects any errors. There are a few other elements, involved too, but I think the most important thing is keeping a standard of where each bit of code should live, how it should be called, and ensuring everyone uses the same conventions (i.e. single quotes instead of double, all this small things add up) |
|
I just added a couple of linters to a new project and am looking forward to having the computer flag any obvious errors before allowing a git commit.