I’ve been working with a Javascript (+ TypeScript) + Java + SQL stack for the last 10 years.

For 2024 I’d like to learn a new programming language, just for fun. I don’t have any particular goals in mind, I just want to learn something new. If I can use it later professionally that’d be cool, but if not that’s okay too.

Requirements:

  • Runs on linux
  • Not interested in languages created by Google or Apple
  • No “joke languages”, please

Thank you very much!

EDIT: I ended up ordering the paperback version of the Rust book. Maybe one day I’ll contribute to the Lemmy code base or something :P Thank you all for the replies!!!

  • Andy@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    10 months ago

    I may be expressing it poorly and inaccurately, but what I mean is that in Nim you can re-order arguments and functions to start with some data followed by a series of transformations. The following two lines are equivalent:

    parse_int(read_line(stdin))
    stdin.read_line().parse_int()
    

    Roc offers a similar flow with their |> operator. Here’s a snippet from one of my Advent of Code 2022 solutions:

    partOne =
        "input.txt"
        |> getData
        |> Task.await \data ->
            data
            |> getRangePairs
            |> List.keepIf pairHasStrictSubset
            |> List.len
            |> Num.toStr
            |> Stdout.line