Live data from Hacker News

To learn a new language, read its standard library

patshaughnessy.net

1–10 of 243 posts

Re: To learn a new language, read its standard library

#3
post #2

All well and good until you find out half of it is written in C or something like that. I like to go out and find the most starred repos on github or just ask around for a library that people think highly of and read that.

C itself is actually a pretty good example of where this fails as well. Its standard library is usually more macros than code. It's necessary if you are going to ship portable code that deals with every conceivable architecture and endianness and permutation of toolchain from 1976 until now, but it's not how most C code looks.

K&R is a much more meaningful guide than unistd.h.

Re: To learn a new language, read its standard library

#6
Reading the Python stdlib was a brilliant move a peer encouraged me to do. I learned three themes of stuff:

1. A good look at long lasting, durable pure python.

2. A good look at long lasting, durable C implementations of python (dict is the core of Python. Read the source!)

3. A look at a bunch of libraries that basically never get used and a sense of how they compare to popular third party libraries. (Doing this is why I’ll never complain when a language’s stdlib is small. I get it now.)

Re: To learn a new language, read its standard library

#10
I find languages are pretty easy to pick up after the first few. What seems to be the barrier nowadays is frameworks. How do people go about learning a new framework? Obviously most of them have an intro project to follow on with, but they tend to be pretty simplistic, and once that's done, getting to the complicated bits that you actually want to implement seem to be the barrier.
Post reply on HN