Re:You probably don't need a single-page app
by Existenceblinks on Monday February 18, 2019 @04:44AM
(#19189592)
Or your backend template engine is weak. In Elixir, EEx used in Phoenix, every template is a function. It's not supper good, but it's component (I hate term "component" and prefer "function")
[ Parent
| on HN ]
Re:You probably don't need a single-page app
by pennaMan on Monday February 18, 2019 @07:07AM
(#19190123)
But a component is a function that satisfies certain properties, why would you prefer to not to be precise in your communication? Do you call squares rectangles because you hate the term "squares"?
Re:You probably don't need a single-page app
by Existenceblinks on Monday February 18, 2019 @11:55AM
(#19192042)
In my example, it's very precise that a template _is_ definitely a function. And conceptually I still think of it as function.
For your example I'd call it "squares" not because I don't hate it, but I don't think squares has something to do with "component"