When it comes to being a programmer, you should aspire to be the best that you can be. This applies to yourself as a person and as a developer in your career. While you don't have to share all the characteristics, you should at least still aim and improve as much as you can.
Patience is the most important trait to becoming a great developer. There will always be situations where you get stuck while programming, the only way through it is to endure and keep working hard at the problem at hand until you solve it.
Programmers are extremely skilled and creative individuals. Many times on the job, the answer that you are seeking isn't straight black or white, but instead, the problem requires you to think outside of the box and from a different angle or perspective. If you want to develop into a more successful programmer, you need to adopt this sort of mindset when approaching problems.
As a programmer, you will spend most of your time working alone. This brings us to self-discipline. It is essential that you stay focused and committed to your work at hand. You need to stay motivated and keep a clear mind all the time, no matter how much you are struggling.
A passion for learning
A good programmer should be curious and have a deep love of learning new things. Since technology is ever-changing, this requires developers to constantly adjust and adapt to the latest tech and trends.
There we are, the most valuable characteristics to possess as a programmer. Please don't feel discouraged if you don't share all of them, and the fact of the matter is that you don't need all of them to be a great programmer. The most important thing is that you have passion for what you do and that you keep on learning and striving to be the best that you can be.