3 ms·
You think they would have discovered Flask or something similar just out of personal curiosity.
by PrimeMcFly 3y ago
You think they would have discovered Flask or something similar just out of personal curiosity.
- jamil7 3y agoThey won’t touch anything that isn’t Javascript.
- bdcravens 3y agoI think a culture has been created where anything resembling server-side rendering (other than Node spitting out JSON) is legacy to be avoided ..... until of course the Javascript creates its own convoluted version of server-side rendering, which is revolutionary and the new hotness.
- joseda-hg 3y agoAren't those just the server-side components from React?
- PrimeMcFly 3y agoI'm not really in webdev, although I still do django sites for people sometimes, amazed and glad I had no idea that's how things had gone.
- satvikpendem 3y agoThe main benefit to JS being used as a server side rendered and client side rendered language is that you have a lot more control over which parts you want on the server vs the client, and you can introduce hydration where needed. You technically could do that in PHP and other non JS languages but that's annoying because you'll be mixing multiple languages together and it would be more clunky. So yes, there is some "revolutionary" benefit to having everything in JS/TypeScript.
- TX81Z 3y agoMy least favorite JavaScript argument is “Instead of using one good language for the backend and one lousy one for the front end, we’ll rewrite ALL the code in the lousy language to keep it easy!” I fail to understand why anybody would use JavaScript - a language so bad everybody uses a series of wrappers around it - for anything they didn’t absolutely have to (e.g. client code). The entire point of the MVC architecture is to allow you to pick the best tools for the job. EDIT: I’m not saying PHP is good, though it’s better than JS. And TypeScript is still JavaScript with extra steps.
- satvikpendem 3y agoPHP is a good language? Lol TypeScript is an excellent language and I agree, no one should be using Javascript anymore.
- nesarkvechnep 3y agoPHP is a good language nowadays. Much better than JS. Also, Jimmy Hendrix is dead.
- PrimeMcFly 3y agoI mean, Django makes it very clear and very trivial which parts are serverside and which parts are client side, and I assume rails is the same way. I don't see how JS has any advantage over their approach.