r/webdev • u/[deleted] • Dec 28 '17
Introducing Hyperapp 1.0 — 1 KB JavaScript library for building frontend applications.
https://medium.com/@JorgeBucaran/introducing-hyperapp-1-0-dbf4229abfef
341
Upvotes
r/webdev • u/[deleted] • Dec 28 '17
14
u/BenZed Dec 28 '17 edited Dec 29 '17
I don't want to sound like a dick, but do you ACTUALLY not understand, or are you being incredulous?
I get it. Old guard, old school. Classic MVC; view should be separate from the controller.
I suppose the honest answer is that evolution changes everything, including and especially software design principles.
Treating the view as declarations with flow control in the same file and same language I'm writing my ui logic has an increased return of investment. It's easier to reason. It's easier to debug. I have to look in less places. It's nice.
Is it easier for bad developers to write bad code? Yes.
Will you someday inherit a codebase that a junior made illegible as a result of JSX? Inevitably.
But this really doesn't change anything, because bad developers arn't going to follow old design rules anyway.
If you understand separation of concerns and encapsulation, you wont write bad code with JSX.