Last night, the circle of friends has been streamed live by Even Maiyu, mainly answering questions, chatting ~ a total of about an hour and a half. I’d like to show you handsome Albert
I also hold “learning”, “enlarge” attitude to the studio to listen to more than one hour, because the first half occupy, so didn’t had time to catch up with the opening), to be honest, although only listen for more than an hour, but the harvest is great, here also with the memory of seven seconds, I recorded some of the especially big some answering questions and chatting
This article is not a 100% retelling of the original words, but also slightly mixed with some personal views, of course, all the following content in brackets () is my own, for you to read better
You, how do you see the source code?
This question is I entered the broadcast room, the most popular question, you also explained
“You big” : I think there is no such a big need to see the source code, the main or to see you to see the source code is for what, is the idea of learning the framework?
“Danmu 1” : interview!
“Danmu 2” : interview!
.
“Bullet screen N” : interview!
Here a helpless smile passed ~
“Especially big” : the feeling is still compare volume now, all say to go to see the source code for the interview, in fact nothing more than is to want to enhance their own industry competitiveness…. (I don’t remember what he said, so let’s talk about my own personal opinion.)
“Personal View” : In fact, many front-end programmers in the company to do is partial to the business level, the fundamental contact is not very deep level, look at the source code in order to improve the competitiveness can be said to be very real, but to throw this, look at the source code or rush a few more key points to better: First, you want to learn the idea of frame or you want to build your own frame, build a wheel (you said in the live broadcast very encourage to build a wheel, or good); Second, for the sake of business, such as due to not familiar with the principle of the framework that less surface when writing business problems, mainly to improve their work efficiency (after all, who also don’t want to a don’t know how to come out of the bug to all day, finally found to be caused by their own principle of frame is not familiar with improper use)
For reactive, Vue3 uses proxy instead. Is there any improvement for development?
“Especially big” : first of all for the development, the biggest promotion is that you don’t have to consider some of the array, object changes, can be very good to achieve the response type, but also support WeakSet, WeakMap data structure.
“Especially big” : Secondly, the proxy implementation reactive is actually a raw object (the original object) with a layer of packaging, create a new object, the object with the original object is not equal, that is to say, there might be primitive objects take up memory and unable to release the problem, so suggest you declare an object response type, Try not to use any variables to refer to the original object. Instead, put the object directly in reactive
Here for the explanation of yuda, I use two pieces of code to demonstrate a simple
“Less recommended”
<script>
import {reactive} from 'vue'
export default {
setup() {
let obj = { name: 'and'.age: 23 } // The original object
const state = reactive(obj) // Wrap obj as a response
return {state}
}
}
</script>Copy the codeCopy the code
“Recommended Practice”
<script>
import {reactive} from 'vue'
export default {
setup() {
// No longer declare the original object first
const state = reactive({ name: 'and'.age: 23 })
return {state}
}
}
</script>Copy the codeCopy the code
Youda, how to treat programmers from naive to mature?
The question comes from the answer to a question that Youda had previously liked on Zhihu
“Yuda” : Emmm, did I like it? I think a programmer who says “XXX technology is the most awesome and XXXX technology is garbage” is actually very immature, because they would never say such a thing if they had done many projects and maintained a piece of code like 💩. Of course, for a framework or technology, you can say that the theory is very good, but after the technology is really implemented, will encounter a lot of problems, so in the face of real business scenarios, for technology is to make some trade-offs, rather than saying that XXX technology is the best
Especially big, a lot of black son to you can have an effect?
“You big” : ha ha, in fact, as time goes by, more and more thick skin (HHH, you big or very humorous), read a sentence before, roughly means that you have a certain influence, there will be two extremes, one is brainless fans; The other is brain-dead black, in fact, there is no need to pay attention to these black, after all, no one can do to let everyone like (the state of mind is very important!
What books do you recommend, Albert?
“Youda” : First of all, I think the rhino book is very good. It is more suitable for people who need to further improve themselves. Little red book… (Sorry, here at that time the broadcast room card, what also did not hear, but I personally think the Little Red book is very good, the knowledge is more systematic, the new couple is also more friendly); Another book that I think is really good (and here, You hold it up in front of the screen) is Effective JavaScript. It’s relatively practical, it’s not very opinionating, and it’s good for people who want to get advanced. Recommend a German XXXXXX to write “XXXXXXX” (sorry, blame my English is not good, the author and the title of the title did not understand, also did not write down), suitable for the study of language details of the programmer, this book on JS many corners of the explanation are very in place
Youda, do you have any idea about career planning?
“Youda” : In fact, I don’t have much opinion on this aspect, because my path is special and different from the development path of most people, so I don’t have much say (high eq: ha ha, Youda is humble and responsible; Low EQ: You can’t imitate a big life line! I spent two years at Google, and then I went to a startup for two years. It wasn’t long, but I learned a lot. Then I went to open source.
In fact, it is not easy to do open source. With a good mentality, it still needs some opportunities. Vue can be started slowly under the premise of such a large number of users. It is difficult to do open source professionally, especially as an individual, because the transition between open source and commercialization is difficult. Many open source projects to maintain, in the form of the enterprise so that they can better to get the raise or to provide one-on-one support for more enterprises, and individual is almost does not have such an opportunity, even if there is, the cost is large, so only through open source generating passive income (I don’t have such experience, Guess some personal sponsorship or advertising on the open source project website.)
For Vue, in fact, when the number of users is large (it is said that Vue has 150W + users), it creates a market for work, and there is domestic demand, and the ecology will rise. Some companies will also come to support Vue. Of course, derived from this, many people will produce relevant training courses, tutorials, templates, offline meetings and so on. These are all things that can be linked to commercialization.
It is also very important that the value generated by your open source project is perceived by the user.
“Personal opinion” : In fact, for the last point, I would like to add, especially big meaning does not mean that you must do a lot of user perception of open source projects, so against their original intention, I think every open source project must be to solve some pain points in the work. Just happen to you if made a relatively good coming out of the open source project, whether he has a lot of the value of user perception, he is worth you to give up work full-time maintenance, you can get some benefits by full-time maintenance this open source project (in money, fame, etc.), and, of course, home except mine! So I think you got it right when you first said, “Open source still needs some opportunity.”
conclusion
This article does not list all of the answers on the air, forgive my mind for remembering only so much. But for many of the answers I have heard, some are far away from me, some are close to me, I think it is very fruitful, looking forward to the next live mic answer ~ one more sentence! You big really is the front end of the top flow ah! An hour and a half live, 2.2w+ people watching!
I have set up a front end communication group. If you are interested, you can add my wechat Lpyexplore333 to communicate with me about front end technology