Having done a math PHD and now working as a programmer I find math proofs and programming semi-similar. Though I think programming is less "relaxing." In mathematics if you have an argument that works and isn't insanely complicated you can call yourself victorious. You can look for a simpler method if you want but there is really no imperative to do so. In programming there is almost always a better way to solve a given problem and the differences in speed matter alot.
In programming there is almost always a better way to solve a given problem and the differences in speed matter alot.
Do you mean development speed or execution speed? Either way, I'd guess it depends a lot on the application you're working on and/or the culture of your organization.
Programming is quite a remarkable activity: