Helping make the web work for everyone. Welcome to my website. My name is Sylwester Wojnowski and I help individuals and organisations achieve presence on the web.

Blog // Pick of the week

Checking trees for sameness with recursion and spaceship operator in PHP

Checking trees for sameness with recursion and spaceship operator in PHP

16 Jul 2020 14:51:53


Learn how to check whether two trees are the same using a recursive algorithm or the spaceship operator in PHP.


Read full article »

Blog // Recent Posts

Transforming range of variable to 0 to 1 and custom ranges

18 Jul 2020 00:39:07

Transforming range of variable to 0 to 1 and custom ranges

One useful skill when it comes to dealing with variables is to be able to change their range. One of the most useful and desirable ranges is [0,1]. Occasionally you might need a different range like [-1,1], too. This article describes a couple of methods of scaling and descaling ...

Read more »

Checking trees for sameness with recursion and spaceship operator in PHP

16 Jul 2020 14:51:53

Checking trees for sameness with recursion and spaceship operator in PHP

At some point in your adventure with programming you are likely to find yourself in need of determining whether two trees are the same or not. This article describes two methods to do it. First on them relies on a recursive algorithm, the other, shorter, simpler and more ...

Read more »

Two indispensable formulas for percentages

15 Jul 2020 11:21:05

Two indispensable formulas for percentages

In this article I look at two very useful mathematical formulas related to dealing with percentages efficiently. You might know them, but it is likely, you haven't not been shown at least one of them while studying the subject during your school years. I remember my own ...

Read more »

Recursively updating deeply nested arrays in PHP

14 Jul 2020 11:08:06

Recursively updating deeply nested arrays in PHP

Suppose you have a deeply nested array of items, with its members being numbers and arrays. You want to update all the numbers, like 3 and 5 for example, in all of the arrays, no matter how deep nested the numbers are in the structure. In this article I look at two methods of ...

Read more »