|
|
|
|
|
by pas
1370 days ago
|
|
DSLs have their place. Twig for example is/was a nice templating lib for PHP. (Smarty is of course completely cursed.) There's value in separating the presentation layer from the other parts. There are nice things in Twig that are not in PHP. (Pipes, for-else, etc.) Of course PHP was (is?) far from a general purpose language, but a templating lib allows PHP core devs to focus less on "templating". And it's just reality that fixing/improving/iterating/evolving a library is much easier than the host language. Updating a lib version is easier than updating language version. Similarly it's a real constraint that not every company/team/engineer will be able to "just hire competent designers". React is also suffering from this. (Due to its popularity, hence it's the victim of its own success. Or looking at the big picture it's the normal part of the hype cycle.) The article mentions that every React repo/project is different and full of their own conventions. (And implies that they are broken too.) Oh, who would have guessed? After all it's just a view layer and people will put a myriad things on top of whatever the current "create react app" spits out. |
|