MHN

Ask HN: What do you code when learning a new language/framework?

178 points by livinglist·1600 days ago·Show in HN

What kinda project do u usually code when learning a new language or framework? And what kinda dev are u? (backend, web, mobile, devOps, sr, etc)

Add a comment on Hacker News →
1 of 163 commentsUpdating…
  1. My go-to projects have varied over time:

    1. An implementation of Fisher's exact test for 2x2 tables. This adapts the algorithm from R's fisher.test() function, which was implemented with function closures for optimisation, which does not always map well to other languages.
    2. A foreign function interface to the Rmath library. I have now done this for Standard ML (MLton, Poly/ML, Moscow ML, MLkit, SML/NJ, SML# and Manticore), OCaml, Ur/Web, Mercury and MonetDB. Code generation sometimes uses cpp, m4 or the language's tree and string facilities.
    3. Discrete event simulation using message passing with an application to cost-effectiveness analysis. Someday, I'll get this published.