|
|
|
|
|
by uk_programmer
2311 days ago
|
|
In the past most websites were Rendered HTML from a language such as PHP / Java / C# / Perl and then they had a small amount of JavaScript over the top for interactivity and client side form validation i.e. when you submitted a form a full postback to the server was made. jQuery bridged the browser compatibility problem that existed at time. So most sites were built using jQuery + Server side MVC framework + SQL Database. Overtime more and more logic was pushed onto the client side (mostly updates via AJAX) and eventually JavaScript MVC frameworks were written to deal with the extra complexity. Angular / React etc are just the latest incarnation of these. However much of the JavaScript written on those sites was done by back end programmers who didn't really understand jQuery or JavaScript and thus you ended up with jQuery spagetti code which others have lamented about. However if you were proficient with JavaScript at the time you could use a few JavaScript patterns and keep everything fairly clean. This architecture while dated works incredibly well (minus the jQuery spagetti) for quite a few web applications. This includes everything from shopping sites, bespoke CRUD apps, Forms etc. However it isn't cool, it doesn't look as good on your CV and you actually have to really understand what you are doing to keep it performant. |
|
react is doing what php did a while ago (and is still doing). it's mixing frontend with backend stuff. i personally find it refreshing!
we did that for a while then people came and told us how bad it was and we needed to do strict MVC or whatnot. now everybody is doing it and it's cool again!