Static Methods Are Your Friend
There’s an age-old debate about whether static methods are the devil. They make unit testing so hard! Utility methods are easier to use when they’re static. Take for instance a simple method to pull the value of a cookie off an HttpServletRequest. Since this is Java, we can’t put the method on the HttpServletRequest class. …