←back to thread

231 points urin | 3 comments | | HN request time: 0s | source
Show context
vivzkestrel ◴[] No.41834021[source]
Are we trying to reinvent web development? Last few years have been wild. We abandoned HTML CSS and JS websites that used to work just fine and ran after frontend component frameworks and now the circle is getting completed by building tools and extensions we had 20 yrs ago
replies(8): >>41834134 #>>41834511 #>>41834787 #>>41834938 #>>41835473 #>>41838662 #>>41839707 #>>41861399 #
stevage ◴[] No.41834938[source]
>We abandoned HTML CSS and JS websites that used to work just fine

Hmm. Have you actually done much web development in the last 10 years?

Building websites with raw HTML, CSS and JS 10 years ago was very much not "just fine". There's a reason frameworks were invented.

replies(5): >>41834974 #>>41835106 #>>41836202 #>>41837654 #>>41886661 #
oneeyedpigeon ◴[] No.41834974[source]
What do you consider "not fine" about websites written in "just" html, CSS, and js?
replies(4): >>41835042 #>>41835502 #>>41837471 #>>41842234 #
1. netdevnet ◴[] No.41835502[source]
You can't reuse pieces of UI functionality (a bundle of specific html, css and js) unless did copypasta which is obviously awful. Sharing business logic across different areas of an application becomes much harder and you can't non-trivially write and run tests across areas of your application because you are just using html,css and js. And the big monster: state. Sharing state safely across different areas of an application becomes much harder. You end up writing your own micro framework trying to make all the above work. At that point you might as well use as existing battle-tested one
replies(2): >>41835686 #>>41845735 #
2. oneeyedpigeon ◴[] No.41835686[source]
So, instead of "Building websites...", would it be fairer to say "Building some types of web app..."?
3. pjmlp ◴[] No.41845735[source]
Sure you can, Web Components exist now, and SSR components exist for 25 years across all main languages.