Hacker News new | ask | show | jobs
by yomism 3646 days ago
I have used it since 2 years ago or so to implement JSON REST APIs and some small admin pages for app backends. I compare with Python which I have also used for this.

Cons:

- More verbose than Python (returning errors and static typing make it not as succint as Python)

Pros:

- Static typing without being too ceremonius (compared to Python it's nice to have some errors catch by the type compiler that would popup in runtime. Refactoring also is nicer with a static typing safenet).

- Easy deployment (rsync the binary to the server and of you go, no more Pip and dynamic libraries bullshit)

- Low memory usage (nice to have the production backend running and see that it uses 15MB of mem where in Python it would be like 10 times more and with worse concurrence)

- Performance (somewhat minor plus for me because the bottleneck is almost always on the database)