News for hackers. Stuff that matters.
Re:The baseline for web development in 2022 by agumonkey on Thursday January 27, 2022 @04:43PM (#30107157)
> PHP but this time in JavaScript

a sizeable improvement maybe, also does using the same language on both side a pro or a con ? real question

Re:The baseline for web development in 2022 by grogenaut on Friday January 28, 2022 @10:46PM (#30123591)
Every time I've tried using typescript (sorry not using untyped JS) on the server and client, the mismatch between client and server libraries made it very hard to re-use the objects, frameworks or libraries. So much so that it felt like two different languages, or at least as different as writing react and writing CDK. I very quickly reached for any other server language and an IDL like GQL for the communications. This let me re-use code for the transport which was the max I was able to get from typescript/js only.

The other big issue is the things I was working on actually needed high parallelism, and node really provides concurrency, so I quickly hit issues there as well. I'm currently working in a GQL based world and the golang based one we use is massively parallel and very performant, and I'd be worried about the speed loss writing in node.

This makes me very sad because I really do like Typescript as a language, and writing everything in one language seems like it'd be great. But it's really brought down by all the typing issues with legacy javascript, node, and other tools.

But then again, I'm not writing crud apps at work or for fun so your mileage may vary.

Re:The baseline for web development in 2022 by krono on Thursday January 27, 2022 @04:59PM (#30107401)
For the vast majority of projects it certainly means faster development and far lower production cost.
Re:The baseline for web development in 2022 by agumonkey on Thursday January 27, 2022 @06:09PM (#30108368)
I was mostly worries that not having different PL would allow people to forget abstract interfaces.
Re:The baseline for web development in 2022 by krono on Thursday January 27, 2022 @07:56PM (#30109384)
We already have cheap and fast. Can only pick two out of three[1], I'm afraid :)

Jokes aside, theoretical knowledge is definitely lacking. There doesn't seem much interest either - that is, until you show how they could have saved days and get more reliable results more efficiently, if only they had known there's that 50+ year old algorithm they could have used. Experienced and knowledgable devs are still very important to have around.

1: https://paydirtapp.com/blog/wp-content/uploads/2012/11/FastG...