Home » Author Archives: Petri Kainulainen (page 4)

Author Archives: Petri Kainulainen

Petri is passionate about software development and continuous improvement. He is specialized in software development with the Spring Framework and is the author of Spring Data book.

Writing Clean Tests – New Considered Harmful

java-interview-questions-answers

It is pretty hard to figure out a good definition for clean code because everyone of us has our own definition for the word clean. However, there is one definition which seems to be universal: Clean code is easy to read. This might come as a surprise to some of you, but I think that this definition applies to test ...

Read More »

Writing Clean Tests – Beware of Magic

junit-logo

It is pretty hard to figure out a good definition for clean code because everyone of us has our own definition for the word clean. However, there is one definition which seems to be universal: Clean code is easy to read. This might come as a surprise to some of you, but I think that this definition applies to test ...

Read More »

Writing Clean Tests – Naming Matters

software-development-2-logo

It is pretty hard to figure out a good definition for clean code because everyone of us has our own definition for the word clean. However, there is one definition which seems to be universal: Clean code is easy to read. This might come as a surprise to some of you, but I think that this definition applies to test ...

Read More »

Using jOOQ with Spring: Sorting and Pagination

jooq-2-logo

JOOQ is a library which helps us to get in control of our SQL. It can generate code from our database and lets us build typesafe database queries by using its fluent API. The earlier parts of this tutorial have taught us how we can configure the application context of our application, generate code from our database, and add CRUD ...

Read More »

Three Reasons Why We Should Not Use Inheritance In Our Tests

software-development-2-logo

When we write automated tests (either unit or integration tests) for our application, we should notice pretty soon that Many test cases use the same configuration which creates duplicate code. Building objects used in our tests creates duplicates code. Writing assertions creates duplicate code. The first thing that comes to mind is to eliminate the duplicate code. As we know, ...

Read More »

Using jOOQ with Spring: CRUD

jooq-2-logo

jOOQ is a library which helps us to get back in control of our SQL. It can generate code from our database and lets us build typesafe database queries by using its fluent API. The earlier parts of this tutorial have taught us how we can configure the application context of our example application and generate code from our database. ...

Read More »

10 Books Every Java Developer Should Read

java-logo

I have read my share of software development books and I have noticed that it is very rare to find a book which I want to read more than once. However, once in a while I find a book which teaches me new things every time when I read it. This blog post is a tribute to these rare gems. ...

Read More »

The Cost of Context Switching

software-development-2-logo

I have always thought that I am good at multitasking. That is why I believed that I don’t have to pay the price associated with context switching (or task switching). This week I realized that have been wrong. I am not very good at multitasking and context switching is much more expensive than I thought. The reason for my mistake ...

Read More »

Domain-Driven Design Revisited

software-development-2-logo

Recently I read a book titled Domain-Driven Design by Eric Evans. This wasn’t the first time I read this book but this time I realized that I had been totally wrong about domain-driven design. I thought that the domain model consists of entities and value objects. In fact, I was obsessed with moving the domain logic to entities and value ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close