3 ms·
Next up, mixing logic and presentation like it's 1999 cough php cough react native
by Mc_Big_G 9y ago
Next up, mixing logic and presentation like it's 1999 cough php cough react native
- cc81 9y agoHave you seen the talk "Rethinking best practices" from back when React was first launched? https://www.youtube.com/watch?v=x7cQ3mrcKaY https://www.youtube.com/watch?v=x7cQ3mrcKaY It addresses this and is pretty great in my opinion. Of course one does not have to agree with it but it is not the same as the mess back then and usually the separation of concerns is more about separations of technology than concerns. As an an example: Let us say we have a shopping basket up in the top right corner of our web page. For me there is a big difference between the logic of calculating to the total sum of the parts we have in it or collapsing/expanding it. One is "business logic" and one is "presentation logic" and they are not the same. And I also bet that if for example HTML or CSS had native collapse/expand then people would consider that presentation as well and not to mention all the logic you usually have (loops, conditions) in a normal template language.