Posts about 'java'
-
An Intro to vavr's Either
Either an orange or an apple would be delicious. Either is an incredibly useful tool in a Java programmer’s handbook, one that brings functional programming control to Java. If that didn’t make sense, I get it. Either is much easier to use, to me, than to explain. What Either does...
Some Tips for Working With the Google Sheets Java SDK
At work, I’ve been working on a project that involves reading and writing data to and from a Google sheet. One could argue about the wisdom of using Google Sheets to hold any data, but for the sake of this post (and my sanity) let’s assume that the business requirements...
What I Learned at Work Today: Status Code Tricks
At work yesterday, I came across this snippet of code in a Java class meant to handle HTTP responses: boolean isSuccessful(int statusCode){ return statusCode / 100 == 2; } My first instinct was to chuckle (and in fact I sent it to a coworker and we both chuckled). What a...