Hacker News new | ask | show | jobs
by phoronixrly 577 days ago
Guys, didn't you get the memo? We're doing this differently now, we've replaced

https://github.com/jquery/jquery-ui/blob/main/ui/widgets/tab...

with the much better, much simpler, more readable and not at all depending on 42(!) modules (/s)

https://github.com/tailwindlabs/headlessui/blob/main/package...

What joy! (/s)

// inb4 oh but you don't understand anything... it's declarative

2 comments

Crazy how over-engineered the Headless UI one looks. Like they had a 5,000 word assignment but could only come up with 1,000 words and had to keep expanding and expanding to fit their quota. The import statements alone give nightmares.
It's astonishing... It looks like it's not meant to be read by humans, let alone debugged or extended...
what about the jqueryui example seems better to you? it's over 100 lines longer and seems less organized to me when looking over both. if you asked me to modify one of my choice to add a new feature i think the react example would be easier. is it just preference differences or am i missing something?