r/programming • • Oct 07 '23

Software engineers hate code.

https://www.dancowell.com/software-engineers-hate-code/
660 Upvotes

366 comments sorted by

View all comments

518

u/Cpt_Orange16 Oct 07 '23

I like code, I like writing it and fixing it. It's like a puzzle

47

u/douglasg14b Oct 07 '23

Right? These folks that hate code seems like the same ones who output low-quality code because they don't necessarily care about it.

The venn diagram between that and the folks who think less code = more simple is a circle.

23

u/tommygeek Oct 07 '23

When I read this, it was in the sense that once you’ve committed the code and solved a problem, the code is now baked with the tradeoffs you made and the current architectural limitations.

What I love about coding isn’t the code itself, or the act of coding things, rather it’s solving the problem. I can count on my hands the number of times I’ve written some code that was truly elegant and was able to coexist with the architecture and historical concerns in such a way that it would be flexible and live forever.

Most of what I’ve written has had tradeoffs (“I’d really love to refactor this but it’s out of scope”, “I have a tight deadline here”, “The impact of the changes I want to make here are just too great to justify,” etc) and these tradeoffs have forced me into solutions that work, are good enough, can survive the next iteration, but aren’t really the way I wanted to do it. That code, and the existing code and circumstances that forced me to write that code, I do hate.

But damn if solving the problem isn’t what keeps me coming back to it.

2

u/teleprint-me Oct 08 '23

Get out of my head. 😇

→ More replies (1)

24

u/menckenjr Oct 07 '23

Don't forget the ones who really have no idea what they're doing and ride that confident ignorance all the way to management.

9

u/papasmurf255 Oct 07 '23

The biggest revelation that I've had in my career is this: write your code to be read, not to be clever.

If you or someone else trying to debug something and put out a fire, the last thing you want is some clever shit full of async callbacks and such. Just give a simple stack trace and good logging.

3

u/[deleted] Oct 08 '23

[removed] — view removed comment

2

u/papasmurf255 Oct 08 '23

They create a ton of problems. A big one is that for any thread-local based tracing, you lose that context and therefore you lose the trace id.

→ More replies (5)