Re:An Ode to Ruby
by fourseventy on Monday January 10, 2022 @12:04PM
(#29877851)
So you come from the Node ecosystem and your main complain about Rails is that the project has a lot of dependencies and files? lol
[ Parent
| on HN ]
Re:An Ode to Ruby
by charcircuit on Monday January 10, 2022 @03:19PM
(#29881593)
When you create a project it makes like 100 files that are all automatically executed somehow. Nothing really includes them, but you know it works. These files arp part of your project, but they is also a bunch of rails stuff so it blurs what is and isn't a dependency for your project.
With node projects they typically keep all of their dependency neatly under node_modules/ and you can clearly see how things are included and how things work.
Re:An Ode to Ruby
by NoSorryCannot on Monday January 10, 2022 @12:49PM
(#29878571)
I hear your point but the quantity of files produced by initializing a new rails project is very large, larger than an equivalent node project with server and framework. These aren't transient build artifacts either, they will live in the repo and may occasionally need attention.
Except with node you have to roll everything yourself, so jumping between different projects is a nightmare (each one a snowflake)
Roll your own session management, auth, ORM, db migrations, html templating, CORS, cross site scripting protection, the list goes on and on.