3 ms·
Started a new job in the past year and it's 50% rails, 50% react. Thought I would chafe after returning to ruby after ten years of nothing but JS and TS, but I
by scelerat 5y ago
Started a new job in the past year and it's 50% rails, 50% react. Thought I would chafe after returning to ruby after ten years of nothing but JS and TS, but I quite like it.
I only wish there was slightly less magic and a bit more declaration. It always weirds me out that Ruby just finds stuff without me having to 'import' or 'require' it. I have a love/hate relationship with much of the DSL stuff too (more 'magic') but overall, working with Rails and Ruby is quite nice.
- psadauskas 5y ago> Ruby just finds stuff without me having to 'import' or 'require' it. That's either bundler (which `require`s every dependency you specify unless you tell it not to) or the Rails autoloader[1] (which goes hunting for a file that might define the constant, which also allows hot-reloading to work). Ruby itself requires you to `require` everything. [1]: https://guides.rubyonrails.org/autoloading_and_reloading_constants.html https://guides.rubyonrails.org/autoloading_and_reloading_con...
- scelerat 5y agothanks!
- funny_falcon 5y agoRuby requires to `require` somewhere in the project, not in the the file where actual usage is.