Ask HN: What is the coding exercise you use to explore a new language?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • odin_rosettacode

    Odin examples for Rosetta Code

  • If the language isn't well represented yet on rosettacode.org I like to learn about a language by implementing rosettacode examples in it: https://github.com/eterps/odin_rosettacode

  • Rustlings

    :crab: Small exercises to get you used to reading and writing Rust code!

  • I usually pick one of the ideas on my low-stakes "side quest" list that I maintain. Something that I won't mind if it never gets finished, or if I have to trash it and start over because of what I learned while building it the first time, now that I know the language better.

    I'm picking up Rust, and I really like the "rustlings" project that lets you exercise various parts of the language locally, instead of in a browser, so I can use the tools that I like. https://github.com/rust-lang/rustlings

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • johnston

    Rust utilities for working with Just Intonation tuning systems

  • - how easy is it to write/run tests

    Here’s one version in Rust, which links to clojure, cl versions. Want to try it with Julia next due to the built-in support for rationals.

    https://github.com/jcpst/johnston

    https://en.m.wikipedia.org/wiki/Lattice_(music)

  • ziglings

    Learn the Zig programming language by fixing tiny broken programs.

  • +1 for rustlings, which also inspired "ziglings" [1]. Both of these were great resources for quickly & easily learning the basics of their respective languages.

    [1] https://github.com/ratfactor/ziglings

  • pbrt-v3

    Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.

  • Taipei-Torrent

    A(nother) Bittorrent client written in the go programming language

  • I typically only use the spec (https://www.bittorrent.org/beps/bep_0003.html) because it's simple enough, but in case of doubt I guess a third party resource is good. I found https://blog.jse.li/posts/torrent/ to be quite informative about it.

    I used to work on a fork of https://github.com/jackpal/Taipei-Torrent with custom features, I found its code to be easy enough to understand

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts