I am working as Junior Developer in a small startup. Although I am junior and it's my first job, I am working independently and have some internship experience too. I am currently working on a project alone to merge two web application into one. I have been working on it for 2-3 weeks now and had made lot of progress in refactoring but there is still a lot of mess and bugs.
Yesterday I realized a simpler way to do it. I feel it will finish the project in just 2 days and will be much less buggy approach but it will render all the work I did for past 2-3 weeks useless.
Problem is my boss have very high expectations from me (unfortunately in a bad way). He is expecting to see a lot of code changes when I finish the task since I have taken considerable time now. If I do it the new way, I'm afraid he will get onto me because I took so long and only did two days worth of work.
I know these things happen in programming but unfortunately my boss is not very understanding person. I also have been once reminded to work faster by him (after 2 days on a new project I started working on.. he prefers fast over quality).
I am feeling inclined to do it the long way (the one I am doing for last 2-4 weeks) to save myself. What should I do?