4 ms·
Sounds about right! Here's another: https://benhoyt.com/writings/learning-go/ https://benhoyt.com/writings/learning-go/ ... I ported a medium-sized web backend
by benhoyt 7y ago
Sounds about right! Here's another: https://benhoyt.com/writings/learning-go/ https://benhoyt.com/writings/learning-go/ ... I ported a medium-sized web backend in Python to Go.
"Due to Go’s static typing and because I was using fewer libraries, I expected that the code would end up being more than twice as many lines of code. However, it was only 1900 lines of Go (about 50% more than the 1300 lines of Python)."
"The porting effort was very smooth, and a lot of the business logic was almost mechanical, line-for-line porting of the original Python. I was surprised how well many Python concepts translate to Go, right down to the things[:20] slice notation."