4 ms·
What do people like torturing themselves by duplicating code. Wouldn't it be easier to just use node all the way. Writing hundreds of lines of JS to display a
by kbrannigan 3y ago
What do people like torturing themselves by duplicating code. Wouldn't it be easier to just use node all the way.
Writing hundreds of lines of JS to display a Table list, instead of HTML sprinkled with some JS
- scrollaway 3y agoA whole stack rewrite is not always (in fact very rarely) a good idea. The backend often drives a lot of logic; in a big rewrite, the less you rewrite the more likely you are to be successful. Too many big refactors fail because they aren’t done in value-adding steps. Also your second paragraph isn’t in line with your first … in react you don’t write “hundreds of lines of js” for a table. You write the html as js (jsx), and sprinkle the dynamic parts on top. It’s equivalent…
- kbrannigan 3y agoI've seen, routing boilerplate, js to make the api requests, js to modify state(redux), unit tests, interfaces, until you get to the actual table.