In the ol' days, we used to only ship the code to a browser page that was needed for that page. If we didn't need the file, we didn't include the <script src> for it. Simple.

Now'a'days you kids and your fancy bundlin', tree shakin', and code splittin'.
I know why SPAs were invented and why they're so great. And why bundling, shaking, and splitting were invented as follow-on techniques. Etc.

But sometimes you should just need to take a step back and remember that complexity always begets more complexity, never more simplicity.
I call this the tyranny of complexity.

The problems of bundling, shaking, and splitting are, generally, all invented problems, wounds we inflicted on ourselves by our prior choices.
Just a gentle reminder that you can always back-track away from the never-ending-drive-of-complexity and look for side paths that lead toward more simplicity.
You will never be able to inflict enough complexity to solve all the problems, because complexity keeps bleeding out more problems.

At some point, you may stop caring about the remaining problems and be "finished", but then that complexity legacy is inherited by the next person.
Some people seem to be enthralled and enchanted by complexity. The more it blossoms, the more their imagination runs wild with the possibilities of more complexity. The more they inflict, the more they enjoy it.
It's as if they substitute the ability to inflict complexity for the natural desire to find purpose and meaning in their endeavors.

Can we justify our existence by rippling out ever more undulating waves of complexity all around us? Of course.
But there's another kind of person who wants nothing more than to calm the waves, whose existence is justified by creating beauty through simplicity.

There's no tyranny of simplicity. There's no drive that keeps you on that path. It's a choice we can make with every step.
What if writing code was more like the gentle art of tending a delicate garden, instead of machete-hacking your way through an endless tropical rainforest?
You can follow @getify.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: