Yep, he changed it to Rails and its Ruby dialect
I always called myself a Rails user because Rails always felt like a really really good CMS… because it is just so easy to use but also because knowing the guts of Rails at an intimate level (and what I would call a Rails developer) isn’t really necessary in order to use it (which is both a blessing and a curse of course).
I think this led to frameworks like Phoenix not wanting to use so much magic (and something that made them appealing to many people).
Copy pasting my comment from the blog:
I wonder how rails would look if it used refinements.
I also would love to see something on ruby like module exports from python/javascript
My biggest pain points with rails are:
- the thousands of monkey patches, that could maybe be dealt with refinements
- the autoloader, that as far I know dont have a good language level mechanism
I think if we had a module system similar to what we have on JS/python things could be much better.
Wait… it doesn’t?!
Nope.
require
ing a file affects global namespace, so if any one of your classes require
some gem all subsequent scopes can access that gem.
Very crappy example but I think it shows my point. We also cant require
specific functions.
EDIT: There was some discussion about this on the bug tracker but I dont think anything came from it Feature #14982: Improve namespace system in ruby to avoiding top-level names chaos - Ruby master - Ruby Issue Tracking System
o.O
That’s… a very odd design decision… What was the reasoning behind THAT choice of all things?!?
Yeah, I also have no idea why.
My first thought was that because ruby was designed as kind of a perl replacement, but I just googled it and it looks like perl has proper imports/exports
Yeah perl’s module system is both ancient and advanced, they definitely didn’t copy that, lol.