Latest Posts

Entwicklungspraxis December 5, 2023

A "Unit" In A Test Is Not The Class Under Test

Hi,

What is actually a “Unit” in a Unit Test?

Dumb question, you might say.

But it’s an interesting one. For many years, like most people who talk about this topic, I believed:

A unit is a class that I want to test.

And maybe you saw it that way too. And you certainly had a few problems with it.

For example, the symptoms of resulting Coupling

What happens when we write a UserServiceTest class? We have - without realizing it - established a semantic coupling between the UserService class and the UserServiceTest.


Entwicklungspraxis November 16, 2023

ChatGPT Killed my Blog

Hi,

My work methods have changed more in the past year than ever before.

A year ago, OpenAI released ChatGPT.

At the time, I thought the technology was cool, but I didn’t realize how much it would impact my work. And that in less than 12 months.

Today, I use AI for so many things:

  • I no longer Google questions; I ask ChatGPT
  • GitHub Copilot writes code before I even know what I want to write
  • My content (including this one) is proofread by ChatGPT
  • I have stock images generated by Midjourney
  • My recent presentations were created with ChatGPT
  • Even the pirate puzzle for the children’s birthday party is generated by ChatGPT

And this list is far from complete.


Entwicklungspraxis November 13, 2023

@Transaction Around Test

Hi,

My fingers were tingling at the start of Thorben Janssen’s session “The Big Java Persistence Q&A”.

The first question was roughly:

“In the previous talk (something with JPA), it was said that one should annotate every test with @Transactional. This will automatically roll back the data after the test. We’ve had a discussion and can’t agree. What’s your recommendation?”

Thorben’s answer made me nervous. He countered with a question of his own, also paraphrased:


Entwicklungspraxis November 6, 2023

Kids Treasure Hunt

Hi,

For a treasure hunt for a 5-year-old, I want to write a text. The text should be written by a pirate, describing a riddle where the pirate’s treasure is hidden. It should be hidden in a place where creepy trees are. Can you write the text for me and make it rhyme?

With this prompt, I fed ChatGPT. I had just returned from Berlin from the RabbitMQ Summit .


Top