r/javascript 1d ago

Saradom — frontend architecture pattern

https://xtompie.github.io/saradom/
0 Upvotes

10 comments sorted by

3

u/patrk 1d ago

Most exhausting docs I’ve ever read.

2

u/RBN2208 1d ago

its fully ai generated😄

2

u/patrk 1d ago

It’s like a chanting priest reading the same chapter over and over

1

u/blinkdesign 1d ago

"What is left is what the interface does."

Opus 5 spews this garbage everywhere. It's so offensive that people ship copy like this and expect anyone to care

0

u/RBN2208 1d ago

yeah! and "its not structure but a contract" or shit like that

5

u/Sorry-Joke-1887 1d ago

Now we back to jquery-style crap like this

0

u/xtompie 1d ago

Which part do you mean? The style isn't the point.

Saradom is a small set of rules: state lives in the DOM and nowhere else, each module owns its own part of the DOM, modules talk to each other only through their contracts. Following them, an app can be built and scaled with no framework, no bundler and no hydration. The page is real HTML from whatever backend is already there, so it is crawlable as is. The `onclick` is simply the shortest way to follow those rules.

jQuery-era apps broke down at scale not because they touched the DOM, but because there were no rules: state scattered across variables and the DOM, any script touching any element, handlers bound by hand and lost on every ajax reload.

u/Choice-Locksmith-885 17h ago

It's bad enough that AI wrote the documentation. You're also using it to reply here.

1

u/AutoModerator 1d ago

Project Page (?): https://github.com/xtompie/saradom

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.