Readit News logoReadit News
selimco commented on Modern CSS Code Snippets: Stop writing CSS like it's 2015   modern-css.com... · Posted by u/eustoria
p0w3n3d · a month ago
Live demo for input:user-invalid does not work on my phone.

It'd always been the same: those ugly patches of JavaScript were being added to maintain compatibility with all the browsers... That's why the newest CSS tricks were always out of reach for us

selimco · a month ago
The drop cap example is also broken for me on the latest Firefox version. It still requires a manually set line-height of 1.
selimco commented on Byte Buddy is a code generation and manipulation library for Java   bytebuddy.net/... · Posted by u/mooreds
ActorNightly · 7 months ago
The problem is, if you are trying to optimize for the JVM, you are already down the wrong path. The JVM is useful in a very small niche when you want something that is faster than Python/Node , but still want cross platform support and somewhat rapid development. The cases where this applies are very niche.

It may allow closer to JVM access, however the entire ecosystem is a colossal mess. The main() implementation in having a class that wraps it is pretty dumb, standard stuff like Lombok hacks the AST (not to mention in general the annotation preprocessors work by printing code strings to file), and the whole dependency injection frameworks are very much separated from actual processing with how much stuff they do in the background.

And then there is the whole Apache foundation with its software being used widely as standard. The same foundation where someone wrote the code that allows log statements to pull arbitrary code from the internet and execute it, and that change made its way past multiple eyes before being merged to production without a single person realizing how crazy it is.

If you want speed, write stuff in C/Rust/Clean C++ (without templates, no C style memory access, e.t.c). If you want to be efficient, write stuff in Python/Node.

selimco · 7 months ago
You don’t really need any of the apache commons libraries with modern java versions, if that’s what you were referring to. Also I think that most people who are considering doing jvm development would consider kotlin as an alternative language or maybe c# and dotnet as an alternative ecosystem. I believe rust, c or cpp are rarely going to be considerations for most people in that situation.
selimco commented on Byte Buddy is a code generation and manipulation library for Java   bytebuddy.net/... · Posted by u/mooreds
selimco · 7 months ago
It seems like micronaut has been able to avoid runtime bytecode generation by doing everything at compile-time. I wonder if there’s things that you can’t do the micronaut way.
selimco commented on Detekt – A static code analyzer for Kotlin   detekt.dev/... · Posted by u/TheWiggles
kevinherron · 8 months ago
We use it for (non-Spring) backend development. It's lovely and always my first choice over Java.

I like to avoid mixing Java/Kotlin within the same module when I can, but it still works, and parts of our codebase are mixed this way. (by module I mean e.g. the same Maven or Gradle module, i.e. try to avoid a situation where you have a `src/main/java` and `src/main/kotlin` next to each other)

selimco · 8 months ago
You can put kotlin code in src/main/java
selimco commented on Sanding UI   blog.jim-nielsen.com/2024... · Posted by u/roosgit
two_handfuls · a year ago
Meanwhile, some other UI uses square boxes for radio buttons.

Or have a highlighted button but the enter key doesn't activate it.

Or there are three different menus all behind a different symbol (ellipsis, hamburger, kebab).

There is a lot of variance in quality. Those of you who polish your UI: you are appreciated. Truly.

selimco · a year ago
I think space is usually the key that performs a click on focused buttons, not enter.
selimco commented on Spark – A web micro framework for Java and Kotlin   sparkjava.com/... · Posted by u/znpy
AndrewSChapman · 2 years ago
I could be wrong, but I think Vertx would be a better choice? https://vertx.io/

It's actively maintained with full time developers, performant, supports Kotlin out of the box, and has more features?

selimco · 2 years ago
I’d say Javalin is more of a successor. Vert.x is too focused on reactive programming to qualify as a successor IMO.
selimco commented on Show HN: I made a website to find best bus seat to avoid the sun while traveling   sitinshade.com... · Posted by u/Amithv
selimco · 2 years ago
At least one Turkish website (obilet) also offers this info. I consider this whenever I purchase a ticket.
selimco commented on Sony announces a9 III: first full-frame global shutter camera   dpreview.com/news/7271416... · Posted by u/ksec
kart23 · 2 years ago
it’s never made sense to me that there’s still not a single compact full frame camera. there are plenty of 35mm film cameras that you can literally slip in a pocket and still have pretty good lenses, what’s stopping a compact full frame camera these days?

https://casualphotophile.com/2019/05/17/ricoh-gr1v-film-came...

selimco · 2 years ago
There's the sigma fp which is the smallest I believe.
selimco commented on Permazen: a different persistence layer for Java   github.com/permazen/perma... · Posted by u/mike_hearn
ianlevesque · 2 years ago
jOOQ is pretty great, and recently got good Kotlin support. My only complaint is if you use their DSL you lose the SQL syntax highlighting JetBrains IDEs have.
selimco · 2 years ago
In kotlin (maybe also java?) you can use the jetbrains @Language annotation to get syntax highlighting on string variables. A little more verbose but maybe it works for you.

u/selimco

KarmaCake day34June 22, 2022
About
https://selim.co
View Original