If you use Checkstyle, especially as part of an automated build you may notice that the size of the log file can be a bit big.
I did, anyway, so I wrote a stylesheet to trim it down to size.
Coding Convention: Put identifying parameters first
When declaring a FactoryMethod put identifying parameters first.
Continue reading “Coding Convention: Put identifying parameters first”
“De”-testable design – lovely
Steve Hayes brings up a lovely quote. The opposite of a testable design is a detestable design.
Another good use for named queries
A while back, I blogged about how Hibernate named queries rock I found another reason why they rock today: it lets you hide what your persistent properties are called.
Differences cause problems
This is obvious, but differences between environments cause problems. You can expect bugs to cluster around them.
Continue reading “Differences cause problems”
Would you blame the hammer because the nail is blunt?
Cedric’s having another go at JUnit Again he misses the point: extensions to JUnit are not JUnit itself, and JUnit can’t be blamed for people extending it to the wrong way.
Continue reading “Would you blame the hammer because the nail is blunt?”
How do I find what tests use this method?
As I said earlier, I’ve been reading Michael Feathers _Working Effectively With Legacy Code_ recently (I’m taking my time with it; it’s a good book). He spends a lot of time talking about techniques to get code under test. However, he spends very little talking about finding out if (and to what extent) a method is under test in the first place. So here’s how I do it:
Continue reading “How do I find what tests use this method?”
I, for one, welcome our new corporate overlords…
Actually, I don’t. But I have to ask: if they can make it illegal to circumvent copy protection to do something you could legally do without the copy protection, then why can’t it be illegal to circumvent pop-up blockers?
Hmmm… considering that pop-up blockers are arguably a security feature, could the US DMCA be used here?
Things that bug me about IntelliJ
For the last few years, I’ve been saying that IntelliJ is the best Java IDE on the market, but that Eclipse is pretty close. I’ve also been using Eclipse that whole time (having used IntelliJ before that), because my then-employer didn’t like to shell out money if they didn’t have to.
Well, I’m at a different company, and everyone here uses IntelliJ (bought-and-paid -for, even!). And I’m finding that IntelliJ is as good as I remember, but there are a lot of things that are bugging me with it. Enough that I wonder if it’s worth using.
Continue reading “Things that bug me about IntelliJ”
Beware the mechanical coder, my son…
Stumbled upon this beauty today (minor changes to protect the guilty)
