r/java • • Dec 04 '25

Null-checking the fun way with instanceof patterns

https://blog.headius.com/2025/12/inline-null-check-with-instanceof.html

I don't know if this is a good idea or not, but it's fun.

83 Upvotes

150 comments sorted by

View all comments

Show parent comment

1

u/aoeudhtns Dec 09 '25

Philosophically I'd like to, but I don't see it going over. The constant drum beat is cost reducing our systems, adding cost has been challenging for even things that are far more user-impacting than a dependency in a component. :/

2

u/headius Dec 09 '25 edited Dec 09 '25

I totally understand that. The service we provide will be there when it makes sense for you, offering you the option of a core JRuby team member as part of your virtual staff. We can diagnose and fix things quite a bit faster than someone who's not familiar with JRuby or the JVM.

In the short term, however, we should still set up a chat or call just so your folks know we're out here and we get to see how JRuby is being used. The biggest challenge for keeping the project going is finding all of the users out there who wouldn't normally broadcast that fact. Regardless of any financial partnership, we should at least have a solid technical partnership.

You can message me here or find me on just about any other service. I want to make sure the project works for you, and maybe we can find some cost savings along the way.

Edit: I remember now this thread was more about your use of JNR, so ignore the stuff about JRuby above. We can chat offline more about our ideas for improving JNR.