Write a chicken soup post today.

1. Does it make sense to repeat the wheel?

Repeat the wheel, most of a sound feel waste of time and experience to make a thing that others have open source, spend time may not make others good effect, why not directly take someone else to directly use, really very reasonable.

And in the process of task completion, sometimes the time limit is tight, and many functions are required. Many of them need to be completed on the basis of others. It is easy and fast to complete delivery quickly, and the boss appreciates it, which is perfect.

I quite agree with the above views, and I often do so at work to save my own time.

But there is another point of view, regardless of the work period, have delivery pressure, people feel the idea of cases it is necessary to build the wheels, often heard someone from online or interview, asked his resume, such as deployment XXX products, the interviewer asked how to deploy, the interviewer replied with off-the-shelf tools deployed company. Shows this is not the interviewer want to answer, but standing on the point of view of the interviewer is telling the truth, indeed done this project, also indeed is the company’s existing tools, especially in large companies, this kind of phenomenon may be a little more, because the process tool is very perfect, just care about the business, but may be business writing becomes more CV (copy and paste) the great spirit.

Just like learning knowledge, only to make others into their own, and then to practice is the real understanding. Internet technology personally feel that writing and using are completely different things. Only when you actually write will you know where the problem is, whether it is thread unsafe, how to ensure data consistency in high concurrency, etc.

Therefore, from the perspective of personal growth, it is necessary to repeat the wheel. Of course, regardless of the pressure of work delivery, I emphasize this because in the actual work project, using others’ better and improved things is obviously very good for the project itself, and taking the company’s money should do things well. In business without a delivery pressure, how to realize the personal advice to try first to himself, even after the use of other people’s thing, when you look at the source code, know how to implement, also won’t appear the above said meng force of the problems in the interview, resume their own project if all answer is not good, don’t give the interviewer a good impression.

Talk about what I learned from building the wheel

Simple talk about which I made the wheels of the harvest, such as writing technology blog, a lot of knowledge points many have written on the net, if so feel it is not necessary to write, it is good to see directly, personal practice found in the process of writing or some knowledge before I write the wrong, at the same time, more can deepen the knowledge of memory. For example, I wrote the last article on MySQL indexing principles. Now I have a clearer understanding of b-tree data structure and disk principle. I used to feel that this kind of advanced data structure is far away from me.

Last year, I rebuilt the wheel to encapsulate a very lightweight ORM. Because I was a little uncomfortable with using others’ ORM in business, I wanted to see if I could encapsulate one by myself. I didn’t have time to write it at ordinary times, so I spent 7 days at home during National Day. After writing it, I encountered a lot of holes, and then went to see the ORM written by a great person, I knew that the code can be written like this, and I had a certain understanding of the syntax of MySQL and the normal implementation of ORM. Elasticdump is a script that has a lot of work to do with it. It took a while to get to the end of elasticdump, but the process is pretty rewarding and you’ll want to read the source code.

Recently in contact with RPC, I had the idea to understand the principle and rebuild the wheel, but you might ask about time and effort. It’s not practical to build a wheel like this during working hours, really. It is only worthwhile to sacrifice your spare time to write the wheel that will help you improve your ability. Before watching the cartoon, the main character of the immortal is how long out of seclusion to become a powerful role, the role just let us see the result, but think about the seclusion period, eating and sleeping in the cultivation, so you want to become a big bull.

Haha, the end of the chicken soup post, I hope you can become immortal in your career, to share your story.

More exciting articles, welcome to pay attention to the public account: “Tiancheng Technology Talk”