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?
Posts tagged "php"
I love speed. Users demand speed. Check out how I increased page speed from 7.6 sec to 1.23 sec within a couple of minutes and to 0.6 in 4 hours of developing time. I did it without knowing much about business logic…
While looking for inspiration to write this post, I ran into a help request on a popular PHP community forum. When he showed some snippets of code, the problem became obvious. Some time ago, I had a similar situation...
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!
== or ===? How many equal signs to put up so that it is correct and that nobody in the code review has a problem with it? Why is it so tricky in PHP?
PHP7.2 was signed as RC6 in 09 Nov 2017 and GA released in Nov 30th's. In Accesto we try our best to keep updated with all new features and changes. Here is a list of the most important things you must know about the new release.
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.
At Accesto we recently came up with a project release checklist that helps us to make sure that we did not miss anything. It helped us a lot during the last releases and ensured peace of mind.
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.
Two weeks ago, Symfony announced a new Dotenv component. I’m not sure if you know about it, but I’m sure you should!