Hacker News new | ask | show | jobs
by mbesto 4186 days ago
> Number of lines of code can be used as a (very) rough metric for complexity

When the code is a port and represents 1:1 functionally, then line of code is totally irrelevant, except for it's performance to execute (which clearly GoLang has demonstrated in this case to outperform ruby). A better "rough metric" for complexity is the number of functions or as Ruby Flog puts it - ABC metric: Assignments, Branches, Calls.[0]

[0] - http://ruby.sadi.st/Flog.html