Re:I don't want to do front-end anymore
by itronitron on Tuesday February 09, 2021 @07:41AM
(#26076790)
complex UIs don't require complex frameworks
[ Parent
| on HN ]
Re:I don't want to do front-end anymore
by ZephyrBlu on Tuesday February 09, 2021 @08:13AM
(#26077076)
What _do_ they require?
Re:I don't want to do front-end anymore
by itronitron on Tuesday February 09, 2021 @09:06AM
(#26077557)
They require identifying all the interaction paths that a user can take through the application so that any function associated with an interaction can correctly update the state of the application's data model. Vanilla JS, HTML, and CSS.
Re:I don't want to do front-end anymore
by ZephyrBlu on Tuesday February 09, 2021 @09:11AM
(#26077610)
Do you think that's feasible for a website like Facebook? It seems like it would be much more difficult than using a framework.
Re:I don't want to do front-end anymore
by itronitron on Wednesday February 10, 2021 @05:06PM
(#26095435)
Developers that have experience creating native applications are used to writing code that manages the application state and it's relation to UI interactions and data updates. In native-land, the UI frameworks are primarily the UI widgets and all of the application logic is written by the application developers in their chosen language. The corollary to this for web development is that HTML and maybe a few specialized graphics libraries like D3.js provide the UI thingies and the application logic (event handling, data fetching, etc.) is written in Javascript.
I'm not familiar with the Facebook website but I can't imagine that it needs any particularly complex application logic under the hood.
Re:I don't want to do front-end anymore
by objektif on Tuesday February 09, 2021 @09:49AM
(#26078092)
Why would it not be possible? What cant you do with js that other fancy frameworks can?
Re:I don't want to do front-end anymore
by ZephyrBlu on Tuesday February 09, 2021 @05:42PM
(#26083460)
I didn't say not possible, I said feasible.
Pretty much anything is possible given enough time, but spending time building a complex application in vanilla JS, HTML and CSS doesn't seem like the most productive use of time when you can leverage a framework.