41 ms·
Is that two millions LOC for a single Rails application or across various Rails applications?
by Scarbutt 4y ago
Is that two millions LOC for a single Rails application or across various Rails applications?
- deleted 4y ago[deleted]
- New_California 4y agoThey keep saying "monolith".
- jaredsohn 4y agoThey call it a monolith and the way they describe it I think they are using that term for the application rather than the repo.
- nitinreddy88 4y agoIt's one single application. Most of the secondary services are powered by go/ruby, running independently in non-monolithic way. Ex-Hubber
- drdaeman 4y agoOne thing I just cannot wrap my head around is Ruby/Rails metaprogramming and attribution of things (as in "where this method/class/macro comes from?"), especially with so many authors trying to do something to the pre-existing stuff, including the standard library bits. Like, a lot of times I see some baz.foobarify() I have really hard time understanding where the heck that comes from. RubyMine makes wonders and control-clicking gets me there about half of time, but the rest of it it's either "search in all files, hoping that `def foobarify` is unique enough" or "this is crazy, but I'm gonna set a breakpoint, run it and see where this rabbit hole goes". It feels kinda like Scala (or, to lesser degree, Haskell) magic operators problem, but worse. I consider myself proficient with a decent number of languages and frameworks, but Ruby/Rails is one arcane mystery that just never clicked. So I really wonder what's the trick to make metaprogramming shenanigans manageable at this scale?
- ptoomey3 4y agohttps://tenderlovemaking.com/2016/02/05/i-am-a-puts-debuggerer.html https://tenderlovemaking.com/2016/02/05/i-am-a-puts-debugger... is ruby gold for this kind of stuff. As a Ruby developer, probably one of the most impactful "quick tips" I've ever picked up is this: foo.method(:bar).source_location That is wildly useful when debugging/figuring out where the actual code for some method is at runtime.
- throwaway445232 4y ago[flagged]