Usually writeCodeCertainly, mistakes are inevitable. How can we reduce the chance of making mistakes? We can only exercise more and pay more attention to it. The difficulty of software development is the complexity of the processing nature, that is, the complexity of the business logic itself, rather than solving some technical difficulties. As developers, on the one hand, we need to read more books, increase the knowledge width, learn new technologies, and maintain technical sensitivity. On the other hand, we need to exercise basic skills, such as those written in code Daquan, using defensive programming, controls multi-layer nesting, effectively uses recursion, and uses pseudocode to design sub-scripts.ProgramTo train the code review skills.
This series uses a simple Regular Expression Engine to train the ability to write code and review code, and to work with you to identify Legacy problems and bugs, learn together, and make progress together, because the length is long, only one index is sent on the home page. You can click the link below to read the index.
Let's find the error.-Write a Regular Expression Engine by yourself (1)-Overview
Let's make a mistake-write your own Regular Expression Engine (2)-build an abstract pattern tree
Let's make a mistake-write your own Regular Expression Engine (3)-Build a regular expression parsing tree and Word Segmentation
Let's make a mistake-write a Regular Expression Engine by yourself (4)-resolution method factory and unit test
Let's make a mistake-write your own Regular Expression Engine (5)-Checklist and summary
Source code download
Regexparse.zip