Promote personal website: Bougie's Blog
Graduated a year of cross-professional Meng new, in the pull on the resume of Wuhan Millet, not two days, resumes by the HR sister marked as "inappropriate", thinking that their own experience of this record and millet is not seen. Another two days, about eight or nine o'clock in the evening, HR sister suddenly called to say the invitation to interview. It was a little strange.
From home to Millet has a two-hour drive, do the bus two layer is a bit like vomiting. Thought to be a programmer for a year, did not learn anything profound body but unconsciously become so bad, at the same time also did not hold too much hope for the interview, because of their own strength and millet recruitment requirements or a poor grade. Enter Xiaomi main entrance, the left side is Xiaomi Information Department, the right hand side is WPS. Think of a recruitment group in a short time to know the WPS of the Xiaogan Fellow in the next door to work, is also a kind of fate haha.
Written
Before the interview to do a pen test, the topic is probably:
-
Crawler engine is how to crawl the page
- The process of rendering a page in a browser
- User Input URL Address
- browser resolution URL resolves host name
- The browser converts the hostname to the server IP address (the browser first looks for the local DNS cache list and then sends a query request to the browser's default DNS server to cache)
- The browser resolves the port number from the URL
- The browser establishes a TCP connection to the target Web server (three handshake)
- The browser sends an HTTP request message to the server
- The server returns an HTTP response message to the browser
- Close Connection Browser parsing document
On the Internet to find the standard answer, his answer is such a meaning, but not detailed.
-
Four ways to program asynchronously
See this question instantly feel Ruan teacher is simply The godfather of China's front-end, Ah, the interviewer's ideal answer should be Ruan teacher This article: 4 ways of JavaScript asynchronous programming. Oneself specially saw, also summarizes in my face the question summary inside: Front-end interview partial door question summary. But the memory is too poor or answer partial, the heart hates ah.
-
Explains the differences between synchronous \ Asynchronous, blocking \ non-blocking, parallel \ Concurrency
Here are some additions to parallelism and concurrency: parallelism refers to the two or more things that occur at the same time in an operation. Realistically, this happens only when the system CPU has two independent cores, so that a different electrical pulse signal is emitted at any moment. Concurrency means that at least two transactions occur at the same time period. Note, however, that the transaction here is a (high-level) task, not a (low-level) operation. So, make a distinction between concurrency and parallelism.
-
JS to achieve the value of thousands of bits
The headline test came across:number.toLocaleString()
-
What should be noticed in multi-language website construction
At first, I thought that many languages were, and python java php What, the interviewer said it was the language of each country.
-
React non-parent-child, sibling component transfer value
State management: Redux, MOBX, etc.
-
What is the nth bit of "123456789876543212345678987654321 ..."
javascript function getNum(n) { let num = 1, flag = true for(let i = 0; i <= n; i++) { if(num === 1) flag = true if(num === 9) flag = false flag ? num++ : num-- } return num }
Time is a little tight careless to i <= n write i < n , embarrassed, blame oneself not careful it.
The time limit is 20 minutes, and two or three preface are not clear.
Interview
The interviewer is very kind and speaks fluent and sure, and feels like a very well-educated Daniel. The following question order is not the order in which the interviewer asks:
-
What is cached on the front page of the browser open?
Me: Backend Cache Control sets the resource expiration time by setting the response header for caching some static resources
Interviewer: And what?
Me: DNS Caching
Interviewer: What's back-end cache
Me: Cache the session
Interviewer: And what?
I:... I can't answer that.
-
Talk about the life cycle of Vue.
A year's Vue is not white, smooth from the beforeCreate to go through destroyed
-
Did you use koa,express for your blog?
I: Used, my personal blog was originally used Express, back to KOA
Interviewer: Why change? Does Express work well?
Me: Koa route with async and await processing, will not fall into callback hell
Interviewer: Express routing can also be encapsulated into async\await, have you ever tried?
Me: No ...
-
What server do you use for your blog?
Me: Using the node server, PM2 do process daemon
Interviewer: The code is put directly on the run or compiled after the
Me: (a face, the script language can also compile??? ) to run directly
Interviewer: What is the server system?
Me: Windows Sever ... (feeling the interviewer laughs)
After checking, Segmentfault's big boys also said that node JS does not compile: node. js code running on the server needs to be compiled? , I want to ask the interviewer how to compile AH.
-
Have you ever realized promise?
Read a lot of articles, myself also wrote, but asked the details or the answer rotten.
-
Have you ever written a Webpack plugin?
Me: No ...
-
What happens after you have a new object?
-
Have you ever written a responsive website?
My personal blog is responsive, mainly the media query and REM control font size.
-
Talk about prototypes and prototype chains.
-
Have you ever written a more complicated regular?
-
Have you ever encapsulated a Axios?
-
Separate system, one request error, how to interrupt other requests?
-
How do I add login verification to the Axios?
-
Rollup ever know?
-
Why rollup packing redundancy code less?
-
Is there a combination of native encapsulated RN components?
-
Why use the map without Baidu map?
-
How do I debug breakpoints in react native's JS code in Android Studio?
......
and n more questions to remember not very clear ...
Then the interviewer asked some other things, what do you think of Xiaomi? 995 work, overtime no overtime can receive and so on. I thought that millet in the general of Thunder under the leadership of a really spell AH.
Interview chat for one hours, a lot of questions answered rotten, this year should be and Xiaomi missed. Also clearly see the lack of their own strength. I am very grateful to the interviewer for giving me this interview opportunity.
Remember a cool Xiaomi front interview