• 0 Posts
  • 168 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle




  • One thing about him I saw in a Lemmy comment a couple months back, is that in every picture of him smiling, if you hide his mouth you’re left with his lifeless eyes, it’s like he was told how you’re supposed to smile when you’re cheerful so he goes through the motions but he’s not entirely sure what the point is. It works with all the pictures of him I came across since then, including the thumbnail of this post.


  • The point is also to minimize potential damages caused by a bug in the software. Just this year there have been multiple data-destroying bugs in publicly released software. If the app runs as a server it’s usually trivial to have it run as a dedicated user, with just enough permissions to do its job.

    It’s just good practice, even though the risks might be low why risk it at all?



  • I used Ubuntu at work a couple of years ago. When they announced the switch to snaps I didn’t really care, but when they switched Firefox to the snap version it had quite a few issues like really slow startup, inconsistent theming, and problems with some extensions. So I uninstalled the snap, installed the standard DEB and went on with my work.

    But then the issues came back, and it took me some time to figure out they had replaced the actual DEB package with an unholy shim which just installed the snap. THAT really pissed me off, so when I got a new laptop I just installed Arch and my only regret was not doing it sooner.










  • Nah, Hibernate, Spring and most major Java frameworks have largely moved away from XML. It’s still supported, but these days it’s mostly configured in the code directly, with properties loaded from yaml, JSON or the environment (for containers).

    The JDK ecosystem is in a pretty good spot nowadays. With Spring boot you can whip up a productions ready back-end very fast, or if you prefer a more hands-on approach there are lighter frameworks/libraries quarkus or micronaut.

    The Java language itself has evolved fast and is actually pretty nice now, and if you prefer something more modern akin to TS or swift you can just use Kotlin which is almost 100% interoperable with Java.


  • Since Java 14 it looks like this:

    Exception in thread “main” java.lang.NullPointerException:

    Cannot invoke “String.toLowerCase()” because the return value of “com.baeldung.java14.npe.HelpfulNullPointerException$PersonalDetails.getEmailAddress()” is null

    at com.baeldung.java14.npe.HelpfulNullPointerException.main(HelpfulNullPointerException.java:10)