1. 19
  1.  

  2. 4

    The “language bar” is somewhat buggy. Many examples labelled as C are in fact C++.

    1. 3

      Oh I love this. The “New implementation” interface is just perfect. I used to exclusively use Rosetta Code to learn new languages, but it was an absolute hassle to add new content to Rosetta Code. (it’s non-trivial to make an account, you need to edit the whole page to edit a section, no guidelines or tutorials…)

      1. 3

        Is there a way to add new languages? There’s a couple idioms in k I’d like to add.

        1. 2

          There doesn’t seem to be :|

          Supported languages are Ada, C, Caml, Clojure, Cobol, C++, C#, D, Dart, Elixir, Erlang, Fortran, Go, Haskell, JS, Java, Kotlin, Lisp, Lua, Obj-C, PHP, Pascal, Perl, Prolog, Python, Ruby, Rust, Scala, Scheme, VB

          There are pull requests (https://github.com/Deleplace/programming-idioms/issues/93) but not sure how quick they’re being answered to.

        2. 3

          Dang, this is pretty neat. I wish there was a way to browse by category instead of just “random” or “search”, but that’s a small knock against what’s otherwise a useful take on the “rosetta code”-style compilation.

          1. 3

            There’s a list of all idioms https://www.programming-idioms.org/about#about-block-all-idioms

            No categorization I can find so far.

            1. 2

              Yeah, the UI is not the best. Presentation and discoverability are a bit lacking, but you can create new ones easily https://www.programming-idioms.org/idiom-create