6 ms·
Now that Rails isn't the cool new thing anymore, is it still a good choice for new projects? For the new year, I'm thinking about the programming landscape and
by criddell 11y ago
Now that Rails isn't the cool new thing anymore, is it still a good choice for new projects?
For the new year, I'm thinking about the programming landscape and contemplating what I want to learn next. I've tinkered with Ruby on Rails in the past and think DHH is on to something with the doctrine he has laid out. I've only scratched the surface of Rails, but it still seems pretty neat to me. A deeper dive would be fun.
On the other end of the spectrum, Dart + Angular is appealing in part because I'm a fan of some of the Google developers working on Dart. While Rails feels like it is entering a comfortable middle age (or at least adulthood), Dart feels a little like a car being assembled as it cruises down the interstate. It's new and maybe a bit dangerous.
Both projects are super-appealing to me. Unfortunately time constraints prohibit me from chasing both and I'm interested in opinions especially of Rails people. Are you still excited about it?
- chrisseaton 11y ago> Now that Rails isn't the cool new thing anymore But why does that have an impact on what tech you use?
- deleted 11y ago[deleted]
- criddell 11y agoIt's a good question and it's really what I'm asking about. The only web-stuff I've worked on in a commercial settings was a long time ago using Java and Tomcat. At the time, it was the cool new thing. I think that some of the pain points of languages and frameworks from that era are what prompted DHH to develop Rails (I'm specifically thinking about convention-over-configuration and admit I could be totally wrong here). So today, I probably wouldn't pick Java and Tomcat for a personal project just because I know it won't be as fun and I won't be as productive as I would be with different technology. Has Rails been eclipsed in a similar way?
- halostatue 11y agoNo. I’m running a team of developers where we are using Rails as our first-line tool, but we are also committed to using the best tool to solve the jobs at hand. So far, we have only needed to add Lua for a small piece of what we are doing because we can reason about what our logic is supposed to be doing quickly and easily in Rails. Less than a third of my team were Ruby or Rails developers before joining us, and we are always pushing forward on learning more so that we have a great bucket of tools available as we try to solve our business problems and we hit those things where trying to reason about the problem is difficult in Rails, or where performance matters more than readability and code clarity.
- edwinnathaniel 11y agoI'll pick Java, SpringMVC, Maven, JUnit+DBUnit, and FlyWay (DB migration) and any appserver (jetty, tomcat, TomEE, glassfish) thrown at me except from the BigCos (WebLogic, WebSphere). Those tools are pretty close to what Rails give you (notice the View/UI is open for anything... Rails View is slightly nicer as it has better templating capabilities but ... not a deal breaker for me). It's not sexy, it gets the job done, and I know it'll run for at least 5-7 years with minimum hassle. Plus it's easy to be productive on Java project...
- nemild 11y agoEven as someone who uses the newer languages/frameworks, I wish I could upvote this statement multiple times: "It's not sexy, it gets the job done, and I know it'll run for at least 5-7 years with minimum hassle."
- jazzyk 11y agoUpvoted. I am tired of getting the "uncool old fart" looks every time I propose similar stack. You CAN do cool stuff with established tech plus have a peace of mind that you will not run into any "surprises".
- criddell 11y agoIt makes total sense to mitigate risk on a commercial project by going with established (well supported, well understood) technology. No argument. But for a personal toy project where you want to be surprised, would you choose something like Ruby on Rails?
- mokkol 11y agoInstead of cool & new, think about Rails is stable and mature :) And yes I think you should consider to use Rails. In my opinion it is one of the best back-end frameworks out there.
- aikah 11y ago> Rails is stable Rails certainly is mature, its APIs are not stable at all. With every version,even minor, there are annoying changes that often break 3rd party plugins. It shouldn't happen. That's why JEE has specs, as heavy as they get 3rd parties can always refer to them in order to write custom code. Rails is anything but stable. Hard to complete a single tutorial online without running into API issues.
- Luyt 11y agoI got my first error right after `rails new myapp` and `rails server`. After some Googling I found out that apparently I had to install Node.js also, but the error message wasn't very clear. This was the official 'getting started' rails tutorial on the rubyonrails.org site [0]. [0] http://guides.rubyonrails.org/getting_started.html http://guides.rubyonrails.org/getting_started.html
- nik736 11y agoWell, you need a javascript runtime, eg you could install nodejs, that's what the error says. I agree that it might be confusing as a rails beginner, but Rails uses it to convert CoffeeScript files and for minifying and merging all JS stuff into one file.
- akavi 11y agoI'm not sure I understand why "comfortable middle age" is a negative. Unless the argument is that Rails has either a) accumulated damaging cruft or b) missing out on important new features/paradigms, "comfortable middle age" seems like a huge selling point, right? Battle-tested, mature, a huge amount of shared knowledge, etc?
- criddell 11y agoI didn't intend for that to be a negative, just that it's a different point in it's life. I'm not trying to make any argument about Rails, but am very interested in your opinion. Has it accumulated cruft? Is it missing something that newer frameworks have embraced?
- jaredcwhite 11y agoI didn't learn Ruby/Rails back when it was the "cool new thing" -- I resisted and tried to wrestle PHP to my liking. Eventually I gave up and threw my hat in the ring, and I'm so glad I did. My advice is to learn Rails first, and then take all the wonderful things you've learned and apply them to other languages and ecosystems if you wish (many libraries and frameworks for Javascript and other langs are inspired by Ruby or Rails). I don't think it's as valuable to attempt the reverse...
- lmm 11y ago> Now that Rails isn't the cool new thing anymore, is it still a good choice for new projects? It's probably the best choice for a straight-up CRUD webapp (as was always the case). I wouldn't want to do a project with nontrivial business logic in an untyped language these days (having seen how little flexibility you have to sacrifice for safety in a modern typed language), but your views may differ.
- mattmcknight 11y agoAgree on CRUD, but on typing I'm the opposite. Anything sufficiently complex logic, especially etl or projects with multiple models of the same entity, is easier for me in a language with duck typing. It's just amazing how all our brains adapt slightly differently to the different sorts of problems we face and the bag of tricks we use, in addition to the different languages and tools.
- oldmanjay 11y agoI feel bad for anyone who has to swim in your wake. People who embrace dynamic typing generally create write-only code that no one can maintain, since they labor under the delusion that little things like clarity of purpose are a waste of time.
- mattmcknight 11y agoDuck typing vastly reduces the amount of code one has to write that does nothing, making the purpose of the code much more clear. The tradeoff is in compilation, not clarity of purpose. The code tends to be more flexible to changes in the underlying data, as it is easier to modify! A sad example of those defending static typing are the Java programmers. I point out that Java supports duck typing via reflection, even if the syntax is painful. They say they don't use reflection, they use Spring. [Head in hands] In any case, there are many happy programmers in my wake, they don't need your sympathy! :-)
- kazagistar 11y ago
- song 11y agoWhen doing projects on the side, I like to play with node.js or Elixir but when I have to develop projects for paying customers, I tend to gravitate towards Rails... Few reasons for that: 1. I'm extremely productive and fast at developing in Rails 2. It's much easier for the client to get an app that's develop for a Framework that's been there for a while, is stable and will continue to be there 3. Ruby is a nice language and the principles behind Rails resonate with me (so it's not like Java and Spring which I was eager to get rid of when I switched to Rails a bit over 10 years ago) That doesn't mean that I don't use node.js for certain specific use cases on client projects... But my goto framework is Rails
- kyllo 11y agoI would say yes, as long as you're building a greenfield project that is a database-driven web application, where your priorities include high productivity and quick time-to-market. It's basically been the default choice for web startups for several years now, lots of startup devs know it, and there are battle-tested libraries available for just about anything you want to do with it. And it is still aggressively adding new features, e.g. first-class support for websockets just came out in rails 5.
- Skoofoo 11y agoTools don't necessarily become less useful with time.
- ebiester 11y agoIt depends on what you want to build. I find nothing novel in either tool, so I don't think it's good to learn in a mind-expanding sense. For building medium-sized external-facing apps, rails is one of the better choices out there. For building long-running client-side applications, angular isn't a bad choice (though I prefer Ember for that constraint, personally.) If you live in the land of Oracle or other proprietary databases, I wouldn't suggest rails. It has some rough edges in my experience. Otherwise, I think you should find a project and run with it, or join a place already in the rails ecosystem. I wouldn't learn it for its own sake.
- patio11 11y agoI've been programming Rails since 2010, and still feel like it's far-and-away the most productive I've ever been for turning SQL into HTML and then user actions back into SQL. If your task is SQL into HTML and then user actions back into SQL, with a few "sprinkles" of Javascript on top of it, Rails will not steer you wrong. I have also recently been doing, for the first time in a long while, work which is not SQL into HTML and then user actions back into SQL. Rails was never seriously considered for that part of the project. This was the correct call, and the new stack (GoLang and React) are fun things to have in my toolbelt, but there have been a few points this year where I've said "I just spent two hours on something which would have been 4 lines in Rails and I'm not sure I'm done yet."
- criddell 11y ago> turning SQL into HTML and then user actions back into SQL You've really distilled it to it's essence and that has given me a lot of clarity. The company I work for uses an issue tracker written with Ruby on Rails (Redmine). There's a few things I'd like to change and so I think I'm going to spend the first part of this year getting comfortable with Rails and making a few changes to Redmine that I'd like to see. Then, I might transition to Dart and see if I can put together an interesting browser-based client.
- sb8244 11y agoRails is an awesome framework to develop in. For me, however, it is less about Rails and more about the community. Take for instance the popular Ruby job processing system, Sidekiq. It integrates very easily into Rails and makes that whole async job thing painless. I haven't seen anything as sophisticated in other languages. ActiveModel is also a very nice library to work in, and having it by default is nice. I personally do Rails backend + Angular frontend and it is a very rewarding stack. I get the power of Angular, but the simplicity of Rails in the backend. DHH is wholly against that, but it works really well.
- resure 11y agoHe is not against angular-like frameworks, he is against attempts to apply them everywhere.