5 ms·
>>unless you've got a confirmed performance problem, you shouldn't think about it at all. I like to write high quality code that I'm proud of. This means code
by enraged_camel 11y ago
>>unless you've got a confirmed performance problem, you shouldn't think about it at all.
I like to write high quality code that I'm proud of. This means code not just works, but works efficiently and fast. It goes back to what Steve Jobs said once:
“When you’re a carpenter making a beautiful chest of drawers, you’re not going to use a piece of plywood on the back, even though it faces the wall and nobody will ever see it. You’ll know it’s there, so you’re going to use a beautiful piece of wood on the back. For you to sleep well at night, the aesthetic, the quality, has to be carried all the way through.”
That said, this is more of an ideal to strive towards and it's not always possible. Sometimes there are tight deadlines that need to be met, and something has to give. In such scenarios, I agree with your order of priorities: 1) code that works, 2) code that works well, 3) code that works fast.
- RKoutnik 11y agoAbsolutely - I love digging into the core of frameworks & the language itself to eke out every last bit of performance. But that takes time, something I'm usually short of. All of the examples given in the article weren't neat perf side projects, they were live sites with customers & deadlines. I write the best code I can given the constraints I'm under. Given the chance, we'd all like to write perfect code but reality tends to interfere.
- PJDK 11y agoInteresting to note that generally even quite nice sets of draws have cheap wood at the back...
- jholman 11y agoYeah, what kind of asshole carpenter wastes his customer's money by inflating materials costs for no reason?
- z4chj 11y agoThe same kind that was the CEO of one of the most successful companies in the history of the world. Steve Jobs may have missed the mark on some of his products during his long tenure at Apple, but his focus on quality in every possible area of what he had a part in creating has paid its benefits
- sdoering 11y agoOne I would pay, because he values quality over ROI optimization. Something I look for when choosing craftsmen to work for me.
- hinkley 11y agoYou have watched too much Norm Abram. Put down the remote and go outside.
- rhizome 11y agoSometimes there are tight deadlines that need to be met Where would you say these come from?