Can a code base be beautiful if it doesn't solve the actual business problem?
I'd argue that it cannot and that you will not be able to write beautiful code until you understand the business and what needs it has. Developers that understand the business will focus on what is important.
I am a developer and I have lots of friends that are also developers that have trouble executing ideas.
I think many developers focus too much on the beauty of the code (and perfection) rather than the functionality of the app.