Time flies, time flies

Before you know it, it’s going to be four years.

When I graduated, I chose the front end, not for interest, but for life!

At the beginning of the work, the heart very uneasy and panic, the student stage and work is so different! Environmental factors at work affect me all the time, such as doubts from leaders and dislike from colleagues, which make my weak and weak life in hot water every day. Yes, it’s all because of the dish. Although the dish is not the original sin, the dish is a reality, and life is also a reality.

After three months, I had a qualitative improvement in technology, work problems can also deal with a little. But the world of code is always so unpredictable, and bugs are still flying!

After half a year, I have my own understanding of the needs in the work, and the technology has improved a lot, slightly complacent! In leadership strange vision, reveal a trace of approbation.

Although I have made slight progress in my work, the food is still a label that cannot be removed. At this time ushered in my life’s first book, “JavaScrpt Advanced Programming 3”. But instead of being drawn into the book, I fell into deep self-doubt. Is this the JS that I am familiar with, the content of the book why I do not know, what also do not understand? This is probably the dish, the original dish is so thorough, so pure!

After a year, I steeled myself to read the basic part of the book. Although it is only the basic content, there are still a lot of incomprehension and confusion, more or a little understanding! There is no denying that I have a new understanding of JS! At this point, most of the work is already handy!

A year later, I went back to the basics of the book and expanded into new areas, like object orientation! This time solved a lot of previous doubts, object-oriented and this also a little understanding, the heart is also a lot of practical! When the weather cleared up and the rain stopped, I felt I could do it again!

My third year of work begins with some bad news! Due to personnel adjustment, all employees of the outsourcing development site have to return to the original company, and I am facing the crisis of unemployment! Yes, it’s been two years and it’s time to move on!

I began to pay attention to online recruitment ads, can introduce my eyelids is not a recruitment information, but a bolt from the blue! ES6, Vue, React or applet, and read the source code! I ask myself what I can do, and the answer is only one, just like a popular saying on the Internet, “Old husband only knows jQuery!” Yes, I only know jQuery!

The world outside had already produced earth-shaking changes, and I was like a frog in the bottom of a well, guarding their own one mu three points to amuse themselves! The obvious technical defects hit my confidence and I had to return to the previous outsourcing company!

Deeply aware of the lack and backwardness of technology, I began to pay attention to various front-end public accounts, began to watch videos on the Internet, and began to communicate with people better than me. On the way to see the public number article, home to see the video! I don’t want to stop there, I don’t want to lose all my work, I think I can still be saved, I can still fight!

With an object-oriented foundation in hand, I started learning Vue while learning to read source code (jQuery)! As stated on the Vue website, it was really easy to get started with Vue, and I was able to complete some simple functions in my work in no time. It was much simpler than writing jquery!

Of course, I did not give up reading the jQuery source code. I understand the prototype object and instantiation defined by jQuery, as well as the extend method. Source code is the source code, a lot of code is still so difficult to understand, I began to write comments on the debugger side, finally reluctantly read again! After learning jquery, I began to read the underscore source code again, and the process of learning the underscore source code is much faster now that I have the experience of reading the jquery source code. Also learned what is functional programming, but also learned a lot of coding skills!

Time flies, I’ve been working for two and a half years! So far, Vue has been working on it for half a year, but it still only knows some simple apis, not even Api engineers. Require, import and export can be seen everywhere in the project, not to mention the real meaning of them, not to mention some commonly used plug-ins, but I still like them as before.

I decided to start with require, which is the CommonJs specification based on Node. I began to learn ruan God CommonJs specification, take the trouble to see again and again, finally understand what is a module, how to define and load the module and load the rules! The cloud of doubt in my mind has lifted a little!

After learning about the CommonJs specification, I started reading the sea.js source code to see how these similar modular tools are implemented. After reading the source code of Sea-.js, we know that it actually takes the module as a string to parse with the re, get the factory inside, and then execute to get what needs to be thrown inside! At this time, my heart is much more comfortable, and I have acquired two books “javascript Ninja Secrets (2)”, as well as Ruan God’s ES6!

CommonJs specification is understood, Vue can write some simple, but how the code is packaged, how to run, how to use webPack? With these doubts in mind, I started learning Webpack. I learned how to install plug-ins, what happens when you run dev and build NPM, what is loader, what is plugins, what is proxy forwarding… . Although I have learned a lot, I still feel that Webpack has only scratched the surface and still needs more learning.

I do not know that it has been three and a half years since graduation, and I wasted a lot of time in the first two years. As I woke up behind, MY technology has really improved a lot!

Through continuous learning slowly have their own understanding of the code! You don’t have an accurate understanding of your code until you’ve seen the source code. After learning the source code, I found that the code I wrote before is an insult to the code. The author of jQuery once said, “You can do the most with the least code!” (Something like that, I can’t quite remember). And I write code, just like aunt Wang’s foot-binding cloth, smelly and long! Not only is it hard to maintain, it has no scalability!

With this knowledge, I began to absorb nutrients from the source code, with the big guy to learn coding, considering not how to achieve this function, but how to better achieve the function! I also believe that code has a soul, just like people have a soul. What code is written gives it a soul of what kind, which may be the charm of code! Beautiful skin is all the same, interesting soul one in a million! Always want to think about how to give it an interesting soul, become my own requirements!

Have to sigh, The Times in progress, front-end technology is more multifaceted flowering, I do not know the mountain only feel water depth, really is endless learning, not to advance is to go back!

In 2020, the epidemic is in the grip of the world, and it is hard to find a job for everyone. The difficulty of the interview is also unfathomable. I can only study Vue source code to improve their living space, this is an unprecedented challenge, really difficult to understand! Read a lot of Vue source analysis of the article, read understand don’t understand a lot of, but other people’s article is someone else’s understanding! The paper come zhongjue shallow, must know this to practice! Still want oneself to understand just go!

In life, there will always be someone who carries a heavy load for you. The more you work hard, the more you will lose weight for others. To oneself – come on, on the way!!