Hacker News new | ask | show | jobs
by grandalf 5857 days ago
He's totally right. This is why I switched to Sinatra even for apps larger than the typical sinatra app.

Most of the need for the rewrite of the router came from the overhead associated with having all those (often unused) routes in memory.

My sinatra apps use very little memory and that is great for a lot of reasons.

I also realized that I don't like the rails convention of having a separate file for everything. Avoiding that has saved me lots of RSI.

1 comments

Conventions are powerful. Programmers should be allowed and able to come up with their own conventions that match their domain.

I personally find sinatra routes more scalable than Rails routes because they are modular (defined within the resources). Rails routes are one monolithic file with a separate controller layer.