by flappyeagle · 4y ago · 0 comments
This might be true for an extremely narrow band of startup and consumer facing web programming.
It might be true for the generally low quality programmers getting churned out of Austen’s bootcamp, because they can’t do much more than the stated activity.
Maemo media player? The only way to get results was to commit multiple layer violations and manually chase through at least two chains of d-pointers. (Opaque structs that are explicitly not documented.)
My own poker tracker? Welcome to Xlib internals. Mind reels at the memory alone.
Other phone software? Deep insides of Android source tree, coupled with Qt, and always - ALWAYS its -private headers.
Wayland browser? Dissect the insides of Glib, GTK+, WebKit, Pango and Cairo.
The list goes on and on. As far as I am concerned, UIs are the blighted forest where no sane person ventures alone, and few come out sane.
If you can build this from common basic components it should turn out ok. I think the trick is discovering what your application needs. What kind of interface it should be and what goes where. The it's mostly the same thing over and over again until it's not. Then this exploratory phase starts all over.
I like to draw experience from game engines. They typically build success around a few key components that have well defined constraints. As long as the right constraints are in place it's possible to make a fun experience. If you have the wrong constraints and you find yourself constantly battling the system then stuff is all wrong and you need to find a new approach.
It is certainly not the case that UI programming and LOB code categorically does not involve integrating poorly documented APIs.
I'd be surprised if that was true categorically of gamedev, either.
Game development, using literally any pre-existing function can be considered an API (libraries are APIs).
This really boils down to saying - the average line of code is used many times. How many, I guess, depends on how poorly designed the APIs are.
If the average function takes longer to use than it did you write (I'm skeptical) - then it would be <9 usages per line. If it takes less time to use a function than to write it - then it would be >9 times.
the ideal world you described does not exist on this planet.