Elon Musk says

“Persistence is very important. You should not give up unless you are forced to give up.”

More on this...

“Measuring programming progress by lines of code is like measuring aircraft building progress by weight.”