4 ms·
I found that I already do all of these as a result of reading through a lot of the Go standard library when I was learning it. One of the best ways to really le
by mratzloff 12y ago
I found that I already do all of these as a result of reading through a lot of the Go standard library when I was learning it. One of the best ways to really learn a language is to read the standard library (the parts implemented in that language, anyway). That way you get a sense of the idioms used, but also understand the sometimes subtle trade-offs of common functions.
- steveklabnik 12y agoThis can be both good and bad. Two examples: The Rust standard library has/had lots of awkward bits, from when certain language features didn't yet exist, or before there was a convergence on how to accomplish something idiomatically. The Ruby standard library has tons of Ruby code in it that's 20 years old, that nobody has touched for various reasons. I certainly wouldn't write Ruby in the same way.
- mratzloff 12y agoYeah. When I learned Ruby I read the Rails code base, which comes with its own set of issues, but which was more modern and was a better representation of the current state of Ruby.