3 ms·
They just disagree without explaining why. Anyways, I sometimes have typos in my Clojure code, but once I follow through with your mental model and just reprodu
by StreamBright 8y ago
They just disagree without explaining why. Anyways, I sometimes have typos in my Clojure code, but once I follow through with your mental model and just reproduce the problem in REPL it is easy to find these sort of bugs.
- kamaal 8y agoI'm not sure, but if people have problems, as bad as things like hiring programmers who struggle with indenting code, making typos in variable names, write functions hundreds of lines long, can't modularize code, write 3 nested for loops, or write nested if's where '&&' suffices. Then you are having far bigger problems related to project management, hiring and overall direction in which you are running your team/company. Clojure as a tool doesn't aim to fix these kind of problems. And it can be argued no tool will fix these problems.
- tome 8y ago> if people have problems, as bad as things like hiring programmers who struggle with indenting code, making typos in variable names Those are the kind of things that the computer is best suited to. It's better if the programmer's brain is left to other, more challenging tasks.
- kamaal 8y agoOne wonders what kind of challenging tasks a programmer who can't even indent code, can solve. By the way indenting code happens to be the most basic of code review checks.
- tome 8y agoWhy waste human time on what can be done by a machine?
- cmoscoso 8y agoIn my experience, a compiler would be wasting my time interrupting me with errors that are easily catch later, playing with the clojure REPL.
- 200px 8y agoCode indentation has been automated away since like 10 years or ago or maybe even more. Vim, Emacs, Atom, Sublime Text, Visual Studio, Eclipse, IntelliJ, NetBeans can all auto-indent code for you. Combined with linters they can also automate stylistic checks and coding convention. I don't know anyone who indents code themselves. The editor/IDE does it for them. Indenting code is certainly not a code review check. No sane workplace should waste a senior developer's precious time commenting about indentation problems during code reviews. It is a tooling check that is part of CI/CD.