7 ms·
In general, we have higher-level programming languages so we can do just this, hide the complexity under indirection. It's basically the purpose of the language
by capableweb 6y ago
In general, we have higher-level programming languages so we can do just this, hide the complexity under indirection. It's basically the purpose of the languages we tend to use today, otherwise we would all be still using assembly.
Your job as a programmer is being able to walk this ladder of indirection up and down until you find what you seek and fix/add/remove whatever.
You'll always be dealing with way more than 20 levels of indirection when programming, even with a "hello world" program. If adding two more levels of indirection makes your mental model break down, you might consider upgrading your environment/workflow a bit to support this.
Regarding naming I agree with you. Good names are really, really, really hard to come up with. Entire books have been written on how to name things. Doesn't excuse us from trying though, the only way we can get better is by doing.