It depends really. If you're doing web programming in a scripting language like php or perl, I can tell you with near absolute certainty that your first priority is coding quickly over efficient and fast code. get a working page up asap because, in a business enterprise, the administration will prolly not give two sniffs about code efficiency or streamlining. They just want a working edition done now (or 5 minutes ago). Indeed, it's my experience that 80% of all administrators don't know much about computers beyond HTML or "Hello World"...and they shouldn't. They're business people, not techies.
With C or C++ coding for software, it's prolly better to have properly documented and well-written code because buggy software that sees a release date will cost you in sales. Also, efficient code can run on more computers, giving you a larger user base. It's code based on making money where, if you lose sales because your code runs slow or crashes or has a memory leak, you lose $$. If your code works perfectly, but runs so inefficiently that it REQUIRES state of the art technology, you lost $$.
I guess in the end, it's all about the $$
With C or C++ coding for software, it's prolly better to have properly documented and well-written code because buggy software that sees a release date will cost you in sales. Also, efficient code can run on more computers, giving you a larger user base. It's code based on making money where, if you lose sales because your code runs slow or crashes or has a memory leak, you lose $$. If your code works perfectly, but runs so inefficiently that it REQUIRES state of the art technology, you lost $$.
I guess in the end, it's all about the $$
