News for hackers. Stuff that matters.
Re:React 19 Beta by dartos on Friday April 26, 2024 @12:54PM (#40171634)
I don’t think any shop starting nowadays really wants to use nodejs on the backend.

I think most everyone is on go or python for BE work.

Just really frontend focused apps or heavy react shops are doing js on the backend.

EDIT: I think “use server” is a nextjs thing FWIW

Re:React 19 Beta by DangitBobby on Friday April 26, 2024 @01:38PM (#40172085)
Re:React 19 Beta by dartos on Friday April 26, 2024 @05:42PM (#40174653)
Oh yep, I was thinking of “use client”

https://nextjs.org/docs/app/building-your-application/render...

Re:React 19 Beta by throwitaway1123 on Friday April 26, 2024 @06:39PM (#40175088)
That's also baked into React: https://react.dev/reference/rsc/use-client
Re:React 19 Beta by postalrat on Friday April 26, 2024 @09:39PM (#40176316)
PHP is what you should be using for server code.
Re:React 19 Beta by dartos on Saturday April 27, 2024 @09:28AM (#40179809)
You _should_ the best tool for the job.

Personally,I don’t think php or js are the right tools to build a backend for a business.

Neither are particularly friendly towards growing teams for many reasons, but the lack of strong typing is a big one.

You want your backend to have minimal complexity, that’s why go has been so popular lately

Re:React 19 Beta by phyrex on Saturday April 27, 2024 @11:03AM (#40180486)
PHP has static and strong types these days and it (and its dialects) are in use by some of the largest teams on the planet
Re:React 19 Beta by dartos on Saturday April 27, 2024 @01:26PM (#40181757)
Granted I don’t know much about typing in php, but from my quick google search, it seems like they support type hints and type declarations, but the language isn’t strongly typed.

Also, to your second point, some of the largest, most critical, and most at-risk businesses on the planet (namely banks) run on COBOL, but I wouldn’t exactly describe cobol as a language that lends itself well to large orgs, it’s just entrenched. same as php and dozens of other technologies.

Re:React 19 Beta by phyrex on Sunday April 28, 2024 @09:40PM (#40193530)
I admit I’ve only ever used Hack, not vanilla PHP, but that one is a pleasure to use. I’m sure the vast majority of my colleagues will agree with that too