In my current role, I have to sometimes write T-SQL or PL/SQL stored procedures in 80's/90's tech, sometimes scripts in Groovy, sometimes starightforward Java and sometimes code that interacts with relatively more modern tech like Kafka. Do I prefer some over others? Yes. Do I spend equal amount of care towards quality of code? Also yes.
A good programmer will always try to do a good job irrespective of their level of passion with the stuff they are working on. Does enjoying a specific piece of work more produce better code? Maybe because I would have more fun writing it. But I doubt most of us gets to do the exciting work everyday. Ironically, if you are relying that much on passion, you might get those who cut corners on unexciting work. Rely instead on good programming skills coupled with professionalism.
A good programmer will always try to do a good job irrespective of their level of passion with the stuff they are working on. Does enjoying a specific piece of work more produce better code? Maybe because I would have more fun writing it. But I doubt most of us gets to do the exciting work everyday. Ironically, if you are relying that much on passion, you might get those who cut corners on unexciting work. Rely instead on good programming skills coupled with professionalism.