by 3princip · 5y ago · 0 comments
Perhaps romantic aspects could only be achieved when there are no third parties, just the programmer and their code. Working in or more importantly leading a team mandates a different approach by putting aside aesthetic considerations for more pragmatic ones that will satisfy all parties involved.
It's hard to be romantic in corporate environments.
I've seen some of my old code I wrote in the workplace ten years ago, going through the hands of many developers of various skill levels and with different ideas, and then getting back to me. Needless to say, it is pretty ugly.
Analyzing that, I found the real good parts mostly untouched. The parts that I though were great when I wrote them and make me feel ashamed today usually didn't hold up. The most butchered parts tend to be of the overly abstract kind. Interestingly, some of the complicated and clever stuff that most people advise against did well. If it does the job well, people will keep it and put it to good use.
You can code romantically in the workplace. You just have to realize your code will be under attack and it has to be strong enough to defend itself. Weak code is not beautiful anyways, so in the end, all that adversity will help make your code better and more beautiful.
On the topic of overly complex stuff not being touched, I find that's usually because no one understands it and hence others refrain from touching it lest it break.
I agree it's hard, but it's not impossible. One thing that heightens the experience for me is to:
Listen to movie scores while you program.
I first started this to help drown out other noises so I could concentrate. But, I soon realized that there's a lot of drama in the sound: there are highs and lows, chaos and order, fumbles and precision, brief pauses, slow times and fast -- the sound is just like programming!
One time, as the score was building my task was nearing completion. Just as I ran the program and saw that everything worked the movie score delivered a massive crescendo. It was so cathartic and I had never felt so much emotion while programming. I actually cried with joy. That's the closest thing I've felt to actual love while programming.
A few of my favorite scores are:
TRON: Legacy - https://open.spotify.com/album/3AMXFnwHWXCvNr5NCCpLZI
Interstellar - https://open.spotify.com/album/3B61kSKTxlY36cYgzvf3cP
Inception - https://open.spotify.com/album/2qvA7HmSg1iM6XMiFF76dp
Tuck it away for later use. If somebody wanted it enough to ask for it in a formal way, someone else would probably find it useful.
Not sure why, but I've always viewed code as a means to an end of solving a larger problem. I end up attached to the end result, and not the code itself.
I suspect this is one of the reasons I don't get very passionate about language features. Something that makes my life easier is nice, but I'm not one to argue about them. I've solved problems in Visual Basic to C with everything in between.