3 ms·
> And yet Phoenix hasn't stolen a significant amount of market share from Rails. I thought we all learned popularity does not correlate with quality. It correl
by pdimitar 7y ago
> And yet Phoenix hasn't stolen a significant amount of market share from Rails.
I thought we all learned popularity does not correlate with quality. It correlates pretty closely with corporate inertia and perceived lower risk of developer churn though. Businesses love tech stack for which there are bigger pools of programmers. Says nothing of the quality of the stacks.
> If you're measuring hardware loads and busting out your stopwatch to measure response times, then sure.
Needlessly snarky. Response times matter in a lot of businesses. Count yourself lucky that it hasn't been an important metric in your work.
> Have fun writing Ecto queries by hand
I do have fun writing those. Most times the code in my functions ends up more readable than the equivalent Rails code I wrote years ago. There are some exceptions where you have to dig deeper. Haven't seen a framework -- Rails included -- that lets you handle all complex cases with zero deeper digging needed. At one point you do have to understand SQL and query optimizations, no ways around it.
> wiring up document storage on your own
What for?
> trying to find a standout auth library of choice like devise
It's called Pow and works very well. Additionally, Elixir's maintainers themselves are authoring such a library at the moment.
> finding a library that makes managing database views less of a pain
We can argue if this is a good thing until the Sun explodes. It really depends on the business. I have consulted for businesses where it was very important and true enough, using a library that's well-tuned for classic web apps (like Ecto and ActiveRecord) isn't the best idea there.
> wiring up end-to-end system testing
For 3.5 years with Elixir this is the first time I hear that this is a problem. Any data to back this up?
> I'll be over here running rails new, wiring up sidekiq to ActiveJob, and building shit with ease.
More power to you. Rails is excellent for an MVP or a prototype and this is well-known. It's what comes after is what has burned me out of it. Its maintenance burden is much higher than many others, including PHP's Laravel.
- mindfulmore 7y ago> For 3.5 years with Elixir this is the first time I hear that this is a problem. Any data to back this up? My point is that it doesn't come with Phoenix out of the box (unless something has changed?), and that difference in philosophy is the core of what I'm getting at. With rails new I'm getting an end-to-end test suite and chrome driver installation for free. Phoenix also has no plans of implementing something similar to ActiveStorage do they? How about ActiveJob now that elixir developers have rediscovered how great a queueing system is with the adoption of Oban?. Will Phoenix ever make a move to include something like ActionText? They won't even consider adding basic things for developer productivity like undoing a generator. https://github.com/phoenixframework/phoenix/issues/2607 https://github.com/phoenixframework/phoenix/issues/2607 https://github.com/phoenixframework/phoenix/issues/1597 https://github.com/phoenixframework/phoenix/issues/1597 The Rails team is much quicker and happier to extract something out of the companies supporting it (Basecamp, GitHub, Shopify, etc) and include it directly in the framework, whereas the Phoenix team seems much less willing to take a "batteries" included approach. There's a balance of making something easy to use and making something "technically superior". The Rails team seems to care much more deeply about what the framework feels like to use, and the Phoenix team cares more about building something that is "dogmatically perfect" (which you're correlating with quality). What's easier for someone to learn? rails g model article title body user:references mix phx.gen.html Content Article articles title body I understand what they're going for here, but I'm not sure the tradeoff is worth it. If Phoenix wants to increase their adoption, then I think they need to accept that things like this matter.
- pdimitar 7y ago> My point is that it doesn't come with Phoenix out of the box (unless something has changed?) You put a lot of weight on built-in features of frameworks in your reply. This is not an objective truth and even DHH himself admitted as much -- including in his article "Rails is Omakase" which I very much enjoyed (because he says that the Rails team picks what they deem the best ingredients and if you disagree then you are not the target audience). You find value in "officially vetted" libraries, I find value in being assemble to assemble my chair the way I want it to, with parts I built or bought myself. Neither practice is superior per se. Let's both admit that. > They won't even consider adding basic things for developer productivity like undoing a generator. Honest question: how many tech stacks even allow for that? Does Ruby have bytecode instrumentation on the level of, say, the JVM? (Java's instrumentation has unlocked it some quite impressive code generation and runtime code analysis abilities.) Generating boilerplate is pretty easy. But how many tools out there can scan your code and tell you "this looks like Devise's boilerplate with exceptions in files A and B on lines 123 to 150 and 201 to 217"? If Rails can do that I'd be very impressed. It couldn't, as far as I was aware, about 4 years ago. > There's a balance of making something easy to use and making something "technically superior". I never said this was important to me. I value Elixir's hassle-free parallelism and concurrency (which is more than what can be said about 99% of the tech out there where those things are always an afterthought). And Elixir is still pretty easy to use. I don't see why both things have to be presented as opponents? Seems like a false dichotomy. > The Rails team seems to care much more deeply about what the framework feels like to use You have spoken to the authors and they have told you this, in these exact words? > ...and the Phoenix team cares more about building something that is "dogmatically perfect" (which you're correlating with quality) And you have spoken with the Phoenix team. And they told you this. Exactly this? No. They don't do that. They don't want to steer developers in the direction they might deem the best (they said as much on ElixirForum). They give you freedom to choose. And the community has provided alternative approaches for a number of the classic building blocks of a web app. That's all there is to it and I am not sure how you managed to so grossly misrepesent it. :( I also never said anything about dogmatically perfect being important (much less correlated to quality!). You are projecting and we are talking past each other which doesn't help the discussion at all. If I cared about purity or similar concepts in the "dogmatically perfect" lane I'd go for Haskell or even Idris. Elixir -- and thus Phoenix -- are very far from "pure", "dogmatically perfect" or any such other academic ideals. Really not sure where you got that from? > What's easier for someone to learn? This is extremely subjective and varies from person to person. Are you claiming that Rails' way is factually superior to learn? To me both are quite straightforward and both require you to have learned some concepts beforehand. And both aren't exactly English with which you command the machine, no? > If Phoenix wants to increase their adoption, then I think they need to accept that things like this matter. Ever since I dropped off the mainstream tech train and started working on the sidelines I've noticed something extremely curious which is happening very consistently: the people who work with mainstream tech always assume that the smaller community wants more adoption. There have been a number of discussions on ElixirForum about this and various important figures of the maintainers' teams have openly said that they aren't aiming to make the language and its stack more popular; they want to make useful tech. One example is the recent Phoenix 1.5.0 release which now comes integrated with LiveView. A lot of people apparently don't want to deal with JS because at least 50% of the new posts on the forum since the announcement have asked exclusively about LiveView. So again, the maintainers aim to make useful tech, not to trend on Twitter, dev.to, StackOverflow, or anywhere else really. --- This became rather long. I apologise for that but still wanted to address several misconceptions that seem to have arisen in this discussion.
- joelbluminator 7y agoFor years several Elixir cargo cult members are trying to preach to the Rails community to make the move and join them. But performance! But functional programming! Nobody cares guys. If performance and functional programming were critical in our domain we wouldn't have been Rails programmers right? I suspect most of the Ruby devs who got bored with Ruby already made the move to Elixir. The rest just read posts like this with amusement. As if concurrency is all we think about at work.
- pdimitar 7y agoThis is putting words in the mouths of other people and is close to a flame bait. (Not to mention your gross generalization of the members of a not-small community.) 1. The Elixir community doesn't seem to aim for popularity (at least several important maintainers have said so on ElixirForum). 2. The tech is useful, scales very well and helps with the hosting costs by using less resources. That's an objective fact, proven in many blog posts where people sat down and measured. 3. Concurrency and parallelism are extremely important and will get more and more important as our CPUs can't get faster single-core performance and are just getting more cores. It's OK if you don't care about any of those things. Really. I personally never got offended if something I like is disliked by others (as we should all). But making a strawman and then crushing it is not a productive way to discuss either.
- joelbluminator 7y ago> The Elixir community doesn't seem to aim for popularity (at least several important maintainers have said so on ElixirForum). Wow, then why does every Rails thread has an Elixir guy trying to tell us what an inferior software we're running? For the sake of humanity? > and will get more and more important as our CPUs can't get faster single-core performance and are just getting more cores. I don't think it will become more important in web dev world than it is now. We're here churning out back office CRUD apps like crazy, I don't know what you're doing. For a small team trying to get something up and running this really doesn't matter and that's what Rails is optimised for. If scale ever matters, if you scale that big, you probably already have the resources to deal with it. For the few startups that have huge scale + have very scarce resources and Elixir works well for them - great! I have no issues with that at all.
- cutler 7y agoCan you elaborate how Rails maitenance is "much higher" than with Laravel given that Laravel is PHP's version of Rails?
- pdimitar 7y agoThis is what I have been told by a former Rails dev who is now doing Laravel. He said that Rails has much more automatically injected code that behaves in a way you can't anticipate intuitively (and many libraries encourage and extend that behaviour). As a former Rails dev myself I agree with that part.
- cutler 7y agoBut isn't this exactly what Symfony users accuse Laravel of - too much magic? Laravel's facades are as magical as anything in Rails and Laravel does a lot of code injection. It takes more than one man's opinion to establish a truth.
- pdimitar 7y agoIn that case I have been misled by that acquaintance of mine and I apologise for unintentionally spreading misinformation. (In that case, let's replace Laravel with Phoenix.)