Yesterday a little friend asked me , I just started the front-end programming industry , Should we treat technology as depth first or breadth first ？
I find this question very interesting , Take it out and talk .
Remember when I first started , My front end leader Just tell me. , The healthy development path of a programmer is "one essence, many specialties" , There is a direction of in-depth study , Make sure you have food , A company wants to , There is absolute competitiveness in this direction , This is the foundation of settling down . secondly , It should spread to the breadth , Expand your knowledge , Explore more possibilities in the workplace .
If at first , Just focus on breadth first , The consequence is , Although you know more , But you can't be alone in any direction , For a long time , It's easy to lose your footing .
This route is like , You are a tree , First of all, take root down , The deeper the soil the roots grow , The more nourishment you draw , The stronger you are , Even if there is a storm , Not enough to destroy you . then , Wait for the spring breeze to blow , You can spread the leaves , To explore the wider sky .
Trees are like this , So it is with Manon . therefore , Priority order , We should dig deep first , Then spread to the breadth .
Of course , Above remarks , It is only applicable to your normal stage of self-study and improvement . If in a company project , Don't get too involved , Whether it's depth first or breadth first , Do remember , Give priority to work .
for instance , Let you develop a web application , You choose to use React, You feel OK , But you think other libraries or frameworks might be better , So you use Vue To write a Hello World, You think it's easier .
Then you look up at the clock on the wall , It's been a few hours , You have to make some progress today . therefore , You don't get tangled up anymore , Fast Internet asked Reac and Vue Advantages and disadvantages , Then I think your project is more suitable for React（ perhaps Vue）, So you've got enough firepower to use this library to achieve .
Doing doing doing , You are right about React（ perhaps Vue） How to realize these functions is curious , You can't help but want to see the source code , But you don't have time , And you know that looking at the source code doesn't improve your efficiency at the moment .
therefore , You go on working , Before work , You've finally made a prototype that you can show .
remember , The new front-end newcomer who just joined the industry , Make a living , Is the most important .
Personal learning is important , But don't delay the progress of writing project in the company today . Last , What I want to say is , Look at a problem , We should think about it from many aspects and angles , The position of the station is different , You'll come to a different conclusion . No matter the accumulation of depth or the exploration of breadth , It all depends on your curiosity 、 Dissatisfied mentality , Until you understand the problem .