Which is more readable?
releaseVersion = version.substring(0, version.indexOf('-SNAPSHOT'))
or
releaseVersion = version[0..-10]
This year I’ve been demonstrating how easy it is to create modern web apps using AngularJS, Java and MongoDB. I also use Groovy during this demo to do the sorts of things Groovy is really good at – writing descriptive tests, and creating scripts. Due to the time pressures in the demo, I never really … Read more
Which is more readable?
releaseVersion = version.substring(0, version.indexOf('-SNAPSHOT'))
or
releaseVersion = version[0..-10]
I’ve been using Blogger happily for three years or so, since I migrated the blog from LiveJournal and decided to actually invest some time writing. I’m happy with it because I just type stuff into Blogger and It Just Works. I’m happy because I can use my Google credentials to sign in. I’m happy because … Read more
In the last two articles on Spock I've covered mocking and stubbing. And I was pretty sold on Spock just based on that. But for a database driver, there's a killer feature: Data Driven Testing.
We're constantly fighting a battle when developing the new MongoDB Java driver between using tools that will do heavy lifting for us and minimising the dependencies a user has to download in order to use our driver. Ideally, we want the number of dependencies to be zero.