


A brief talk about programmers who work hard but don’t use their brains: Why have you wasted so many years
There are too many programmers who only envy other people’s achievements but cannot see other people’s sweat. This has been mentioned in countless chicken soup articles; then There are also many people who work hard, work overtime, and are exhausted, but they still don’t have very good results. I want to say that except for some people here who are unlucky, most of them are "working hard but not paying attention" ( Or "use force without thinking"), wasting your youth in vain.
Old rule, in order to avoid some trolls making random cannons, let’s set up the premise first. The achievements mentioned here refer to being able to get a good position and salary, and being able to live a decent middle-class life. That is, ordinary people can achieve real results through hard work. The realm that can be achieved; if you don't talk about how to become Robin Li and Ma Huateng, you can only vomit three liters of blood and sigh that God will not bless you.
The space on Weibo is limited, so I will share my understanding today.
1. Not good at summarizing and summarizing
For example, two people, A and B, are engaged in building corporate websites. A, also wants to make more money, often works overtime, and finishes one task after another, and another one after another. After working for five or six years, I still can only do basic business website building, my ability is stagnant, and I lament my fate; B, I think more about everything, do two or three, and wonder if there are so many repetitive tasks. Take out the code, sort out some tools, and make a few more. These tools are mature. Can you create a simple automatic publishing platform? If you continue to work on it, you will understand the requirements better. Can the publishing platform be more flexible and support templates? Will the sex be better? Later on, A is still working overtime to build the website, and B, relying on this system, has become the core of the company; as for the net worth, just think about it.
2. Keep your head down and don’t look up at the road
I have also encountered this dilemma before. When you devote all your energy to a field or a product, you will feel that this is the most important thing, the most important thing for the company; The value of what is most important to you personally is self-evident; but occasionally, for some reason, you relax, break away from this product, and look at it from a higher perspective, only to discover that what you think is actually the most important The most core things may not be that important; the things you think are of greatest value may not be of that great value; in recent years, I have met many such people with high professional quality and hard work, all of whom are working hard on something that is not important. It is not very important, or even very problematic projects, but the people involved are still demanding resource cooperation. From the company's perspective, this is regardless of the overall situation, and may even affect the development of truly important businesses.
The problem here is that when new opportunities and new changes arise, they ignore the opportunities and are reluctant to part with the fruits of their labor; when problems and situations arise, they are unwilling to make a prompt decision and always want to try again and invest again, thus sliding into the abyss. ;
3. Don’t ask for deep understanding, blindly pursue new things
There are many young people who are “good” at learning. I’m sorry to say that “good” must be in quotation marks. They are keen on following popular technologies, fresh products, and are interested in new things. They are very sensitive, and they can indeed figure out some tricks quickly; but! But they always lack the understanding and judgment of basic issues;
For example, if they encounter database load problems, they have not yet fully understood database index optimization Principle: I heard that mongodb is good, so I quickly change it; then I heard that redis is good, so I deploy one; if I hear something is good, I build one; this kind of person seems to know everything and knows a little about everything; but when I encounter problems, I lack analysis. Ability is just a matter of guessing. If you get it right, you can solve it; if you get it wrong, you will continue to get confused. You can see that they are always studying with the latest reference books. No matter how you look at them, they should be good young people who study hard. But after many years, Basic technical issues are still vague, and the resume is full of various proficiencies, but still unable to qualify for some positions that really require technical literacy.
4. Self-limitation, timidity
I also have some friends like this. There are no problems in intelligence or ability. The problem lies in mentality; after only working in a certain field for a few years, they think they are not good at other fields. After working in technology for several years, I thought I was not good at products; I first set up a circle for myself, and then developed in the circle cautiously, ignoring things outside the circle, and then I thought I could become an expert in the field in this way. Experts, it’s a pity that the world is changing faster and faster, and cross-border has become a popular way of competition. If you don’t want to cross-border, others will cross-border to rob you. There are too many such examples, so when they encounter those cross-border impacts, the problems of narrow vision and limited thinking are undoubtedly exposed.
5. Short-sighted and eager for quick success
When I see a company that pays well and offers a good price, I jump in without hesitation; I don’t even check whether the company is reliable enough, whether the industry is in the right direction, and whether the company owner has credibility; after three to five years I found that my former classmates had completely changed, and when I looked at my resume, it was terrible.
There is such a person, who is known as a career killer. Looking at the complicated records on his resume, which company he went to, which company ended, is this person’s life bad? Some are, and some are really not. They choose to put a price on themselves every time. The highest employer; but in fact, his ability is not that high, and he can offer such a high price to a person who is not that high. This company obviously has problems with its employment, so collapse is inevitable, so most of these people will not It is worthy of sympathy, it is caused by my own short-sightedness.
It’s not that it’s bad to ask for a high price, but you should at least evaluate whether the company has long-term development, whether the industry it is in is a tailwind industry; whether their boss has credibility and understands talents, and then you should also evaluate yourself , do you have this ability, can you resist such a role, and whether your superiors and colleagues can get along well with each other, and can they bring enough help and improvement to you?
If you cannot make a comprehensive assessment, At least know and take the long view.
Think of these first. In fact, I have made many mistakes here myself. Moreover! I am not diligent enough, so I wasted so many years.
Receive LAMP Brothers’ original PHP video tutorial CD/"Essential PHP in Detail" for free. For details, please contact the official customer service: http://www.lampbrother.net
http://yun.itxdl.cn/online/ cto/index.php?u=5 This, is a great http:// yun.itxdl.cn/online/server/index.php?u=5 Mobile Internet Server Side Development Course
http://yun.itxdl.cn/online/weixin/index.php ?u=5
WeChat Development Course
http://yun.itxdl.cn/online/yingxiao/index.php?u=5
Micro Marketing Course http://yun.itxdl.cn/online/phpcms/index.php?u=5phpcms
Secondary Development Course
|

