News for hackers. Stuff that matters.
Re:Learning a new language, or how I gained familiarity with Go by thejammahimself on Wednesday August 17, 2022 @09:58AM (#32496473)
I feel like a significant part of learning a new language is also learning the standard library alongside the new syntax. Especially because these can be quite different between different languages.
Re:Learning a new language, or how I gained familiarity with Go by Groxx on Wednesday August 17, 2022 @01:33PM (#32499329)
Yeah. Particularly after having learned 2 or 3 languages, learning the N+1th language is often the work of like an hour or three.

Learning the standard library, and the patterns it has encouraged in the community, takes years and is a moving target. Even a basic (accurate) "feel" for things generally takes weeks, regardless of how "simple" the language is. You might be able to produce code prior to that, but being able to predict where something should be, or how to find it, takes time.

Re:Learning a new language, or how I gained familiarity with Go by nerdponx on Wednesday August 17, 2022 @12:19PM (#32498313)
Not just the standard library, but also its idioms and the tools that people commonly use to work with the language (compiler, build tool, etc).
Re:Learning a new language, or how I gained familiarity with Go by mxuribe on Wednesday August 17, 2022 @11:16AM (#32497501)
> I feel like a significant part of learning a new language is also learning the standard library alongside the new syntax...

OMG, you are so right! I feel the same. Knowing what the standard libraries bring (or don't bring) for each language that one learsn is immensely helpful. Sometimes this helps me decide which language to use for particular use-case/project, or sometimes it helps me better understand what the level of effort will be for a project if i use langugae X vs language Y, and on and on, etc. I feel like a tour of each language's standard libraries is a must when learning a new language; or at least a cusrosry review of the most important and/.or most often used functions, etc. of said standard libs.

Re:Learning a new language, or how I gained familiarity with Go by kubb on Wednesday August 17, 2022 @10:07AM (#32496582)
What do you think about rosetta code, et al? For me they reduce the standard library issue quite a bit, combined with googling "how to do x in y".