• How to get the minimum and maximum of the Integer type?

    Let’s compare the ways to get the minimum and maximum of the Integer type. Are there any similarities? Which programming language makes it easier? C++ You can check this out in C++ Online Compiler. Java You can check this out in Java Online Compiler. Kotlin You can check this out in Kotlin Playground. PHP You…


  • How to find a balance between perfect and good enough code?

    Warning. The post contains cats images. What is the “perfect” code? We can use no rules to measure code and say, “It’s perfect” or “It’s not”. As always, it depends. When evaluating your code, it’s always tough to be objective. Imagine you’ve just written a new method: It works, you’re satisfied, the tests are green,…


  • Refactoring of the “elseif” block code

    Here’s the story. You’ve joined a new project and been provided a source code. You’re so excited and full of energy. Welcome to the real world You’re so excited until… you pull the code from a repository and open a class like this one: The discount value is based on the order’s item count and…


  • Hello World!

    A “Hello World!” project is created whenever you learn a new programming language. Let’s kick off this blog with “Hello World!” too: The journey has started. The next posts are coming soon.