Some of us write unit tests, while others choose not to. Indeed, it’s important to test common usage, situations of improper usage, and rare events. But it’s also vital that you write your tests pragmatically, using functional (acceptance) tests for application’s behavior, and unit tests for internal APIs.
Most software applications behave like whimsical babies with an unavoidable “tendency” to grow in size and complexity over time. You’re probably wondering how to tackle the problem without hitting your head against a brick wall. This article managing this, in particular, Services, because it plays nicely with Domain Models, and therefore with Domain-Driven Design.
The EXPLAIN keyword is one of the most powerful tools at your disposal for understanding and optimizing troublesome MySQL queries, but it’s a sad fact that many developers rarely make use of it. In this article, you’ll learn what the output of EXPLAIN can be and how to use it to optimize your schema and queries.
PHP development is hot right now, but there’s also a lot of competition among developers. If you want to make it as an independent PHP developer, you’ve got to know more than just PHP. These six skills are essential for most freelancers, even more so for PHP developers.
If your application is data-intensive, subjecting your CRUD code to a battery of tests is good practice that helps ensure that your application is working correctly. This article will help you get started using PHPUnit’s Database extension to automate tests for your code that interacts with your database.