story
The first thing is that the product has to scale, be popular, then maybe make money. You can always hire people who will rewrite.
The opposite doesnt work. Technically brilliant product might be unpopular or unknown.
Please note: I dont say that things should be built poorly.