Reasons for PHPSession failure include configuration errors, cookie issues, and session expiration. 1. Configuration error: Check and set the correct session.save_path. 2.Cookie problem: Make sure the cookie is set correctly. 3.Session expires: Adjust session.gc_maxlifetime value to extend session time.

Methods to debug session problems in PHP include: 1. Check whether the session is started correctly; 2. Verify the delivery of the session ID; 3. Check the storage and reading of session data; 4. Check the server configuration. By outputting session ID and data, viewing session file content, etc., you can effectively diagnose and solve session-related problems.

Multiple calls to session_start() will result in warning messages and possible data overwrites. 1) PHP will issue a warning, prompting that the session has been started. 2) It may cause unexpected overwriting of session data. 3) Use session_status() to check the session status to avoid repeated calls.

Configuring the session lifecycle in PHP can be achieved by setting session.gc_maxlifetime and session.cookie_lifetime. 1) session.gc_maxlifetime controls the survival time of server-side session data, 2) session.cookie_lifetime controls the life cycle of client cookies. When set to 0, the cookie expires when the browser is closed.

The main advantages of using database storage sessions include persistence, scalability, and security. 1. Persistence: Even if the server restarts, the session data can remain unchanged. 2. Scalability: Applicable to distributed systems, ensuring that session data is synchronized between multiple servers. 3. Security: The database provides encrypted storage to protect sensitive information.

Implementing custom session processing in PHP can be done by implementing the SessionHandlerInterface interface. The specific steps include: 1) Creating a class that implements SessionHandlerInterface, such as CustomSessionHandler; 2) Rewriting methods in the interface (such as open, close, read, write, destroy, gc) to define the life cycle and storage method of session data; 3) Register a custom session processor in a PHP script and start the session. This allows data to be stored in media such as MySQL and Redis to improve performance, security and scalability.

SessionID is a mechanism used in web applications to track user session status. 1. It is a randomly generated string used to maintain user's identity information during multiple interactions between the user and the server. 2. The server generates and sends it to the client through cookies or URL parameters to help identify and associate these requests in multiple requests of the user. 3. Generation usually uses random algorithms to ensure uniqueness and unpredictability. 4. In actual development, in-memory databases such as Redis can be used to store session data to improve performance and security.

Managing sessions in stateless environments such as APIs can be achieved by using JWT or cookies. 1. JWT is suitable for statelessness and scalability, but it is large in size when it comes to big data. 2.Cookies are more traditional and easy to implement, but they need to be configured with caution to ensure security.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
