3 ms·
You are 100% right but I am not writing all the code. My job is mostly maintaining other developers' code. And turns out, languages can have great effect on mak
by itwy 7y ago
You are 100% right but I am not writing all the code. My job is mostly maintaining other developers' code. And turns out, languages can have great effect on making not-so-good developer write reasonably good code (Go, for example).
- vemv 7y agoLikewise my Clojure jobs tend to involve reviewing multiple devs' code. It's certainly possible to converge towards some shared notion of what constitutes maintainable code. We additionally have an internal styleguide plus some formatter-related tooling.
- kccqzy 7y agoOne thing I've come to realize is that it is not enough to write code that's merely compilable. That's a low bar. A team needs a consistent style and that has to be enforced automatically. Automatic formatting is a good first step but that's also not enough. Say you don't want too many nested s-expressions. Then write a tool to reject code that has too many of them. Run the tool together with the compiler. Prevent merging if the tool complains unless a special exception is noted. Tooling is important.