Lurker News

Comments (245) 47 threads

Earlier comments
coolgoose3 replies#
I am so confused why the 'good old days' of php is a good example of how to do application development.

Every php framework got away from that for really good mesure, including not having your logic in the server document root.

playpause#
It's for quick experiments and prototypes. PHP (without frameworks) was great for that.
asadlionpk#
Easier to create. With a path to scalability if ever needed.
slim#

  Every php framework got away from that for really good mesure, including not having your logic in the server document root.
IMHO unless you are building a http daemon, "your logic" should probably not include routing http requests. Using directory tree, url rewriting or generally leaving the controller part of your logic to the underlying httpd is probably fine in most php projects. Note: php frameworks can't do microservices
gjmacd2 replies#
Why is this any different than say, next.js?
asadlionpk#
Next.js does file-based routing for React pages. This does the same for your API functions too.
dzek691 reply#
server is down (yay for proof of scalability ;)) so i can't tell for sure, but it looks like it's derived/based on next.js and comes from the same authors
dzek69#
server is up again and it wasn't the case.

the page and code styling misleaded me

xxandroxygen1 reply#
this is impressive! I would absolutely reach for this first when scraping something together quickly. I'd be super interested in seeing numbers for just how far this can scale before falling over.
asadlionpk1 reply#
Currently this is as scalable as a normal node+express app. The aim for now is to improve development experience for now.
xxandroxygen#
Love it, that's what I figured, and I agree with the aim!

Load more comments