Threads for KajMagnus

    1. 2

      Until they’ve released Scala 3, it was Scala 2, but the split of the ecosystem convinced be to stay away from it. Now it’s Kotlin for some things, and Rust for other things. Lately I’m leaning towards only Rust now. The main issue with Kotlin is that its canonical build system (Gradle) is too complicated, and feels like loose strings attached to each other with a glue. I’m trying to learn it for several years and I think its design is simply incompatible to how I think about things, because I constantly need to open up docs to do some basic stuff. And Gradle docs are horrible.

      It’s a pity, because JVM has lots of really useful things out of the box; a fast and solid/stable GUI framework (Swing), always working debugging experience (also on remote servers with different architecture), it’s the ultimate cross platform programming environment (compile on x64, run on aarch64).

      1. 1

        You mean “until they released Scala 3”? (Not “until they have …” — they’re at v3.4 already https://github.com/scala/scala3/releases/tag/3.4.0)

        Yes Scala is great I think :- ) But recently, when I was creating a small project, I was unsure what web framework to use, nowadays, with Scala, and in the end I went with Deno & Typescript instead. (I was never worried about any v2–v3 split though. v3 looks lovely I think :- ))

        Any web framework you like, together with Scala? (Swing, does that work?) What Rust web framework do you use if I can ask?

        1. 1

          Sorry, what I meant was: as long as there was only Scala 2, I used it. But when they released Scala 3, I stopped using it.

          I’m not really a web person, so I can’t recommend anything in this field, you probably know more about the web frameworks for these languages than me. My hobby projects are desktop and terminal tools (CLI). I had a web framework phase a few years ago, used Play Framework with Scala, but somehow my daily routines have developed in a way that is in contrary to the whole “web application” trend. I prefer stability, reliability and backward compatibility, and I have a feeling that today’s web is in direct opposition to that.

          For web frameworks, this benchmark seems pretty thorough: https://www.techempower.com/benchmarks/#hw=ph&test=query&section=data-r22

          Swing for Java/Kotlin/Scala is for GUI (desktop), not web, so it doesn’t apply here.

          1. 1

            Swing — Oh I thought you meant Spring. I’ve been using Swing (not Spring) too long ago for desktop UIs. Yes the TechEpower benchmarks are nice. Annoyingly enough, Play Framework, which I use, isn’t one of the fastest — but Vert.x is! and seems to support Scala 3?: https://github.com/vert-x3/vertx-lang-scala

            I prefer stability, reliability and backward compatibility, and I have a feeling that today’s web is in direct opposition to that.

            Yes the upgrade treadmill is frustrating. Lots of could-have-been useful development time disappears, trying to stay up-to-date with the new versions of everything-web-related and things going EOL.

      2. 1

        It depends on what I’m building. But mainly:

        • Go for command line interfaces, API servers;
        • Typescript and Deno for web-apps (I find Deno Fresh ergonomic enough for my needs);
        • Swift for iOS/macOS projects. When I need to maintain user data I use SQLite or PostgreSQL.
        1. 1

          Typescript + Deno + PostgreSQL is pretty nice. I use sometimes. Do you use Deno-the-company’s KV store?

          1. 1

            I tried the self-hosted version some months ago, but since I don’t use Deno’s own infrastructure for deployment, I don’t find it particularly enticing.

            1. 2

              Aha, I use Deno as a more secure Nodejs, and ignore their whole infrastructure for deployment. Works ok :- )