That's a good attitude to aspire to, but, in real software development, very little code survives contact with users unscathed. If you're writing a C compiler or something with a well-defined spec, then, sure, you can theoretically write perfect software. But, even your basic CRUD web site is unlikely to ever reach "perfect" status.
Edit: For example, the HN code was obviously not "perfect," since we just got several new features. :)
Edit: For example, the HN code was obviously not "perfect," since we just got several new features. :)