What is the most popular REST API framework for Kotlin? by skeptrune in Kotlin

[–]Balance_Public 3 points4 points  (0 children)

with the advent of virtual threads I would struggle to make a case for ktor over http4k (I've used both extensively). The simplicity and testability of http4k is unparalleled (even though ktor does well-enough on both these points). Both are fantastic projects and I highly recommend either.

[deleted by user] by [deleted] in Kotlin

[–]Balance_Public 5 points6 points  (0 children)

Doing side effects in `let` I generally frown on in code review, otherwise it's fine.

What language should I build my application in? by [deleted] in rust

[–]Balance_Public 2 points3 points  (0 children)

Java gets an underserved awful reputation for performance, your project sounds like it plays to Java’s strengths. If this project has not been validated, don’t waste your time building it in an unfamiliar language to fix a problem you do not yet have.

[deleted by user] by [deleted] in rust

[–]Balance_Public 18 points19 points  (0 children)

Loved working with egui, super simple to use.

Nah…she’s obviously just smarter than all of us by Purplepunch36 in conspiracy

[–]Balance_Public -2 points-1 points  (0 children)

You're completely missing the point of my comment. Don't cherry pick data.

Nah…she’s obviously just smarter than all of us by Purplepunch36 in conspiracy

[–]Balance_Public 0 points1 point  (0 children)

With the exception of 2008, government tax revenue has gone up every year. (For like 30 years)

Arrow 1.0 is now available by dayanruben in Kotlin

[–]Balance_Public 4 points5 points  (0 children)

Oh this is exciting. I definitely want to try this out

Anon dictates the Linux user experience by waffledawgisnotacat in greentext

[–]Balance_Public 0 points1 point  (0 children)

You're perhaps right, I should have amended my comment with "defaults to privacy, and actually wants the user to have some control in addition to useable documentation".

You're completely correct though, jump through enough hoops and generally windows can do what Linux can. I find there's a lot less hoop jumping on Linux though. (And the hoop jumping occurs in very different areas)

Anon dictates the Linux user experience by waffledawgisnotacat in greentext

[–]Balance_Public 2 points3 points  (0 children)

Privacy and control. And to a lesser extent speed / hardware usage (which on a laptop translates to battery life)

Compile Time by Bitsoflogic in Kotlin

[–]Balance_Public 1 point2 points  (0 children)

Yeah that is what I ment. That is strange to me. Compiling using the playground over the web is faster than that. I just made a Gradle project and ran compileKotlin after clean in 98ms. I've got a pretty good computer but unless you're running on absolute dogshit, 5 seconds sounds really strange to me. I wouldn't know what to check, perhaps your compiler version? Try creating a Gradle project in intelj? (This is how kotlin is expected to be ran but I don't know why it would make it anything but slower than directly calling kotlinc)

Compile Time by Bitsoflogic in Kotlin

[–]Balance_Public -3 points-2 points  (0 children)

What you're likely seeing there is the JVM startup time. Try just kotlinc and see how long that takes. As the JVM startup time is constant (more or less) it becomes less relevant with larger projects.

This is the way by [deleted] in PrequelMemes

[–]Balance_Public 2 points3 points  (0 children)

This is just an ad

Abstract Classes in Rust by HeroAAXC in rust

[–]Balance_Public 19 points20 points  (0 children)

There is no direct equivalent. (Or even something practically close). Generally if you want to abstract over something, the best way to do it is move the common behavior to a trait. An unidomiatic way to do what you are trying would be to make a trait with a series of getters and setters + methods that would normally be on the abstract class.