Posts tagged "php"

Boy scout rule in 6 examples - the basic principle of web development

Boy scout rule in 6 examples - the basic principle of web development

Not everyone was a scout in his youth. Most of programmers, however, have probably heard of the Boy Scout Rule in software development. But can you name a few of the activities that are part of that rule? When I started to explore this topic, looking for what exactly needs to be done to say "I just applied the boy scout rule", I only found one thing: "Leave your code better than you found it" - everyone quotes Uncle Bob. But what does it mean? What am I supposed to do exactly?

Read More
How to delete… not to delete yourself?

How to delete… not to delete yourself?

I want to present you a real story that happened in a project we took over. On this day, Sentry revealed a strange error. The short analysis showed that the error occurred when a user was removed. But wait, there is no such feature as removing a user! What happened?!? I analyzed the logs and found out that someone wanted to delete his/her profile picture and instead... removed himself!

Read More
Page Object Pattern

Page Object Pattern

As important and critical unit tests are to our applications, functional testing of the front part should be a must part of any project too. At Accesto we use a combination of Selenium browser automation tool, Facebook's WebDriver and PHPUnit framework to make sure the user interface is working as expected from the day one.

Read More
Law of Demeter in Testing Web Applications

Law of Demeter in Testing Web Applications

Writing a testable code of an application is as important as writing tests itself. While testing, besides S.O.L.I.D. (single responsibility, open-closed, Liskov substitution, interface segregation and dependency inversion - the five basic principles of object-oriented programming and design), compliance with the Law of Demeter may come in handy as well.

Read More

This website uses cookies to guarantee the best experience for the user. If you continue browsing, we consider that you agree to their use.