3 ms·
Oh goodness, I've been programming for 30 years and I'm still in this picture and I hate it. I have to fight the temptation to judgement all the time when I rea
by josephg 4y ago
Oh goodness, I've been programming for 30 years and I'm still in this picture and I hate it. I have to fight the temptation to judgement all the time when I read other people's code.
Their code uses too many classes? Bad code! Its overly factorized? Under factorized? Too many dependencies? Too much reinvention of the wheel? All these things are obviously evidence that whoever wrote this code is inexperienced (and they probably have deep character flaws).
I'm sure other people feel exactly the same way about my code, too. Its frustrating and dumb.
- vsareto 4y agoGood/bad code has changed radically over time, and there’s still a bunch of diverse opinions on it. It also means different things in different ecosystems. At the end of the day, the easiest way to deal with it is to find a social circle that shares your opinions. That’s the only situation where you get enough direct, useful feedback over time on whether something is good or not. This is actually better because you’re bringing the person back to the forefront instead of trying to judge code as objectively good or not
- epgui 4y agoFWIW, my learning velocity has typically been the highest when I’ve put myself outside of my comfort zone, in experienced teams. This could mean working with (competent) people who think differently, or working with a different language (my most formative was Clojure, as someone who had never even seen a lisp before), etc. Initially I bend over backwards in near-total deference, and over the course of a few months I start to feel like I’ve gained perspective. It’s the only way I’ve found to not carry the baggage of “my way” into new situations.
- epgui 4y agoI don’t know if that’s really something you can ever grow out of, honestly… And I feel the same way. But if it’s any consolation, it’s pretty much the same with any cognitive bias: you can never totally eliminate them, but you can make progress, and the first step is just knowing about it! :)
- hotpotamus 4y agoI work with 3 programmers who have worked together for 30+ years (probably a bit rare in any profession, especially tech), and if you talk to any 2 of them separately, they'll talk shit about the 3rd's code. I doubt they'd be surprised if I told them that.
- nerdix 4y agoThey probably talk shit about the others' code to their faces. After 30 years, they are probably like siblings. All the politeness and sugarcoating is gone. Say how you feel and move on. They are also probably intimately familiar with each other's preferences and they likely just don't care. "Bob doesn't like it when I do this but fuck him"
- hotpotamus 4y agoYeah, 2 of them bought houses in the same neighborhood and I generally think of them like siblings.
- roelschroeven 4y ago> I have to fight the temptation to judgement all the time when I read other people's code. Me too. But... Every so often it happens that I read bad code, with functions that are too long and complex or too short, or with misleading variable names, or a way too clever class structure, or whatever; cursing the person who wrote that code ... only to find out it was me who wrote that code. It makes me put things in a different perspective. I try to judge not too harshly.