I'm very vocal about my dislike of HTMX, and one of the big reasons is because it very much works against the grain of the web rather than with it. Last week, I was having a discussion about this on Mastodon, and someone asked me what "with the grain of the web" actually means. Today, I wanted to talk about that. Let's dig in! The grain in woodworkingThe phrase "with the grain" comes from woodworking. The grain is the direction the lines of the wood naturally flow in. Generally speaking, you want to cut wood "with the grain" rather than against it. Cutting with the grain makes it far more likely you'll have nice, clean, easy cuts that look good. Cutting against it makes it far more likely you'll end up with tears and splits and rough edges. The grain of the webWhen talking about with the grain of the web, we're using a metaphor about craftsmanship and the natural state of the medium with which you work. When you work with the grain of the web, you lean into how the web was designed to work out of the box, rather than fighting against it with hacks and clever workarounds. When I say "how the web was designed to work," I mean things like…
Nearly every single problem with the modern web stems from a refusal to acknowledge or accept the nature of the web, and to subsequently work against it rather than with it. Respect the mediumThe modern web platform is incredibly powerful. We could have fast, amazing websites and web apps. Instead, we have a slow, clunky, fragile web that breaks constantly, barely works on older devices, and implements many of the same features we had in the early 2000s with more complexity and less reliability. The modern web can build things far more advanced than we could have imagined a few decades ago. You might assume the complexity of modern web development is a result of that. But development complexity has grossly outpaced the complexity of the things we're actually building. The modern web makes it easier than ever to build complex things, and our silly monkey brains keep throwing more complexity on top of it anyways. Cheers, Want to share this with others or read it later? View it in a browser. |
0 Komentar untuk "[Go Make Things] What is "the grain of the web?""