DEV Community

Cover image for Learning Golang - day 1

Learning Golang - day 1

Magda Rosłaniec on May 21, 2022

I just decided to start learning Go again. I was learning it a bit last autumn, but then I had a very rough time in my personal life and also decid...
Collapse
 
lucassperez profile image
Lucas Perez

Nice! 👏 I have also started to look at Go, although very lightly and just for fun. I like static types a lot.

The compile times in Go are very good, and the Tour of Go is a nice starting point, although I wouldn't accumulate resources, because this usually lead to overload and frustration. Like you perfectly put yourself, one resource at a time.

I think my two biggest beginner struggles were knowing how to iterate over a string and how to initialize a map without keys to add them later. 😅

Collapse
 
codewander profile image
Kanishka

I have been learning lightly for a few months...I'm still a little unclear on the value of an array variable when its not initialized, such as var arr [3]int.

Collapse
 
lico profile image
SeongKuk Han

I'm also interested in learning Go, but It's been for a while since I studied because of my work. Thanks for sharing the post :) I'm looking forward to the next article.

Collapse
 
makneta profile image
Magda Rosłaniec

Just started my first dev job so I know what you mean by being busy b/c of work. And I think that on weekdays I will have much less time for learning and writing but want to keep consistent even if it's a half an hour a day.

Collapse
 
lico profile image
SeongKuk Han • Edited

That's a good saying. Even if it's a half an hour a day,
I'll start it from now on.
Thank you for commenting.
I wish luck for your first job :) good coding!

Collapse
 
andrewbaisden profile image
Andrew Baisden

Great article nice to see you writing more now 😁 I hear that Go is very similar to Python I was debating learning Go one day.

Collapse
 
makneta profile image
Magda Rosłaniec

I'm not sure how much Go is similar to Python, I know it too little yet.

Collapse
 
andrewbaisden profile image
Andrew Baisden

Quite similar I believe. I used to know another developer she knew Python and Go and learned them at the same time. She sometimes accidentally wrote Python in Go and vice versa because of the similarities 😂

Thread Thread
 
makneta profile image
Magda Rosłaniec • Edited

For me Python and Javascript are quite similar (not including the dom manipulation). In the beginning I was writing Javascript as if it was Python with curly brackets.
In Go, the thing that's quite different from Python are types. And that you can't write anything without putting it into a function. At least those are my observations so far.

Collapse
 
makneta profile image
Magda Rosłaniec

Thank you.
I'm going slowly through my textbook ;-).
Naming the packages on the top of the file confuses me a bit. But hope to find out how it works in not "main packages", soon.

Collapse
 
adrianosanttos profile image
Adriano Santtos

Congratulations!

Collapse
 
makneta profile image
Magda Rosłaniec

Thank you.

Collapse
 
willypuzzle profile image
Domenico Rizzo

You did a very good job, only one notice: converting variable from a type to another is called "casting" :)

Collapse
 
makneta profile image
Magda Rosłaniec

Thank you.
I'm using a book in Polish to learn Go and then I'm taking notes in English ;-) so sometimes I'm not checking how things are called properly, my mistake.

Collapse
 
willypuzzle profile image
Domenico Rizzo

No mistake, just a step forward in the learning process :)

Thread Thread
 
makneta profile image
Magda Rosłaniec

Sure, there is no learning without mistakes.

Collapse
 
codewander profile image
Kanishka

I guess my confusion is when is an array, slice, or map variable nil, if ever.

Collapse
 
ddanielsantos profile image
Daniel Santos

Very good Magda, I'm learning Go too, so I hope to see your next steps in this language

Collapse
 
asheeshh profile image
ashish

Hope you keep writing, I'll be using your notes to learn go too, thank you so much ❤

Collapse
 
abhinav1217 profile image
Abhinav Kulshreshtha

Great Summary. Keep this up, I am learning go too. 😊️

Collapse
 
willypuzzle profile image
Domenico Rizzo

I suggest you this video, the host speaks very cleary: youtube.com/watch?v=yyUHQIec83I

Collapse
 
makneta profile image
Magda Rosłaniec

It's on my list but I prefer reading first so will stick with the book for a few days and then I will add some other resources.

Collapse
 
booboboston profile image
Bobo Brussels

Good stuff