Hacker News new | past | comments | ask | show | jobs | submit login

File-based routing is one of the best things to have up to particular size of an application. Makes navigating the code so much easier then routing spread throughout the code base



You shouldn't need to structure the codebase based on how the application is routed

More importantly you shouldn't need to restructure the codebase if the application routing changes

File based routing is a terrible idea


My exact visceral reaction.


If you have a single routes source that makes it just as easy, although that really depends on the people making sensible route handlers for the routes to point to, if people are not good at doing that obviously the implicit order of /pages is superior.




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

Search: