3 ms·
I’m not sure you could implement the same level of functionality in less JavaScript using React or even Svelte. So you’re talking more about the shape of the AP
by toddmorey 3y ago
I’m not sure you could implement the same level of functionality in less JavaScript using React or even Svelte. So you’re talking more about the shape of the API than amount of code.
- lolinder 3y agoYes, they are. Their comment identifies the problem as being: "little 150+ line js programs in your html attributes". HTML attributes are fine, 150+ line JS programs are fine, 150+ lines crammed into your HTML attributes is not fine.
- egeozcan 3y agoTo add a bit upon that: A sufficiently advanced precompiler can extract those JS programs into their own files and a sufficiently advanced IDE can allow you to write even a 1000 line JS program in an attribute with no problems. Yet, those do not exist today.
- lolinder 3y agoEh, you should still pull the code out even with IDE support. HTML gets hard to read fast as tag size grows, and the example OP linked to is ridiculously large.
- egeozcan 3y agoThe joke was that a sufficiently advanced IDE would make it easy to read anyways.
- DoesntMatter22 3y agoDon't let the tailwind folks hear that. You'll be banished the forest of nothingness forever