61 points · by simonharrer · 2y ago · 28 comments
Knowing what problems you actually have usually requires human judgement after seeing the situation.
And everyone refactors to their own understanding and intuition.
And my intuition or understanding might not be identical or as advanced or as simple or insightful as yours. (EDIT: Your understanding that things are SIMPLE might be more advanced than mine, so I don't really understand it as much as you do.)
So we have taste in software.
I would rather not maintain a system that was built on quicksand, where dependencies cannot be upgraded without breaking anything.
One person's super elegant architecture is Not Understandable™ to someone else.
To each their own. I prefer to maintain a bad system because:
- I can make it better
- If something doesn't work as expected it's because of the current state of the system, not because of my lack of ability
On the other hand, I don't really like to maintain very good systems (crafted by very intelligent people) because:
- There's little I can do to make them better (I'm a regular Joe)
- If something breaks it's because of my ability as a programmer (all the shame on me)
So, it's like playing in two different leagues (but the paycheck is rather more or less the same, so that's nice).
Your second category is more interesting to me - you're interpreting a system is hard to understand and work on as being made by super intelligent people. I would interpret that as a system that was badly designed, unless you're doing some new and revolutionary thing (you're probably not). A system that has been designed in such a way that only someone with deep knowledge of the thought process can work on it has been designed badly. I know this because I have in the past designed many such systems. Coming back to them a few years later even I hated myself for it, so I'm deeply sympathetic to the people who had to work on them who weren't me. Thankfully in most cases I got to task a few people with ripping out the system and replacing it with something better.
I read it as the opposite. GP says that if a system is good, it needs no improvement, so there's no fun in refactoring and redesign.
And those good systems are easy to understand and work no, so when something breaks you can't blame it on the design. You can only blame yourself.
But funny: I was trying to think of "good" systems that I ever worked on, but drew a blank. It can't be that I only worked on bad code, right? Maybe this is one of those "when everyone around you is an asshole..." situations!
But now that I actually think deeper about it, the reason I don't remember doing a lot of work in good systems is because I barely had to touch them. They just worked, scaled fine, required very little maintenance.
And on those good systems, building new features was painless: they were always super simple and super familiar to newcomers (using default framework features instead of fancy libraries), because they never deviated from the norm. Things would also pretty much never break because there were failsafes (both in code/infra/linters/etc and in process, like code review).
At my previous job the other person working in our backend was the CTO, which worked part-time and had lots of CTO attributions. I remember spending about 20 hours tops in the span of 2 years on that backend. It was THAT good.
It might be "cargo culting" but I am curious what properties of that good system were true?
turns out that's nearly impossible, in most cases (businesses change)
I definitely take a more iterative approach now. There's a short spike window to architect the rough plan, get buy in from other engineers, and as long as we feel like we're directionally going the right way and we're not digging ourselves into a corner, we ship it.
Sometimes that has resulted in redoing things (we made a mistake in our thinking), but those redos are minimal compared to the weeks/months we may have spent over-architecting something
It depends on the whole project and circumstances. Usually I go with specifics and later refactor. The reason is simple: too often did I experience the case, that in order to change something in view, we had to alter the "generic layer". On the other hand, how can you build something generic, when you have not at least 2-3 use cases?
"But we will never refactor" - I am one of the very few, who do just that. I worked my way up from dev to senior manager in order to give people the freedom I always missed.
Getting things to glue together in the right way is a challenge though which is probably why you want it to be data driven. But inevitably you need some flexibility or logic in your data processing so you end up building an expression engine and we get into "creating a inner system/platform effect".
One of the anti patterns is "making the system too complicated" Insightful!
The project sounds successful overall to me. Yes, they had to do more than they thought going in. That describes most engineering efforts.
Does the author think that operating system API churn just won't affect native somehow? Or be improved when even more of your application surface area is in the native space?
Thinking about coding lacks a connection to a scientific terminus point. Under the hood it's all binary and devs use a performance mindset. Making a list of prohibitions doesn't fit.