Your code should be the gold in Kintsugi. Filling the gaps between solid chunks of porcelain, no more and no less. Porcelain shards are UI elements, databases, and other solid objects, and your code is the gold in between.

It should flow organically, like a vine growing through the bricks.

When the solid shards are way too far away from each other, and just gold is too fragile, rely on a backbone, like a data structure. An oriented graph is a perfect backbone for, say, a stepped form that diverges. From that backbone, grow your golden vines to reach out and connect what remains to be connected. Learn data structures. They are very flexible, very powerful.

Angular, on the other hand, is like a huge, rigid nonsense made of oxidized steel. It cannot bend to hold other pieces gently. Everything should be cut square and secured with bolts and rivets. It is only fine for you falling on it, hitting your temple against its sharp corner. An inflexible abomination that rots under the rain. It is dead.

Your architecture should be alive.

As of today, I restrict my boilerplate to just closures. Anything more than that I find unnecessary. Any idiot can build a bridge that works, but it takes talent to build a bridge that barely works.

This art took me six years to master, and, like a black belt, it's just the beginning of a lifelong journey. I'm so serene right now.

  • 4
    Is this a lead in to you creating another JS framework? ;-)
  • 1
    @Demolishun your mind _is_ the framework. The only one you’ll ever need.
  • 0
    @kiki Mine is busted sometimes.
  • 0
    @Demolishun lol don’t you say 😂 look at mine!
  • 0
    I would rather aptly justify my code under the Wabi-Sabi aesthetic
  • 0
    ever seen a kid playing in a public sandbox, glueing sand and rocks together with dogshit into broken structures which fall apart if wind blows too much ... while avoiding discarded needles laying around?

    yeah, their architecture is alive too
Add Comment