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

I don't know about how it became popular, but personally I find the prior to be easier to parse quickly without having to learn what a handful of decorators do as well as cutting down on the amount of boilerplate required to write an HTTP handler.

Even .NET is moving towards your first example by providing minimal APIs that allow simple binding of a route to a handler function.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: