by 29athrowaway · 6y ago · 0 comments
- Having an accumulator (abacus)
- Accumulator with operations (calculator)
- Multiple registers with more complex operations (early computers with plugboards)
- Stored program computer (abstraction over the plugboards)
- Imperative programming (simple abstraction over operations + registers)
- Procedures, Functions, Structures
- OOP, functional programming, and beyond.
Why do we keep making layers of abstraction? reusability.
We want abstractions that reduce effort by making code reusable.
But abstractions are only a tool, using the tool correctly is on the programmer.
Code is written once, read many times. Languages that focus on "easy to write" are a trap. Languages that focus on "easy to reuse" are what you want.
And on a side note: Never let juniors anywhere near the database design without supervision by the team/seniors. They won't learn anything that way, and they will inevitably make a mess.
I think this holds true in software development teams as well.
When you indoctrinate new developers, you should delegate mentorship to the best* performing teams, so new developers can assimilate good practices and develop an intuition for how thing should work.
I think this is much more valuable than giving them grunt work.
*: just like with genetic algorithms, picking the right fitness function is everything. Good performance is about steady, consistent, sustainable development... rather than trading today's problem with tomorrow's problem.
Reminds me of that time when my company abused Scala Implicits, possible because one of it's libraries for mapping scala to relational database had examples of it.
---
Regarding re-usability. Does that imply well defined interfaces and private scopes? Does that eventually lead us to Pure functions? Afaik, pure func has maybe the highest ease/simplicity for reuse. Happy to be hear your thoughts.