Clean Craftsmanship
Robert C. Martin covers the three pillars of software craftsmanship: TDD disciplines with practical examples, professional standards for teams, and the ethical responsibilities of programmers.
Improving code structure without changing its behavior.
Robert C. Martin covers the three pillars of software craftsmanship: TDD disciplines with practical examples, professional standards for teams, and the ethical responsibilities of programmers.
There are two known schools in TDD: the mockist school (aka Outside-in) and the classicist school (aka Inside-out).
The complexity here is not about writing tests itself, but the habits that we have to change to create software that is easy to be tested.
Using array_merge inside a loop is a performance killer. The spread operator will help you to improve this by flatting the array.
These tests are also known as Characterization tests.
The best guide that brings your coding and architecture skills a level up. All the modern PHP features combined with the elegance of a well designed modular design.
If you see something, in the scope of your current task, that can be easily improved, improve it. And if you have any questions about it, ask.
Michael Feathers presents practical techniques for adding tests to untested code, breaking dependencies, and safely refactoring large legacy systems without introducing bugs.
Key takeaways from Hunt and Thomas's classic on pragmatic software development, including DRY principles, the right mindset, and how to choose and master your tools.
Even bad code can function. But if code isn't clean, it can bring a development organization to its knees. Every year, countless hours and significant resources are lost because of poorly written code. But it doesn't hav…