To learn a new language, read its standard library
patshaughnessy.net
To learn a new language, read its standard library
1–10 of 243 posts
Re: To learn a new language, read its standard library
#2All 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.
Re: To learn a new language, read its standard library
#3All 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
#4Ugh Crystal is so beautiful and sorry to make this typical complaint but I wish the compile time was 1/10th of what it is. The dev cycle loop is just not there for me but the language is incredible.
Re: To learn a new language, read its standard library
#5Elixir’s standard library is incredible and so simple and 99% written in Elixir.
Re: To learn a new language, read its standard library
#6Reading 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
#7Until you realize most of the time the code is loaded with Macros, ifdefs, cross-platform conditions(windows,macos,linux...), hacks for different versions of OSes/dependency/whatever, the real meat is hard to spot on, it's easy to get lost in those noises.
Re: To learn a new language, read its standard library
#8What would the JS/TS equivalent?
Re: To learn a new language, read its standard library
#9Definitely true for Golang, learned a ton reading its stdlib (and even found a bug this way)
Re: To learn a new language, read its standard library
#10I 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.