The whole 'hand written' mantra is a bit tedious, even if it is pretty much always correct. Nonetheless, unfortunately it's become a self-flagellation ritual for code snobs.
User experience is in no way connected to optimised hand written code.
It's possible to have fantastic, streamlined, enjoyable and intuitive interfaces and experiences that have impenetrable spaghetti code behind the hood.
It's also possible that the most cleanest, zen perfect code, written one character at a time in emacs, while sitting cross legged chanting linux man entries and all the while with one hand reverentially placed on a copy of css mastery, that turn out as awful 'designed by a programmer' ui, and aesthetic car-crashes.
Should we should abandon photoshop and edit images one pixel at a time, stoically typing in millions of rgb values, or abandon protools and create edit lists of audio in a text editor, plotting a waveform sample by sample? There's nothing inherently wrong with abstracting an arduous and technical process to a visual, easily manipulated and intuitive hands on process.
Why something as extremely simple (relative to many of the wonders modern computing science and maths can solve) as aligning a few boxes with some text in them, and boiling this down to a handful of sensible, semantically correct descriptive language, has proven so difficult to the likes of Adobe is a real mystery.