> The amount of code or general engineering complexity of the application seems completely detached from profitability a lot of times.
Of course, they're almost entirely unrelated. It's just programmers believe solving difficult problems with specifically code is valuable in of itself. The goal is to get as much value as possible from as little code & complexity as possible.