Originally published at deepu.tech.
If you are a JavaScript developer thinking about learning another programming language, then Golang is a great...
For further actions, you may consider blocking this person and/or reporting abuse
What does it do?
the variable is scoped to the
if
statement. Thus, it is much more readable. might be that thegetVal()
function would be like this.compare to javascript
in golang,
after
if
block, variableval
continues existing? Or it just exists in theif
block?val
is no longer accessible after theif
statement. the variable is scoped to theif
blockThanks
Sorry, I should have explained it better. I'll update the post
Awesome article, the only thing I feel like is missing the reason why a JavaScript developer should learn GoLang over other languages. 🤔
A good reason for me, to port a backend Nodejs to a single Go binary, I can run without any dependencies or installation e.g. virtual machine/runtime, this help to reduce security vulnerabilities and improve reliability.
Well, IMO there is no strong reasons to specifically learn Go except that it is easier to start with. But IMO JS is not a perfect language and hence JS developers would greatly benefit by learning a few other languages which will help to make them more pragmatic. It helped me for sure.
Golang has a massive number of benefits over many other languages. However, "a JavaScript developer" is too vague a concept to list any specific benefits to them.
Some significant benefits:
GOOS
andGOARCH
variables and get the build results easilyI've learned a bit of Go and I agree it is a clear straight forward language, which makes it easy to learn, very similar to Python in those regards.
When and what will part 2 be about, released?
I mentioned what is covered in part 2 at the end of this post. I'll still need to finish up a few topics there but you can expect it start of next week
Its published dev.to/deepu105/golang-for-javascr...
go Go!!
Part 2 is published
Golang for JavaScript developers - Part 2
Deepu K Sasidharan ・ Dec 12 '19 ・ 8 min read
NICE
I'm JS developer and learning Golang.
Your articles (part1 and part2) help me a lot to understand how to golang works :) Thank you.