Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is reminding me strangely of the original, non-single-entry-point style of writing PHP.

I'm actually kind of surprised that we haven't seen a return to that style, with more modern sensibilities: each route directly mapping to a file containing the route's procedure body + any view templates for that route; a single "common" file at the project root containing dependency-imports and model declarations, etc.

In the end, it wouldn't actually work like old PHP—you'd still actually have a single entry-point and all the code would be preloaded rather than loaded into an ephemeral request context—but you'd be able to code as if the opposite was true.

Reminds me a bit of the "oldschool sensibilities" of coding with something like Löve2D, actually.



Erf, mapping URLs to filesystem path is cute but you lose control.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: