logoalt Hacker News

ashishbyesterday at 10:21 PM3 repliesview on HN

The JavaScript fanatics will downvote me for saying this, but I'll say this, "using a single JavaScript codebase on your client-side and server-side is like cooking food in your toilet, sooner or later, contamination is guaranteed" [1]

1 - https://ashishb.net/tech/javascript/


Replies

pier25today at 2:05 AM

You can still have separate codebases for server and client in JS/TS...

show 1 reply
0xblinqtoday at 5:07 AM

You're mixing programming languages with software architecture.

show 1 reply
leptonsyesterday at 11:20 PM

This isn't a Javascript problem, this is a React problem. You could theoretically rewrite React and RSC in any language and the outcome would be the same. Say Python ran in the browser natively, and you reimplented React on browser and server in Python. Same problem, not Javascript.

show 1 reply