Profiling is the nice, cozy, and lazy way to efficiency. There’s something neat
about avoiding optimization and having the numbers to prove it relative to an
initial baseline. In PHP there’s
Xdebug and
KCachegrind and I recently saw
php-spx
in my feeds. A
profiler in any language environment with snapshots of performance over time is
just — well nice. The terribad situation is not understanding exactly how
something became slow. It might be too late then.
Messing around with a statically generated site can easily lead into a web/browser spec rabbit hole. And… that’s when I remember exactly why everything ends up written outside the browser’s framework into a framework. I think Firefox is still the only browser that allows easily setting image fallback styling completely with just ?
Hyperscript Tagged Markup (htm) is pretty good. It uses tagged templates.
The Enhance Framework looks compelling. Personally, web components and more particularly the shadow DOM are not very appealing but… the template structure looks clean for drawing up components/layouts super fast while still being primitive enough to not lose transposability between different environments.
It seems like there’s an uptick in discussions online around web components but maybe that’s just the typical developer marketing/advocating. Web components have been around for a bit.