Learning a new language means a new habit. This chapter will introduce or possibly emphasize some common usage. You will find that these usages are very common when you want to implement the design pattern in the code.
Learning a new language means a new habit. This chapter will introduce or possibly emphasize some common usage. You will find that these usages are very useful when you want to implement the design pattern in the code.
Many of the idioms summarized here are worthy of being used as a separate chapter or even a book. You should take this chapter as an introduction to the usage of PHP pattern design, and view some listed reference books for further study.
Test your code
There may be no common code usage that is more important than testing code. A good test can improve the development speed.
In the beginning, this motto may be in conflict with your intuition. You may assert that testing is a free obstacle. In fact, on the contrary, if you fully run those tests to check the public interfaces of your software, you may not change (or worse, damage) the original application software changes the internal execution of the system. Test and verify the accuracy and correctness of your public interfaces, and let yourself change the internal work of some code at will to ensure that your software is correct and there is no bug (error ).
During discussion