|
|
|
|
|
by HeyImAlex
5180 days ago
|
|
Because most server side languages take a "throw away the world" approach to web programming; none of your objects persist in memory through requests, which means every time a request comes in you have to reload a part of the user's world from the db, service the request, and then destroy the world you've just created. For structural things like MVC, objects are great, but you really don't see much of the "object as vehicle for data encapsulation" that's drilled into every new programmer when they're first taught OOP. The client, on the other hand, can persist data and objects through requests, and the only time it needs to be fully refreshed is on a full reload. |
|