38
NodeJS vs Go (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by Asudox@lemmy.world to c/programming@programming.dev

I want to learn another programming language now that I've been using Python for over 2 years now. I am kind of leaning on learning JS so that I can use it for the backend and also for the frontend. But the syntax is kind of weird. I heard Go is pretty good for the backend and also is compiled. What do y'all say? I also welcome other language recommendations.

you are viewing a single comment's thread
view the rest of the comments
[-] addys@lemmy.ninja 18 points 1 year ago

Go has a much cleaner syntax, and is better suited to its specific niche which is (relatively) low-level BE development. If you are attracted to that niche then Go is an excellent option. Also, Go is almost a default for developing for K8S, which might be another plus.

On the other hand, JS is a more general-use language. It has a very loosey-goosey syntax and lots of weird behaviors. It is applicable on both FE and BE but be aware that in each of those, knowing JS is just a first step, since (for example) for FE development you will also need to know at least one of the major frameworks (React, Vue, Angular etc) as well as the page object model and a ton of other stuff.

Bottom line- usually the language is the tool, not the objective. Figure out what you want to develop, then choose the optimal language to do it with.

this post was submitted on 26 Aug 2023
38 points (97.5% liked)

Programming

17314 readers
206 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS