I’ve rewritten my JS project in Golang and want to share my experience.

Two years ago I’ve built for myself a small server in NodeJS – a SQLite proxy over HTTP. It’s useful when you have datasets that you need to share with consumers over the network. And after a number of refactors and new requirements, now I have finally…


This content originally appeared on DEV Community and was authored by Anton Nesterov

Two years ago I've built for myself a small server in NodeJS - a SQLite proxy over HTTP. It's useful when you have datasets that you need to share with consumers over the network. And after a number of refactors and new requirements, now I have finally decided to rewrite the proxy in Golang for better distribution and memory efficiency. It went so well that I’ve rewritten almost everything in Go even the parts I haven't initially intended to rewrite, and now I believe that 50-70% of what I did before could be better if I used Go along with NodeJS. So, I've prooved to myself that Golang is damn efficient for any backend-heavy web development and almost equal to NodeJS in terms of dev velocity. Even creating a NAPI addons with Go is super easy compared to C++ just because of cross-compilation.

Now let's talk about one Golang shortcoming, and it's not about programming.
For the last year I mostly work as freelance dev. taking gigs and sometimes short contract work. I used Golang ocasionally, mostly when my tasks were related to blockchain, and I've even written couple microservices in Go.

Now I've looked into the job market and I am a bit dissapointed that crypto/finace domain is primary for Golang on the job market :(. And most companies require 3-4 years Go exp (even for gigs), which is hard to get if you don't work for FANG or crypto-finance field.
Golang on the job market seems like RoR for blockchain when I look at my job feeds, kind of "loked in domain language".

If smaller companies and startups also favoured Go, they could've done so many things better, and job market would look differently. I believe that Go can add more value in the products. And yes - one pet project gave me this perspective.

Talking about the pet project.
I present DAL: https://github.com/nesterow/dal

It is in early alpha, because currently only I use it. At the current stage the project can be useful for research, especially for someone who wants to write a native addon for NodeJS or wants to port their libraries to Golang, or to roast me if someone has time :)

The client part is written in TypeScript, the server can be used as standalone binary (best perf) or a nodejs addon.

Peace ✌️


This content originally appeared on DEV Community and was authored by Anton Nesterov


Print Share Comment Cite Upload Translate Updates
APA

Anton Nesterov | Sciencx (2024-08-22T01:17:21+00:00) I’ve rewritten my JS project in Golang and want to share my experience.. Retrieved from https://www.scien.cx/2024/08/22/ive-rewritten-my-js-project-in-golang-and-want-to-share-my-experience/

MLA
" » I’ve rewritten my JS project in Golang and want to share my experience.." Anton Nesterov | Sciencx - Thursday August 22, 2024, https://www.scien.cx/2024/08/22/ive-rewritten-my-js-project-in-golang-and-want-to-share-my-experience/
HARVARD
Anton Nesterov | Sciencx Thursday August 22, 2024 » I’ve rewritten my JS project in Golang and want to share my experience.., viewed ,<https://www.scien.cx/2024/08/22/ive-rewritten-my-js-project-in-golang-and-want-to-share-my-experience/>
VANCOUVER
Anton Nesterov | Sciencx - » I’ve rewritten my JS project in Golang and want to share my experience.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/22/ive-rewritten-my-js-project-in-golang-and-want-to-share-my-experience/
CHICAGO
" » I’ve rewritten my JS project in Golang and want to share my experience.." Anton Nesterov | Sciencx - Accessed . https://www.scien.cx/2024/08/22/ive-rewritten-my-js-project-in-golang-and-want-to-share-my-experience/
IEEE
" » I’ve rewritten my JS project in Golang and want to share my experience.." Anton Nesterov | Sciencx [Online]. Available: https://www.scien.cx/2024/08/22/ive-rewritten-my-js-project-in-golang-and-want-to-share-my-experience/. [Accessed: ]
rf:citation
» I’ve rewritten my JS project in Golang and want to share my experience. | Anton Nesterov | Sciencx | https://www.scien.cx/2024/08/22/ive-rewritten-my-js-project-in-golang-and-want-to-share-my-experience/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.