Re:Comparing a web service written in Python and Go [pdf]
by rbanffy on Monday October 19, 2015 @08:41AM
(#10412467)
It seems it's looking at everything outside the core libraries. Go has a built-in templating engine. That alone may explain the LoC difference.
[ Parent
| on HN ]
Re:Comparing a web service written in Python and Go [pdf]
by fauigerzigerk on Monday October 19, 2015 @08:57AM
(#10412540)
It has to be something like that, because no two languages on this planet differ that much in code size without counting library stuff.
Re:Comparing a web service written in Python and Go [pdf]
by nolok on Monday October 19, 2015 @09:14AM
(#10412646)
Sorry to be pedantic, but I'm sure a Brainfuck (or other similar languages) version would differ at least by that much
Re:Comparing a web service written in Python and Go [pdf]
by rbanffy on Monday October 19, 2015 @12:10PM
(#10413782)
6:1 seems to be in the Java to Python range, specially if you do a lot of getters and setters.
Re:Comparing a web service written in Python and Go [pdf]
by fauigerzigerk on Monday October 19, 2015 @12:50PM
(#10414071)
That's a design choice, but even if you always use getters and setters in Java and never in Python, the program would have to consist exclusively of getters and setters to get you to 2:1 (or 3:1 if you count closing brace lines).
What makes Java code look bloated is a culture of overdesign, not so much the language itself.