How to be a good programmer?
I am not talking about a great programmer or developer, but a good one. I feel like "great" leaves room for too many subjective opinions. On the other hand, I think we can all agree on the bare minimum of being a "good" one. First of all, a good programmer needs to be efficient and pragmatic. Given a new task or feature, it should be done to a good standard and check all the requirements. You should be able to get started on writing code without wasting time over-designing the architecture, which eventually leads to premature optimization and abstraction. In the end, you are creating a product for some kind of business, and customers probably don't give a f*ck about whether your code is clean or follows good standards. Just get something done and running.
That links to the next point: don't be too attached to your code. They're just text in the end. Being detached from your code helps you focus on the actual problem instead of the minutiae of the code. In your lifetime, it is highly likely that not many developers will read your code, unless you make the Linux kernel or something like that. However, this does not mean that you should never refactor your code, especially the code you write as the foundation for the whole company. Don't be too attached to your code, but don't be too reckless or over-optimistic about it either. If you're writing the next operating system, some intern will read it and submit a pull request saying "old code got mogged".
You'll also need to learn how to work with others, not just developers but also product managers, designers, marketers, your boss, or even customers. Explaining your code efficiently and listening to others' feedback is a must. I realize that most of the time, dealing with people is the true challenge of a programmer or an engineer in general. Juggling multiple feature requests and Jira tickets is probably not the most glamorous part of the job, but that is most your day.
Next, you shouldn't be too attached to a technology or a framework. Most of the time, these technologies evolve into higher-level abstractions, and you will get another pull request from your intern saying that "this framework is outdated, old man". It is great to be specialized in something, but you also need to move into other parts of software to understand the full picture. Be a polyglot. With a more general knowledge of the different facets of software, you'll be able to solve more problems and be more efficient. Then, having your best programming language or area of expertise is still highly relevant. Be an expert first before becoming a generalist. Having great fundamentals is also a must. Data structures and algorithms are language agnostic, so you might know every low-level or systems programming language, but if you still can't implement a linked list in Python, that's not a sign of a good engineer.
I am not a good programmer by any means myself. This is just something I strive to become. I am still attached to using Express.js or the standard HTTP client in Go even though faster solutions exist.