4 ms·
Lol Elm devs are often bragging about their huge line counts. Meanwhile I rewrote an Elm project in Clojurescript and it removed 75% the line count. Large line
by hellofunk 8y ago
Lol Elm devs are often bragging about their huge line counts. Meanwhile I rewrote an Elm project in Clojurescript and it removed 75% the line count. Large line count is such a strange metric.
- G4BB3R 8y agoI know that loc is not a good metric, but there is not a better one. A project with 1kk loc will always be more complex software than a 100k loc, so we can compare. Were you using cljfmt like Elm users use elm-format?
- hellofunk 8y agoThere's not a better metric? I disagree. I think the best metric is "how much does it ultimately cost to write and maintain the software?"
- G4BB3R 8y agoSo Elm could not be better. No runtime exceptions and easy refactor, what else would I need? There is not even comparison to a identical React project.
- vmchale 8y agono runtime exceptions except for infinite loops lol
- hellofunk 8y agoThere is more to consider than runtime exceptions. If it takes one-third or less time to write in Clojurescript, for example, this saves much cost. Even if you add in more runtime debugging, you still save time in writing code, and time saved in the compilation-fix cycle. Then of course, you save all the significant added time required in Elm to do non-trivial things with JavaScript libraries, which is inevitable. One language isn't necessary better, but I do think one can be argued to certainly be less expensive. Give two teams the same project. One team will use Elm and needs to write 20K lines and figure out some complicated JS interop. The other team uses ClojureScript and will need to write 5K lines and not worry about handling JS libraries. Which team costs more money?