Posts about 'math'

  • 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...