Let's talk about where (not) to use Optional - latest Inside Java Newscast: youtube.com/watch?v=9R8G8E…
I'm curious, what Optional camp are you in? (The words below are coarse summaries. Check from minute 4:56 for a detailed description.)
I couldn't put all I wanted to say in the video, so I wrote a companion blog post with more opinions: nipafx.dev/java-optional-…
@nipafx So, if Optional was made as return value, why Java own new features like records don't support this way of writing code? stackoverflow.com/questions/6294…
@nipafx Hi, very interesting post! This post led me to others on your blog. One question though, is it just me or your blog engine renders the pages as one scrolls? Whenever I scroll the text disappears and it takes a few seconds to appear. Very strange!
@nipafx The link gives 404 or should I say ‘return empty’? Perhaps it was Optional after all ;)
@nipafx I'm sorry, optional.of() to me does not express intent at all. Only when you are really accustomed to the api you fathom that you should use ofnullable. Why would the seemingly most basic call, not allow you one of the 2 basic options 😭 Only one reason why vavr option is better