Category SoftwareEngineering

Introduction to Go

I blogged previously about the merits of learning a new programming language every year, so taking my own suggestion, I’ve had a first look at Go. You might hear it called Golang, but that’s just the url for the website,…

Coding Practice

The best way to learn anything is to do it and coding is no exception and the best way to get better at something is to practice. Try it, learn by making mistakes and the apply the knowledge gained to…

New Year, New Language

The book ‘The Pragmatic Programmer’ suggests learning a new programming language every year. This may seem excessive and there are plenty of arguments for and against this. Whilst I don’t think you need to learn one that frequently, I do…

Test Behaviour, Not Methods

JUnit4 introduced @Test annotations and removes the need to prefix test method names with ‘test’. Take advantage of this and use a different test case naming convention to test the class behaviour, not it’s implementation Compare the two units test below…

Forget Code Coverage

Forget chasing code coverage, in my view it is a somewhat pointless statistic and chasing it can (in some cases) lead to poor quality tests and a lot of wasted time. It can also lead to a false sense of…

Test Driven Development Benefits

8 Benefits of Using Test Driven Development Focus on behaviour of a system Shorter feedback loop when coding Identify defects earlier in lifecycle Provide freedom to refactor Codebase should be easier to maintain & understand Tests act as documentation Quicker…