This article has participated in the weekend study program, click the link to see details: juejin.cn/post/696572…
After I got up, I found that the article about taking the offer which I sorted out yesterday was really popular, and it was also recommended on the home page
Make me this pressure is a little big ah, can never water!
Enter a month I and Tencent T4 big guy learned what?
First I throw out my feelings:
This move is totally right! It’s tiring and challenging.
Very worried about this water, or insist on lifting up.
The biggest progress has been in design thinking and programming habits.
I and the big guy think the programming language itself is not difficult, no matter what language, for a beginner programmer, may learn about 2 months, can master the use of the language. Programming language is a tool, is a weapon, is the way to achieve; And the programmer’s own thought and experience is the real labor force, is the internal work, is the value.
What really separates a good programmer from a bad one is not just familiarity with the programming language (tool), but design ideas, fit in with the business, scalability, and whether the problem is really taken into account.
The same list of a home page, in different orders of magnitude of traffic is the need to have different solutions, how DB and Cache use together, how to agree page turning rules, how to do the front and back end Cache, Cache update mechanism is what, and so on.
One reason to worry about this article is that I’m not going to write specific code and I want to show you what I’m trying to say. I’m afraid I don’t have the writing ability yet
Here are a few scenarios that change the thinking of programming:
-
Define data structures: Our business has both interface data and data that needs to be pushed directly to the client. First, the structure is defined, and there are two types of fields in the structure, one is userID, timestamp and other fixed fields; One is extra fields, where all extensible fields are added to Extra based on the business scenario.
-
Do what one can: The new demand has the function of bullet screen. What immediately occurred to me was that I used THE PHP Swoole framework to build WebSocket and realized the bullet screen function on the Web side before, but this proposal was immediately denied by the leader. The reason is: a small number of users can implement it themselves, but it is difficult to ensure stability of the service when the traffic is up. If something goes wrong, it could be catastrophic. Finally, we chose Tencent Cloud’s mature IM solution.
-
Find the crux of the problem: My old habit was to get the requirements and go through them on each page to figure out a solution. My thinking is basically based on a requirements document or a product prototype. Write code like a running book. But the big guy’s style is, after getting the demand, as abstract as possible. The core business is sorted out, the early will not be in accordance with the product documents to write code. The boss will extract the business service layer code according to the core requirements, decouple it as much as possible, and then sort out the product prototype, write the interface according to the prototype, and call or reuse the business service layer code he abstracted.
-
Don’t be afraid to make mistakes: The premise is that the development process must not affect the production environment. In the process of development, only by constantly trying, can we make progress. If we always use familiar technical points, we are likely to be complacent and difficult to make progress. Don’t set the ceiling for yourself, no one is the authority of the problem, boldly try. The solution that big guy gives me is not necessarily optimal. In the process of promoting the project, I will constantly optimize the business logic, and take the initiative to communicate with the boss and product manager if I find unreasonable.
I also welcome you to read what I mentioned at the beginningThe article of fire: how does the back-end engineer take down Tencent T4 big guy in a night
Hope this article is not water, welcome everyone to leave a comment, express oneself opinion ~