this post was submitted on 26 Aug 2023
39 points (97.6% liked)

Programming

17373 readers
164 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 [email protected]



founded 1 year ago
MODERATORS
39
NodeJS vs Go (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

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
[–] [email protected] 2 points 1 year ago (1 children)

I mean, I heard that new software engineers are allowed to work on the frontend first before the backend. So if I learnt JS now, I could master it, which would help me in the long run. Am I wrong?

[–] [email protected] 6 points 1 year ago (1 children)

Entirely depends on your skillset and company. That might be true somewhere, but seems strange.

I do recommend you pick up typescript though. It will forcibly teach you some good habits, expectations, and some more base understanding of what you're actually doing.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Yeah, I was thinking of using TS anyways. I saw some video that showed how weird JS handles stuff when you try to add two things and such. I also want to make it a habit to type everything anyways. By the way, do I have to learn some more stuff if I want to use TS or is it just that it forces you to use types?

[–] [email protected] 3 points 1 year ago (1 children)

There's a bit of fiddling with configuration and using npm, but it's not much overhead. There's plenty of tsconfig settings to customize the process for your need, but most the defaults are quite sane.

[–] [email protected] 1 points 1 year ago (1 children)

I see, then it won't be a problem after I learn JS.

[–] [email protected] 1 points 1 year ago

Well, TS is just JS with strong typing and type annotations. It's almost the same language, just adding guard-rails and safety checks that the base language doesn't have.