Long term code

2021-07-31

Sometimes you discover code which excells in thinking really long-term:

if (val.get(Calendar.YEAR) > 280000000) {
    throw new ArithmeticException("Calendar value too large for accurate calculations");
}

org.apache.commons.lang.time.DateUtils

I still wonder about the exact reasons for this code!

code-funjava

Dynamic DNS with AWS Route 53 – the Good, the Bad and the Ugly