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

Project Cube Solver #01 – project goal, scope, anticipated problems and technologies

Today I’m going to write something more about my project which is for searching solution of scrambled Rubik’s Cube. Project is available on github so you can easily follow my progress: https://github.com/KonradPrzetacznik/cube-solver I invite you to reading 🙂 Project goal Project goal is to write program which will be able to find solution of scrambled

Continue reading Project Cube Solver #01 – project goal, scope, anticipated problems and technologies

Hello World

Conventional programming greetings has been displayed so we can start 🙂 I would like to greet you on my blog. You will be able read here about various things which are associated with widely understood programming. Mainly I will focus on languages such as PHP and Java though I don’t exclude that someday in the

Continue reading Hello World