(no title)
trustingtrust | 2 years ago
Is there anyone in the same boat and are there ideas how I can make myself get good with at least one of these trending languages ?
trustingtrust | 2 years ago
Is there anyone in the same boat and are there ideas how I can make myself get good with at least one of these trending languages ?
preommr|2 years ago
Writing practical code is harder if you're not used to it because it enforces discipline that a lot of coders in other languages don't care about like the mutability of a variable. For me it just clicked because that's something I always struggled with in other languages and it frustrated me that I wouldn't know how a variable was supposed to be used. The fact that in rust that concept is built into the language makes me excited. If someone doesn't care about that kind of thing then I can see it being very frustrating.
With Golang, I would strongly recommend ignoring all advice. People kept saying it's easy to understand, that it's like python, or that it's like a better C. Forget all that, try to approach it from the ground up as it's own separate thing, dive into what interfaces, slices, etc. actually are. Then write a bunch of practical go code like a webserver, then a lot of go idioms become a lot more obvious. I really feel like there were some lanuage design decisions made where one thing exists because of another feature, so writing some code makes those links obvious as opposed to learning each feature independently.
dewey|2 years ago
When doing Ruby after only using Go for years it was (and still is) very tricky for me to deal with error handling and figuring out what kind of object I'm dealing with.
SkiFire13|2 years ago
If your issue is that the syntax is too complex then you've got a problem since semantics are usually way more complex to grasp than syntax.
Yoric|2 years ago
denysvitali|2 years ago
Rust's learning curve is waaay steeper than that
imjonse|2 years ago
pserwylo|2 years ago
The linter/autocompletion/auto-fix/refactoring/etc made it much simpler to a avoid having to rote-learn the syntax for functions, lambdas, structs, etc. To go with that, the error handling becomes much easier to learn because the editor is able to tell you when you've got the wrong number of return values / wrong type of values.
Yes, the compiler does all of this, but the way it happens in real time using the same keybindings/UI/UX that I use for my day job makes it all that much easier.
mplewis|2 years ago
Try the interactive Go Tour, and review the Learn X in Y Minutes page for Go to get familiar with the new features. Then try building a fun toy project in it. Go makes it easy to build web servers, so maybe a REST service is a place you could start.
codegeek|2 years ago
mft_|2 years ago