I have been working in my current unit for nearly a year. The high intensity of iteration combined with the lack of self-decompression have led to my whole sub-health, exhaustion and insomnia. In addition, some “PUA” practices of my leaders made me very tired and anxious, and some time ago, I had the idea of job-hopping. From now, at that time his heart “imbalance”, need “repair”.

This is the 9th day of my participation in Gwen Challenge

In fact, as a programmer “old man”, should be troubled by the workplace office, but sometimes also “do not know the true face of lushan, only the body in the mountain”. In fact, all of these are closely related to the inner self (the inner self), polishing the composition of the inner self is also a process of mind cultivation.

Chance coincidence, then decided to take this opportunity, to the career of the workplace in recent years some of the individual thinking and comprehension to do a summary.

Ideal vs. reality

Ideal and reality are discussed from childhood. Ideal is a kind of goal or desire that you make up according to your own cognition. Reality is what you experience in real life.

There is an inherent gap between reality and ideal because of the fundamental defects in personal cognition and prediction of the future. This is true in life, as it is in the workplace.

Ideal vs. Reality in the workplace:

VS

You will find that the harmony, the smiling face, the consideration for each other, and the togetherness that you aspire to can only be achieved in small circles. You will find that you inevitably deal with those who do not share your values. You will find that there will always be those who only think for themselves and those who do not respect you.

Here’s the reality of the workplace:

  • You and the company need each other in an employment relationship. Ensure that you are competent and productive. This is the prerequisite for your salary. Do a good job, you pay for it, don’t bullshit; You did not do well, the leadership said you a few words don’t hypocritical talk back, to find a way to do well next time.
  • If you feel uncomfortable (low pay, whatever) and want to leave, don’t feel guilty about the company. It’s just an employee relationship, not a filial one.

Ideal gives you direction, reality makes you see your way.

Balance business value with self-actualization

Sometimes you receive a requirement that you need to get online as soon as possible, and the development may have two solutions:

  • Scheme one, does not follow the system design specification, the code quality is relatively low. The advantage is that it is fast and bugs are less common in existing businesses.
  • Plan two, a better plan, better scalability and better design. The disadvantage is that it takes more time, but will improve the development of personal skills (need to consult data for some research, etc.).

Faced with these two options, what would you choose? The first plan, such a low plan, no difficulty, who can. The second option is to demonstrate your technical competence and skill selection.

I’m sure many people would choose the second option. In fact, the first solution is more business value because the cost is lower. The second is simply more in line with your personal worth (self-actualization).

I think in this context, we should choose the first option. Because business value is our number one consideration. Recognize priorities

It’s okay for you to make some personal technical additions in context, but putting the business at risk is not acceptable. So you need to balance the two.

Have the courage to do the right thing

I remember that when entering a page in the project, I need to scroll to the corresponding position according to the situation. I worked well before, but later in the new function iteration, there was a problem of inaccurate positioning.

This function is implemented using jQuery and is scrollTop with offset().top minus a fixed value as an element at a location. The source code looks like this:

$('.mark-element').animate({
    scrollTop: top - 2.5 * this.commonService.rootFontSize()
});
Copy the code

The offset method is defined as: Get the current coordinates of the first element in the set of matched elements, relative to the document, Distance is relative to the document, and our scrolling is in some box in the body, which explains why we need to subtract extra fixed values.

No doubt a patch was added to the previous error (minus the length of the extra calculation). How can we fix this:

  • Scheme 1: Add a judgment branch (ifThe statement separates the iteration of the new functionality from the old functionality), which has the advantage of keeping the previous functionality unchanged, but has the disadvantage of making the entire logic more bloated. But the cost is low
  • Plan two, let’s get rid of the wrong one and replace it with the right one.

How to choose? My colleague advised me to choose the first option. After much thought, I finally chose the second option, because this functional principle is not complicated, we should have the courage to do the right thing

It’s not just stress resistance

One issue that is often stressed in the workplace is coping with stress. In fact, I personally do not like this word, I think the resistance to pressure is just the appearance.

The essence of resisting pressure is your attitude, wisdom and responsibility.

For example, do you complain about how you manage your time when you have too much work to do, or do you carefully analyze the details of your work and report any problems to your supervisor? In fact, there is really a problem of leadership will not embarrass you, to have a good state of mind, calm, steady.

Or how do you react to someone’s unintentional verbal abuse of your work that makes you feel disrespected? Do you do it in anger or in peace? At this time, a wise person will face calmly, whether you did not understand or I did not explain clearly, another way to say more, what is the harm?

For example, if you are willing to take on some difficult tasks. When the situation allows, some responsibility can be very helpful for your personal development, both in terms of your personal mentality and technical ability.

So it’s not that hard. Take it easy. Take it easy. Take it easy. If you can’t, try meditation or meditation.

Work is a life

Estimate some readers see this section want to diss me, don’t worry, let’s calculate an account.

In a 24-hour day, 8 hours are spent working alone, 8 hours are spent sleeping, and how much of the remaining 8 hours are left over for the family after commuting time and lunch time at work?

So it’s no exaggeration when I say work is a life. Because half of your youth to the workplace, so the workplace as life is a kind of wisdom is also a kind of helplessness.

If your work life is filled with resentment and intrigue, if you allow some negative emotions to dictate your day at work. Then there is no doubt that your day will be dull.

If you love life, you should think of your work as a continuation of your life, just in a different place. It takes wisdom to think of your company as another “home”, where you complain less, enjoy the moment, and be friendly with your “family”.

The last

The above are just the tip of the iceberg, but there are many other aspects that test your wisdom, patience and freshness. All these things need to be refined, because everyone wants to make their life more exciting.

Behind all this, mind cultivation is vital.

Because programmers face greater workplace challenges and psychological pressure, they need to pay more attention to their own polishing and cultivation.

Finally, the paper come zhongjue shallow, must know this to practice.

Thanks for reading!