Author: Xiao Fu Ge Blog: https://bugstack.cn
Precipitate, share, grow, and let yourself and others gain something! 😄
1. Preface: Look, hear, ask, and ask
🌺 哈喽,大家好,我是技术UP主小傅哥!
Hahaha, as of today, it took almost 3 months of weekends and holidays to complete the recording of Xiao Fu's first video "Relearning Java Design Patterns" at station B. Yes, there is already a video for the most popular design pattern on the entire network. I have finished recording, so have you checked in to study? 🤔
Recording video is a plan made by Brother Fu last year. On the one hand, I want to exercise my expressive ability in the face of the camera. On the other hand, I also hope that this kind of video can help more beginners to learn faster and improve their coding. Ability, can also read some framework source code based on this ability. You may not know that many excellent foreign framework source code Spring, Mybatis, etc. use a lot of design principles and design patterns. Only with experience in design patterns can you understand these source codes.
In addition, during the video recording, Brother Fu also learned how to produce courseware, write materials, record videos, edit, dub, and match animations. By the way, he learned to use some professional software, including: Neural Mix Pro, Final Cut Pro, Clipping, Filmage Screen, OBS, Camo Studio and more. It is also a great harvest. In the future video recording, I will gradually become more skilled, and record more technical, better quality and easier to learn videos for everyone.
In fact, many people may think about getting everything ready for action before they do one thing. But in fact, it's like how many times you have gone through swimming poses in your mind, as long as you don't go to the beach, don't go into the water, don't feel it, you'll never see a bikini . Therefore, a more effective way is to move, supplement yourself in action, improve materials, and continue to iterate.
Come on, if you want to do something too, do it now!
Second, the pulse: powerless
In view of the fact that "Re-learning Java Design Patterns" PDF is real, easy to learn, and free of charge, it has been used by many account owners and UP owners as a drainage tool. So many code farmers have such a PDF in their favorites.
Of course, it would be great if it could help your fellow R&D grow up. However, I also know that many R&D partners have not opened the PDF to learn, because as long as they are learning, they need to download the source code in my code repository, otherwise, just reading the illustrations in the book will not gain much.
In fact, many R&D partners are not ignorant. They say that there are too many materials, and they don’t read any of them in depth, and they give up after reading it for a while. I didn't learn any of the inversions, but the habit of collecting xxx learning routes has not changed at all.
But it can’t be said that everyone doesn’t like learning, sometimes it’s just the wrong way. Just like Brother Fu himself, he didn’t take a book on design patterns to study at the beginning, because many design patterns are theoretical materials, and some cases cannot be used in actual scenarios. The accumulation is also supplemented. Even if you want to write good code, you can't do it! It is estimated that many readers will feel this way in their actual development.
3. Diagnosis: Glory of the King
Do you know Cheng Yaojin? Well, he is the one with two watermelon knives in Glory of the King. He is a veteran of three dynasties and has experienced Sui Dynasty, Tang Dynasty, and Wu Zhou. But for such a fierce character, when he was young to learn martial arts, he only learned the first three moves of the thirty-six Xuanhua axe , but these three axe were superb.
The same is true for programmers learning 23 design patterns. There is no need to learn all design patterns at the beginning. Even if you learn them, you will not have the strength to play them all, and you will be thrown down by others.
What to do then, of course, find the three most commonly used ones that can best solve your actual problems. After these three are proficient, the code written later will be clean. When these three are fully understood, the later design patterns will not be so difficult to learn and use.
What are these three design patterns? Xiao Fu recommends: template + strategy + factory . As long as these three are done and used together, you can basically solve a large number of problems and make your code look like Very quality.
- In fact, this kind of structural layering is also reflected in Spring's source code. It is a design principle of decoupling and separation of responsibility boundaries. Through this implementation, the code is the embodiment of the document.
- In your actual coding, if there is a similar process, you can also define an abstract template to provide data-supported inheritance and corresponding policy configuration and call processing. Of course, you may not need the use of templates in your logic, or it can be a combination of factory + strategy.
- Such a combination of simple design patterns can basically handle many business scenarios encountered in R&D, and as your scenarios iterate, thinking about the variants of these design patterns, a little bit of proficiency will be sufficient After accumulation, write a more complete structure that meets your needs.
4. Grasping the medicine: the fairy guides the way
Well, when you have seen this, I guess you will be a good architect in the future. Because you are walking on a road that Xiao Fu has crossed, hahaha!
If you can complete it, follow the video, key points, key points, source code! Combine these two parts and write them all by hand, then you will definitely accumulate a lot of practical skills of design patterns, and you can also apply these skills to real business scenarios.
- Video : https://www.bilibili.com/video/BV1uF411t7pK
B站搜:小傅哥の码场
- Source code : https://github.com/fuzhengwei/CodeDesignTutorials
After learning design patterns, what's next? Next is the actual combat, where is the actual combat? On the one hand, it is to complete "Hands-on Spring" like Brother Fu, and on the other hand, it is to participate in the business system of the complex scene that the boss takes you to do. Both of these aspects allow you to learn design patterns that you can use in practice. Refer to the following diagram for the specific route:
It is such a route. If you can stick to it completely, there is no problem with the salary increase of 30%~45%. It has been tested and verified. At the same time, you can improve your resume according to these learning contents: a hard-core resume written by Brother Fu!
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。