|
|
|
Ask HN: Favorite projects for learning a new language?
|
|
3 points
by andrewberls
4517 days ago
|
|
Most of what I do day to day is web applications with Ruby/Rails. I'm looking into picking up a new language or two for fun (so far toyed with Scala, Clojure, and Haskell), and I find I learn the concepts best when I put it all together in an actual project. I'm not so interested in more web stuff or challenge-based things like Project Euler / CodeEval. What are your favorite micro-projects for picking up a new language? |
|
Pick a public JSON API. Retrieve it over HTTP. Parse the JSON into a data structure. Print some interesting part of the data.
This exposes you to HTTP and JSON libraries in a new language, as well as working with data structures. For instance, in Go, the parsing JSON step forces you to write some structs and learn about marshalling.