Anyone who’s done cross-platform development on Windows knows that getting things to compile can be a huge pain in the ass. Sometimes it’s not even possible. The whole situation kinda sucked, until now.
This is a follow up to a previous article I wrote, Java’s new Optional type is worthless. If you want to skip my ranting and get straight to the practical stuff, scroll down to “How to use Optional the way it was intended.”