#how to learn a programming language

19 messages · Page 1 of 1 (latest)

median minnow
#

i wanted to ask a pretty general question, how do you learn a language? I was making a go project to learn it recently when I realized that I wasn't actually learning the language, i was just hacking together a solution from google based on my previous knowledge of python. It feels like "oh i would use a class here in python, so how do you define a class in go" which doesn't actually teach me anything

so how exactly do i get past this and actually learn the lang?

worthy galleon
#

there's no right or wrong way to "learn" something
here by googling, you studied what you found, and remembers it
therefore you are learning

unique sierra
#

That is teaching you something, learning builds off things you already know

median minnow
#

my only issue is that it just feels kind of "off setting" doing this. Like I am pretty happy that I am able to write "pythonic code" and or know best practices / multiple ways of achieving one problem

When I take the hacky approach, not just with golang but other languages, I just go by what google and my logic tells me, i dont think to myself "but is this the best way of doing this"

unique sierra
#

That’s just a matter of time and more learning, you never start a language knowing all the best practices

median minnow
#

so should I just continue what I was doing? or actually take the time and sit through a "learn go as a beginner" tutorial?

worthy galleon
#

you could go thru go's tour

#

and then proceed to pick up what you need

unique sierra
#

go tour, and then reading effective go and such

median minnow
#

got it, I never did those and kinda just dived into making small projects

#

probably could be the reason for my feeling

#

thanks!

worthy galleon
#

because IMO learning stuff that actually useful to you in the current moment is the most useful way to learn
you arent just remembering list of stuff to remember for you dont even have a clear usecase yet for

#

just go with the basics tour then effective go(like recommended)
after that you basically have a solid foundation to venture where you want to and pick up stuff that's useful for your domain

median minnow
#

ahh that makes more sense, its best to learn what i need than everything that may include what i don't need

worthy galleon
#

the go tour should touch on most of the major language concepts so you at least know what's "available" to use
like knowing what's in the toolbox so you know what you need to learn more on, for what cases

median minnow
#

yeah like have a general knowledge about stuff