Skip to content

sebastiankoltun-blog.com

  • Home
  • About me
  • Contact

Category: Refactoring

utility-tools
10 February 2019 / Clean code

Are static utility classes bad?

Static utility classes are common in libraries and in user code. For example Java Math for basic mathematical calculations or DateUtils to operate on Date/LocalDate objects. It’s not always wrong to create and use them but sometimes using utility methods are considered code smell. I’ll try to explain when and why use or not to …

Continue Reading
hexagonal_architecture monolith-to-microservice
10 February 2019 / Clean code

Monolith to microservice

In last few years “microservices” term was very popular and almost everyone wanted to migrate their systems to such architecture. But what’s wrong with monolithic applications you may ask. Actually nothing. Monolith apps are as good as microservice apps. It’s not the case what is better. I don’t want to discuss what are the benefits …

Continue Reading
Command handler crossroads Iamge
8 July 2018 / Clean code

Command Handler Pattern in Java EE

I named it command-handler pattern, but actually it’s modified command pattern. In classic command pattern, we have Command class that handles action on a given object. You can see it in Switch example. First difference is decoupling of command and action execution. It also simplifies segregating read and write queries/commands (aka. CQRS). In command handler pattern, commands …

Continue Reading
5 June 2018 / Clean code

Best practice for passing method arguments

In this article I will present simple yet effective best practice for making code more readable by changing method arguments. It’s a good practice to only pass values, that the method requires, everything else ruins readability and causes tests to be more complicated. Following this simple rule we will check how it really affects code …

Continue Reading

About me

Sebastian Kołtun Java EE programmer from Poland with 3 years of experience. Interested in photography, film music and electronics.

Recent Posts

  • Spring profiles with Maven
  • PostgreSQL with Spring Boot on Docker
  • Are static utility classes bad?
  • Java Mind Map
  • Docker with Wildfly 13 and OpenJDK 10

Archive

  • August 2019
  • February 2019
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018

Categories

  • Clean code
  • Docker
  • Learning
  • Linux
  • Refactoring
  • Spring
  • Testing

Tags

Clean code Design Patterns Docker Java Java8 JavaEE JUnit5 Learning resources Linux Maven Refactoring Spring Spring Boot Test Ubuntu Wildfly

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Newsletter

©2019 sebastiankoltun-blog.com - Powered by Simpleasy