Programming World

Docker #2 – Docker compose

Our next goal is to run new docker container using docker composer. I think it is the simplest way to define what we need and how container should look like. After run of docker we need to check ip adress of docker machine:

Now when we know that we should add this ip and

Continue reading Docker #2 – Docker compose

Why you shouldn’t use double equal sign (==) while comparing hashes in PHP

Today we will say about some susceptibility in PHP language, which has been described on Michala Špačeka’s Twitter some time ago. Article is also available in Polish version. Namely, he noted that in the PHP language the following comparison returns a true value

At the first moment, it would look like a collision occurrence

Continue reading Why you shouldn’t use double equal sign (==) while comparing hashes in PHP

Review of book “Refactoring: Improving the Design of Existing Code”

Book rating: I decided to publicate occasionally reviews of interesting books that I read. So this is the first one, review of “Refactoring: Improving the Design of Existing Code” book written by Martin Fowler in cooperation with few others famous programmers. Article is also available in Polish version. What the book is about Who of

Continue reading Review of book “Refactoring: Improving the Design of Existing Code”

Project Cube Solver #03 – Scrambles generating– tests and first lines of code

In my previous article i described theory which is necessary to write generator of scrambling algorithms. Now it’s time to begin first lines of code. If you didn’t read mentioned theory, it will be the best option if you do it before because it will help you to understand code which will be written today.

Continue reading Project Cube Solver #03 – Scrambles generating– tests and first lines of code

Projekt Cube Solver #02 – Scrambles generating- theory

Today I will focus on theory of scrambling algorithms which will be needed during writing generator of scramble algorithms. Generator will be implementing in future article which will appear soon. Article also available in Polish version. Notation description There are few notation which are used to write cube moves down. The one which is the

Continue reading Projekt Cube Solver #02 – Scrambles generating- theory