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 »

How to use Vim substitute command (a use case)

As the security support for PHP 8.0 recently finished, it’s time to move forward and update my projects, including the open-source ones. The silver lining in all of this is that I can finally switch to attributes in tests. I think the attributes are better and have some advantages over annotations. So, let’s do it, but let’s try to do it as fast as possible with the power of Vim.
to how to use vim substitute - a switch to attributes use case »

My annual review for 2024

Looking back, the 2024 year was a pretty difficult year for me. On the other hand, that was a year of professional development, full of various meetings, connections, activities and events. In addition, I fulfilled some of my 2024 New Year’s resolutions. So, I’m pretty happy with the results.
to my annual review for 2024 »

Yank a whole file in Vim

Vim is an incredible tool. Sometimes, it allows us to do the same things in a very different ways. Recently, I’ve found a shorter way to yank (in other words to copy) a whole file.
to yank whole file in Vim »

Why I wrote a strip code library

A few days ago, I released a stip-code library and two plugins (for Vite and for Webpack) that use it. Some people might wonder why someone would even want to use them. Other people might point out that there are plenty of similar solutions. Fair enough, however, I didn’t find a good one and had to write my own.
to why I wrote a strip code library and several plugins based on it »

My reflections on the Global Day of Coderetreat

I like Global days of Coderetreat. This is a perfect opportunity to practice pair programming, polish your skills and share your experience and thoughts with other programmers. Usually, this is an event that consists only of pair programming sessions. But this year, it was something different and I want to reflect on it and share my thoughts.
to my reflections on GDCR »

Open-Close Principle at micro level

Some concepts are hard to grasp because of lots of details or because the level of abstraction is too high. Recently, I was asked about the Open-Close principle and how I would explain it. It seems to me, that the simplest explanation is when you show it on the micro level example.
to open-Close Principle at micro level »
1 2 3 4