

Only when you are in a good mood can you type good code. How should programmers maintain a good attitude?
This is called being in a good mood and doing something to be happy. Having positive emotions every day is positive for work life. If you have too many negative emotions and you don’t like anything, it will be difficult to continue working.
Programmers cannot pretend to be perpetual motion machines, we should be allowed a free range...
What are the effects of unpleasant negative emotions on programmers' coding? What?
First of all, the impact of negative emotions on programmers is predictable. Research scholars from several well-known universities conducted a survey among programmers. The most important consequences of negative emotions on programmers are: low cognitive ability, mental restlessness or disorder, low motivation and even quit work.
Among these, retirement is a very devastating consequence and often appears in investigations. Work withdrawal is a set of behaviors defined as an employee's attempt to remove themselves, temporarily or permanently, from temporary or permanent work assignments. The importance of this consequence lies in switching to another task, for example,
You spent 2 hours on Google investigating how to solve a similar problem, and you found nothing. The problem is addicting Your mind needs to do other things to clear it.
Or consider quitting development work, "I really started to doubt myself and question whether I am suitable to be a programmer", or even "I left the company."
Another consequence is frequent job-hopping. If programmers believe that interruption is the only solution, then interruptions can result from unpleasant processes that can impact the entire project.
Of course, these are not the most direct. The most obvious thing is that it leads to low code quality for programmers.
As expected from the focus of previous research, the most important consequence of unhappy programmers is poor code quality. Eventually, negative emotions will clutter the programmer's code, where more bugs can be found.
But it is also mentioned that the code is less effective, or the code becomes worse and worse and cannot follow the standard Design Pattern.
As a way to deal with this negative emotion, it is also very alarming:
Research has found some situations that damage task-related code bases, such as:
"I Deleted the code I wrote because I was a little angry",
Until deleting the entire project:
"I have deleted the entire project, and there seems to be no errors when starting again "
Removing these buggy codes seems to make programmers happy.
The main impact of happy programmers is-it makes them more confident, more creative, etc.
Programmers don’t just type code! You must learn to discover happiness by yourself. Of course, a person's energy is limited after all, and sometimes one does have to give up some things because of study and career. Next, let’s talk about how to keep yourself in a happier mood.
1. Exercise: Buy a good pair of running shoes and run fast, boy! My studies have been quite heavy recently. I used to insist on running every day, but now I haven’t run for a long time. Be sure to remember to run a marathon wearing the Legion cape from "Attack on Titan"! Or go to the gym. Maybe we can even talk about beautiful women or handsome men. You can also participate in cycling, buy a road bike with a carbon fiber frame, and invite other riders to go riding together on the weekend and enjoy the feeling of the wind blowing between your teeth. Invite a few friends to play football or basketball together and sweat it out.
2. Foodie: Think about what fun things there are around, and the cheap and delicious places hidden in the streets and alleys nearby. Food is also a good thing that can lift your mood. Of course, health is also important. You can also learn to cook by yourself. Making barbecue and cakes by yourself is quite a sense of accomplishment. Or you can make an appointment with a few like-minded friends to have a good meal together, and you can also have a pleasant chat and participate in group activities.
3. Literary fans: Check out what good movies there are in Yichui Cinema. Those with a slightly higher artistic talent can watch operas and dramas. Go to an online store and buy a few books of your favorite genre, learn guitar, piano, painting, etc., and do whatever you want.
4. Photography: It has become more popular in recent years. When you go out, you can sometimes see a bunch of guns and cannons. Buy an entry-level mirrorless camera Sony α6000 with a dog head, and learn to take pictures of people, landscapes, and cats. . The topic owner can join the lofter community or 500px, which has various photography masters. There are some photos of welfare private houses in Lofter, so you can find them yourself.
5. Travel: Set your own small goals, and arrange to go out for a walk every once in a while. The so-called traveling thousands of miles is sometimes more informative than reading thousands of books.
6. Raise animals and plants: If you feel you have plenty of time and experience, you can raise a pet; if you don’t have enough time, you can raise some durable plants, which can freshen the air and change your mood. Why not.
Of course, if you think that playing games all night is also a way, then I have nothing to say. That’s all that comes to mind first. Everyone’s lifestyle is different and their ability to self-regulate is also different. The most important thing is to maintain a good mood and devote yourself to daily work and life. Programmers need to be in a good mood to type good code.

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

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

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics





On March 3, 2022, less than a month after the birth of the world's first AI programmer Devin, the NLP team of Princeton University developed an open source AI programmer SWE-agent. It leverages the GPT-4 model to automatically resolve issues in GitHub repositories. SWE-agent's performance on the SWE-bench test set is similar to Devin, taking an average of 93 seconds and solving 12.29% of the problems. By interacting with a dedicated terminal, SWE-agent can open and search file contents, use automatic syntax checking, edit specific lines, and write and execute tests. (Note: The above content is a slight adjustment of the original content, but the key information in the original text is retained and does not exceed the specified word limit.) SWE-A

The Charm of Learning C Language: Unlocking the Potential of Programmers With the continuous development of technology, computer programming has become a field that has attracted much attention. Among many programming languages, C language has always been loved by programmers. Its simplicity, efficiency and wide application make learning C language the first step for many people to enter the field of programming. This article will discuss the charm of learning C language and how to unlock the potential of programmers by learning C language. First of all, the charm of learning C language lies in its simplicity. Compared with other programming languages, C language

520 is approaching, and he is here again for the annual show of tormenting dogs! Want to see how the most rational code and the most romantic confession can collide? Let’s take you through the most complete and complete advertising code one by one to see if the romance of programmers can capture the hearts of your goddesses?

本篇文章给大家介绍如何用前端代码实现一个烟花绽放的绚烂效果,其实主要就是用前端三剑客来实现,也就是HTML+CSS+JS,下面一起来看一下,作者会解说相应的代码,希望对需要的朋友有所帮助。

Last week we did a public welfare live broadcast about "2023PHP Entrepreneurship". Many students asked about specific order-taking platforms. Below, php Chinese website has compiled 22 relatively reliable platforms for reference!

Programmer's job responsibilities: 1. Responsible for the detailed design, coding and organization and implementation of internal testing of software projects; 2. Assist project managers and related personnel to communicate with customers and maintain good customer relationships; 3. Participate in demand research and project feasibility performance analysis, technical feasibility analysis and demand analysis; 4. Familiar with and proficient in the relevant software technologies for delivering software projects developed by the software department; 5. Responsible for timely feedback on software development situations to the project manager; 6. Participate in software development and maintenance Solve major technical problems during the process; 7. Responsible for the formulation of relevant technical documents, etc.

Download and install historical versions of VSCode VSCode installation download installation reference VSCode installation Windows version: Windows10 VSCode version: VScode1.65.0 (64-bit User version) This article

Terminal emulators allow you to emulate the functionality of a standard computer terminal. With it, you can perform data transfers and access another computer remotely. When combined with advanced operating systems like Windows 11, the creative possibilities of these tools are endless. However, there are many third-party terminal emulators available. Therefore, it is difficult to choose the right one. But, just as we do with the must-have Windows 11 apps, we've selected the best Terminals you can use and increase your productivity. How do we choose the best Windows 11 terminal emulator? Before selecting the tools on this list, our team of experts first tested them for compatibility with Windows 11. We also checked them