3 ms·
I agree with your intentions; however, when comparing two languages, you need some quantifiable basis for comparison. "Better fit" is very ambiguous and hard to
by gengstrand 11y ago
I agree with your intentions; however, when comparing two languages, you need some quantifiable basis for comparison. "Better fit" is very ambiguous and hard to measure whereas code size is very specific and repeatable. I believe I used something like this.
wc `find ~/git/clojure-news-feed/server/feed/src -type f -name '.clj' -print | xargs`
wc `find ~/git/clojure-news-feed/server/feed/test -type f -name '.clj' -print | xargs`
wc `find ~/git/clojure-news-feed/server/feed2/src -type f -name '*.scala' -print | xargs`
I used code size because you hear about that alot but I agree that it is a very imperfect basis. Less code doesn't necessarily mean fewer bugs. When I coded these two services, I wasn't thinking of code size at all.