String Calculator kata as a collaboration of behavior

These are some notes on a String Calculator kata implemented in object-oriented way as a collaboration of entities. By entities we will consider different implementations of the same abstraction that emerged from the different input string formats. This kata implementation is object-oriented and tends to follow the object-oriented behavioral decomposition.
to string Calculator kata as a collaboration of behavior »

String Calculator kata as a collaboration of entities

These are some notes on a String Calculator kata implemented in object-oriented way as a collaboration of entities. By entities we will consider different implementations of the same abstraction that emerged from the different input string formats. This kata implementation is object-oriented and tends to follow the object-oriented structural decomposition.
to string Calculator kata as a collaboration of entities »

String Calculator kata as a single unit of work without state

These are some notes on a String Calculator kata implemented in an “object-oriented” way as a single unit of work without state. Why the air-quotes are used? Because it is not true object-oriented ways of doing things, even though the class keyword is used. This kata implementation tends to be sort of procedural, but in a good way.
to string Calculator kata as a single unit of work without state »

String Calculator kata as a single unit of work with state

These are some notes on a String Calculator kata implemented in an “object-oriented” way as a single unit of work with state. Why the air-quotes are used? Because it is not a true object-oriented way of doing things, even though the class keyword and state are used. This kata implementation tends to be sort of procedural.
to string Calculator kata as a single unit of work with state »

String Calculator kata in the Object-Oriented ways

The big thing about practicing katas is not just to finish them, but the possibility to rethink them while repeating. This works best when you try to rewrite a kata in different paradigms and compare the solutions. Today, I want to talk about a String Calculator kata and its object-oriented implementation. Beyond that, we are going to take a look at decomposition and some object-oriented design principles. Let’s dive into it.
to string Calculator kata in the Object-Oriented way »

Disabling the ML completion in IntelliJ

As you might know, in 2024, JetBrains company added a full line code completion in IDEs. This code completion feature is based on the Machine-Learning (ML) mechanism and increases the development speed drastically. However, sometimes there are situations where we don’t want to see any suggestions. Especially when we are deliberately practicing or doing programming katas. So, let’s find out how to disable it temporarily.
to disabling the Machine-Learning completion in IntelliJ »

The Chrome Command Menu

The world of software is full of surprises, and I’m not just talking about Easter eggs. Even the programs that people use every day have a lot of hidden possibilities that people are not aware of. Recently, I discovered that Google Chrome has a Command Menu with some very useful built-in commands. Let’s find out how to use it and what it gives us.
to the Chrome Command Menu »

Playgrounds and why to use them

Imagine that you have a task to develop a package or a library. For example, during the last refactoring session, someone mentioned that a piece of functionality should be extracted into a separate package. Or, the company made a decision to open-source a part of internal software or developments. Or, you just have an interesting idea that you want to make public. In all these situations you have to start somewhere. One of the possible ways is to start just from a playground.
to playgrounds and how they can help to write better code »

Functions vs Classes in JavaScript

I always wondered why in different JavaScript communities and projects people still prefer using functions instead of objects. Of course, we're not talking about projects written in the functional paradigm. What is even more interesting is that in some projects you won’t find any Class keyword, even though this keyword was introduced in JavaScript 10 years ago (in ES6 version). Recently, quite by accident, I had a conversation with a front-end developer who favors functions over classes. It turned out into an interesting discussion that led to a useful experiment, and that is why.
to functions vs Classes in JavaScript »

A PCRE lookahead and the case sensitivity

During all my developer’s career I’ve been a big fan of regular expressions. I read books and articles on the topic. I even created a sandbox with common and popular challenges to play around with them. Until recently, I thought I had seen almost all possible tasks and challenges related to regular expressions. However, a few days ago, I came across an interesting case related to case sensitivity which was very new to me.
to an interesting PCRE lookahead assertion case »
« 1 2 3 4