10 ms·
Rails 5.0.0.rc1
- e12e 11y agoAre there anyone that can chime in on the current long-time support story for rails? How much commitment could one expect from the Rails community towards long time software life-cycle? To clarify, if I want to implement a solution (say a web/service portal) now, that I have a reasonable dev budget for, and a commitment to maintain with security updates (and bug fixes) for, say the next 10 years -- is rails 5 likely to be a viable solution? I always had the impression (possibly false) that the Rails community was very focused on rapid development, but that it had a tendency to leave dead projects on the road-side to fend for themselves -- and that maintaining a project that was a few years old sort of implied massive forward-porting if you wanted to have a semblance of security updates? Is my impression way off? Is there a "safe path" if one sticks with the Rails core?
- brianwawok 11y agoCurious to this as well. Django had a pretty public and reasonable long term support policy. However 10 year is a bit much. What did anything look like 10 years ago? I could see 3 or 4 year cycle though.
- e12e 11y agoAccording to wikipedia, Hacker News Launched February 19, 2007; 9 years ago. [ed: Other things off the top of my head, AFAIK both from the 90s: slashdot.org, webhostingtalk.com, twitter is from 2006 (obviously twitter and slashdot have been pretty much rewritten, not sure about wht.]
- brianwawok 11y agoRewritten is not the same thing as having to upgrade a library. Even most enterprise apps upgrade the big libraries within 4 or 5 years due to the CVEs that pile up (see struts 1)
- heartbreak 11y agoAt RailsConf this week Jeremy Daer specifically mentioned that Basecamp (formerly 37signals) was maintaining projects deliberately on older versions of Rails.
- tjbiddle 11y agoRails has really stepped up their game after Rails 3; really nailing down the API and conventions. Upgrades are much easier now (Moved from Rails 4.2 to Rails 5 in an short afternoon). Just definitely keep up with the minor releases; but the major releases will stay in good standing for a while too! Lock down all your gem versions and only update as needed; so if they ever break on a move to the next major version - you can act accordingly.
- gurkendoktor 11y agoWith any luck, Rails LTS will maintain a fork of Rails 5 when the time comes: https://railslts.com https://railslts.com
- shrugger 11y ago40 points and no comments... Can we please discuss this? I would like to know if this makes Rails worth learning for someone who knows Ruby but doesn't know rails. I have found my ruby knowledge to be less than marketable, and I want to step my game up. What do yall think?
- dankohn1 11y agoI really can't recommend Hartl's Rails Tutorial highly enough. https://www.railstutorial.org/book https://www.railstutorial.org/book It not only teaches you Rails, it teaches Github and Heroku and gets your first first web app deployed at the end of the first chapter. And, it's free! There is also enormous hiring market for Rails developers.
- cutler 11y agoI'm not sure about that. Search Indeed.co.uk's API (which removes duplicates) for - "Ruby" title:(Rails or RoR) - and you'll find 101 jobs listed in London. Repeat the search for United Kingdom and there are only 158. So 64% of Rails jobs are in London. Compare that with PHP - 2102 jobs in the UK, 672 of them in London and you find a more even distribution and a much higher number of jobs. Rails is still a niche framework and has never come anywhere near matching PHP's adoption despite all the hype.
- pmontra 11y agoI almost want to say thay this is an unfair comparison but that would also be unfair. Nothing matches PHP adoption. It started 10 years before than Ruby and Python web frameworks and its runtime model is ideal for free hosting. That gave it mindshare and market share. It's still one of the ugliest languages even if it's slowly getting a face lift. At the time its competitors where Java and Perl. Perl could have the same runtime model and was the first language for the web thanks to CGI.pm. PHP won because its simplicity and the commands embedded in the HTML page. Java is another world and only suited to corporate developers especially because there could be hardly a free Java hosting. Any of them now, not counting the AWS Lambda free tier?
- jlhonora 11y agoAnyone around using it in production? Thoughts?
- raitom 11y agoI made a new internal company project with it. Nothing really changed or broke since 4.2 but it seems faster. I still haven't used ActiveCable though.
- deleted 11y ago[deleted]
- mhoad 11y agoBasecamp is already using it in production for what it's worth.
- schneidmaster 11y agoI built a production app recently, Rails 5 (beta -- surprisingly stable) + Heroku + Passenger, separate React + react-router frontend. It's been fantastic so far -- has handled a decently sized production load, including some pretty heavy ActionCable usage, with no problems. There's a few tricks to getting it working on Heroku though; I've been meaning to write a blog post about it but haven't found the time.
- tjbiddle 11y agoWhile I haven't moved into production yet; nothing broke when I migrated my Rails 4.2 application - just had to tweak the few things to new conventions.
- pmontra 11y agoI've been running it in production since the first days of the year with a small new application. No problems whatsoever writing, testing, deploying and running it. I don't expect particular problems upgrading Rails 4.2 applications. I didn't use ActionCable because my application doesn't need it. I experimented with it since the first version, which I plugged into Rails 4.2. It had some quirks that were fixed. It works well. There is obviously code to write in the client to handle the websocket but it's pretty much standard boilerplate. I expect some gem will appear implementing it in some clever helper, except the code we really have to write.
- deleted 11y ago[deleted]
- tarr11 11y agoHas there been any talk on whether Action Cable will be supported by Heroku?
- danielrhodes 11y agoIt's supposed to work, but I haven't gotten it to work yet. :-/
- lyime 11y agoI have actioncable running on heroku. Let me know if you need help.
- schneidmaster 11y agoI'm actually currently running a production Rails 5 (beta) app in Heroku using ActionCable, in-process. It's an API only application (React + react-router frontend) but it's handled a decently sized production load without any trouble. Feel free to ask if you need tips getting it working :)
- stigi 11y agoIn case this is the first time you hear of Rails 5 and wonder what's new, this post sums it up: http://weblog.rubyonrails.org/2015/12/18/Rails-5-0-beta1/ http://weblog.rubyonrails.org/2015/12/18/Rails-5-0-beta1/
- gnufied 11y agoI think a more useful link is - https://github.com/rails/rails/blob/fbdcf5221ad7ea3d40ad09651962fc85d101dd67/actioncable/CHANGELOG.md https://github.com/rails/rails/blob/fbdcf5221ad7ea3d40ad0965... Overall I expect this release to be more lightweight memory wise. This also should first release of Rails that includes ActionCable - https://github.com/rails/actioncable/tree/archive https://github.com/rails/actioncable/tree/archive
- andrewfromx 11y agois it true "rails new backend --api" will first prompt and ask "are you sure you don't want to use golang?"
- raitom 11y agoWho want to use that shitty Go syntax when you can use Ruby?
- chc 11y agoGo the language, per se, seems like a pretty poor substitute for Rails the application framework.
- meow_mix 11y agoAnother person with a totally pointless comment. Really tired of people comparing Go and Ruby. You can "Go" away
- andrewfromx 11y agosorry. I wrote it too quickly like I was just chatting with a friend. I mean no disrepect to rails. I just recently learned golang after working for years in rails. The API thing made me go, wow, if didn't need to worry about erb stuff and it was 100% json, I think I'd rather do it in go. But you are right. My comment was just being silly. There's no place for that on hacker news.
- jon-wood 11y agoFor what it's worth I thought it was amusing, in a slightly trolly way ;) Just to remain slightly on topic, you can't really compare an entire application stack like Rails with a language like Go. Maybe you could do with something lighter like Sinatra. For me Rails big win isn't that it's high performance (although done right it can handle a decent volume of traffic), but the fact it's configured out of the box. You can be productive on day one, rather than wiring together low level libraries for database access and the like. Finally having said all that I'm having a really good time with Pliny, Heroku's Ruby API stack, which feels like I imagine Rails might have done if it were built specifically for REST APIs rather than full applications with a UI.
- whizzkid 11y agoIt is great to see another milestone is almost done and stable version will be released soon. Highlights for me will be: - Actioncable (real-time communication over websockets) - Rails-API is merged into core. - Min ruby version is 2.2 (performance improvements via Garbage Collector) - Little bit of code cleanup (less code to run) - Turbolinks 3 (single-page applications) - Evented file system monitor (faster development environment) I think they have done a great job with the release. Especially removing Celluloid, Redis, and EventMachine as a dependency for ActionCable part. I only have one small concern about the Turbolinks part. It hasn't been my choice until now for the projects because of the compatibility issues with other libraries. It always felt like the Quicktime player on Mac OS. Sure you can use it but you better off with something else. But I really want it to be something i can use out of box this time. Partial rendering is not there yet but lets wait and see how it turns ut.
- tarr11 11y agoFirst thing I do when creating a new rails project is remove Turbolinks. It subtly breaks other gems all over the place in difficult to discover ways.
- dasil003 11y agoDo you mean Rails gems or 3rd party gems?
- dgobaud 11y agoand spring which causes all types of weird random bugs from old cached code in development
- timdorr 11y agoYou should try it again. It's gotten quite good at automatic reloading. I use it with Rspec and as long as you've got spring-commands-rspec[0] installed, it's never a hassle. [0] https://github.com/jonleighton/spring-commands-rspec https://github.com/jonleighton/spring-commands-rspec
- sotojuan 11y agoAside from the latter having a smaller dev environment and community, what's the status of Rails vs Phoenix (Elixir)? Not trying to start a war (I like both)—just wondering if this release changes things.
- cblock811 11y agoI was just thinking about this today. My hunch is that Rails isn't hurting. I havent heard anyone talk about Phoenix in months.
- brightball 11y agoMy guess is that you'll see people who were hitting the limitations of Go end up moving to Phoenix. For Rails users coming to it there are still too many "library x for Phoenix" questions out there. Elixir is great but it's still not ruby. Much like Go, it's not something you can fully appreciate until you've seen the limitations of other approaches first hand. There are so many things that Phoenix and Elixir do that solve major long term problems and ruby's biggest selling point is usually the short term.
- hosh 11y agoI've been developing for Rails since around the 1.2 days. For me, ActionCable seems to excite a lot of Rails developers, but it's no Elixir. 2015 is a watershed year for the Elixir ecosystem. It was like this back in the Rails 1.2 days. Back then, people said the same thing about Ruby. "Ruby is great, but it's still not X." The idea that Rails is very fast for doing quick development is, at this point, a myth. It takes thoughtfulness to write good code, regardless of the language. There's this idea that you can put together a prototype quickly, but in the wild, it ends up being a repository of sloppy code resulting from fuzzy, superficial thinking. Another situation I have seen is this the "perpetual MVP". That is, sacrificing code quality because you don't know if the product is even something that people want. However, when your MVP has users and it starts getting traction, it's not an MVP anymore. The fragility that comes from sloppy coding comes back to bite you. I think developers confuse Ruby's agility with their own sloppiness. I think Elixir is interesting not just because it solves those long term problems, but it is also as agile in the short term -- provided that you are not a sloppy coder.
- fareesh 11y agoAny insight on pros and cons of Rails + ActionCable vs. Rails + your own socket.io based node server? I've been getting by with the latter whenever the need arose.
- amk_ 11y agoAuthentication
- danielrhodes 11y agoFewer moving parts. ActionCable is stupidly simple to get up and running.
- davidvee 11y agoActionCable is super simple to setup since you can keep the same style as the rest of your Rails application. The only downside at the moment is the support/documentation: the real time messaging app, I'm working on is starting, to get more complex and it would be better to get more support. But hey, it's still in beta... so better wait if you don't want to get your hands dirty ;)
- xutopia 11y agoFor those on the fence about learning Rails it's one of the most in demand frameworks out there. I don't just mean in terms of sheer numbers node but in terms of awesome jobs associated with it.
- cutler 11y agoI don't know about where you live but in the UK job market, as measured by Indeed.co.uk, PHP:Rails is 13:1 with only 158 Rails jobs in total, 2/3 of which are in London. That's hardly "one of the most in demand". I say this as someone who dislikes PHP intensely. It's just so frustrating when you've invested so much in learning Ruby & Rails to then find jobs are very thin on the ground.
- jon-wood 11y agoI don't think job sites are really the best metric for Rails jobs - in my experience no one bothers posting them there because the people who know Rails well aren't trawling job sites for work. When I was looking for a new job recently I was mostly looking at places like Stack Overflow jobs, along with the London Ruby User Group mailing list which tends to get three or four job postings a week - I haven't looked at a mainstream job site since about 2008. If you want a better sense of how much work there is add a few years of Rails experience to a Linked In profile and watch the recruiters start circling.
- slantaclaus 11y ago
- domparise 11y agoFight project bloat and misguided architectural patterns! Use Meteor and save yourself from all the headaches! Make webdev great again! #neverrails
- schneidmaster 11y agoSuper excited to see Rails 5 hitting stability. I've recently built a production Rails API on 5 (the beta -- it's been shockingly stable) including ActionCable, with a React + React-Router frontend, handling a pretty good-sized production load on Heroku + Passenger. AMA if you want a developer's/user's perspective on Rails 5 :)
- ryanjodonnell 11y agoFor reference when you say "pretty good-sized load" what are you referring to?
- schneidmaster 11y agoThus far, peak at about 3000 REST requests per minute and 400 simultaneous ActionCable (websocket) connections. We're still scaling up the app, as we just launched it about a week ago, but we haven't yet hit the limits of the platform.
- karmajunkie 11y agoHow many dynos does it take to serve that up, just out of curiousity?
- schneidmaster 11y agoActually just 1 Performance-M dyno. With Sidekiq for external/resource-intensive requests, and a pretty large pool configured in Passenger. ETA: It doesn't get as much press, but ActiveJob is one of my favorite parts of Rails 5. It's an agnostic implementation of background jobs -- ActiveRecord : (Postgres, Mysql, etc) :: ActiveJob : (Sidekiq, Resque, etc). Very nice, flexible syntax and it helps make your application platform-agnostic. Second ETA: As rapind pointed out, ActiveJob has actually been available since Rails 4.2.
- rapind 11y ago
- ksec 11y agoI am pleasantly surprised to see anything Rails or Ruby in the front page of HN again. Most of the time people dont vote on it anymore. Is Rails 5 any faster then previous version?
- dynjo 11y agoWe are already running https://slimfaq.com https://slimfaq.com in production on RC1 and other than Turbolinks pains it was quite straightforward.
- notsotrue 11y agoWhile I love Rails, I've stepped away from it over the past couple years in favour of smaller frameworks. While it's nice to have a kitchen sink approach when it applies, for SPA's, I found I was using very little of the sink, and the sink often got in the way. Is Rails 5 doing a better job of letting you pick what parts you want, or is it still predominantly focused on an all or nothing approach?