Pure functions are easier to testBeginning Java programmers often wind up writing a main() procedure running dozens or even hundreds of lines. Clearly that’s difficult to…5d ago5d ago
Random thoughts about randomness in ScalaWhen you need a pseudorandom number in a Java project, what do you use? Many Java programmers would probably just use Math.random(). Which…6d ago6d ago
Not all Java IDEs give the same compiler warningsOne might assume that all integrated development environments (IDEs) for Java programming all give the same warnings. One would be wrong to…Nov 9Nov 9
Musings about cache invalidation and naming thingsThey say that the two most difficult things in software development are cache invalidation and naming things. Then perhaps the most…Nov 7Nov 7
Asserting minimums and maximums in Java test classes with org.testframeAssert Equals is the most frequently used assertion in any unit testing framework for Java. And it’s called the same thing in JUnit, TestNG…Nov 5Nov 5
Git advisory regarding ignored files can be turned on or offWorking on Git as long as I have, you start to notice that different versions of Git behave slightly different. If you really want Git on…Oct 29Oct 29
A simpler way to write inline source in JavadocA lot of HTML tags are available in Javadoc. After all, the Javadoc tool is supposed to generate HTML pages, so it makes sense that HTML…Sep 2Sep 2
Overview of the most frequently used Git commands, Part I: Main branch onlyDepending on how you count these things, Git has more than a hundred commands. Most programmers only need four or five on a daily basis.Aug 8Aug 8
Oddities of floating point: Negative zeroThe infamous case of 0.1 + 0.2 is just one of the many oddities of the IEEE-754 floating point number formats. Computers deal with integers…Aug 6Aug 6
AWS changes date format for S3 expires directiveIt feels like there are a thousand services in Amazon Web Services (AWS), though I only use like a dozen of them. Most of the services I…Jul 29Jul 29