Live data from Hacker News

What's new in Rails 5?

blog.michelada.io

41–50 of 62 posts

Re: What's new in Rails 5?

#41

Earlier quoted context omitted.

Turbolinks can create problems even to those who don't use them explicitly, but Coffeescript can't: if you don't like it, just don't use it, and it's as if it wasn't there. How would removing it from the asset compiler help you in any way?

There's a cultural impact - it's hard to look at Rails without being pushed in that direction. Does it directly impact me now that I choose to ignore it? No. Does it impact a newcomer, particularly one that's into JS? Yes.

This nifty web app is a good starting point: http://js2.coffee/

It's not perfect but it's how I learned coffeescript.

Other than that, I don't think Rails necessarily pushes either for/against coffeescript. You can either use it or not. Plenty of rails apps have been written in plain 'ol js.

Re: What's new in Rails 5?

#42

I'm a long-time Rails developer and unfortunately this release doesn't excite me, though I appreciate all the hard work by the core team/continued support from 37signals. The reason is this: The intent of Rails is to make writing web applications easier, but that writing web applications actually got much more difficult for me as a Rails developer when Angular and Ember and then later React got popular. I love Ruby,…

The intent of Rails is to make writing web applications easier, but that writing web applications actually got much more difficult for me as a Rails developer when Angular and Ember and then later React got popular. I love Ruby, but I respect the fact that the Javascript-client-side-heavy/"single-page" part of the app is where the magic is for at least a few years now- really several years.

Not really sure why you say that whilst TL3 tries to solve exactly that issue in a simpler, classical way [0]

I love the idea of being able to use the usual Rails helpers combined with JS in a React-kind of way and at first sight that's what TL3 could manage to do.

[0] by that I'm referring to the clean HTML that still looks semantic and has all the normal separation of views and styles whereas in React et al if one's inspects the code is just looks horrid.

Regarding SPAs the isomorphic approach seems really contrived at this point and for most web apps TL3 seems like an elegant solution whilst keeping the full power of Rails intact.

Sure there are cases with heavy UI apps that require components et al but for my use cases TL3 + Rails5 looks like a breath of fresh air, maybe a middle step to full SPA.

Re: What's new in Rails 5?

#43
post #6

This is a great summary, and there look to be some really interesting things coming in Rails 5. Two thoughts: 1) I hope ActionCable is as seamless to integrate and works as well as Rails features ought to; you can, of course, achieve web sockets right now using Faye or various other implementations, but it's quite complex to get right (though the faye-rails gem is pretty handy) - and realtime functionality is becomin…

>2) I wish they'd just give up on Turbolinks Ditto for Coffeescript. I realise you can't just remove it, but the whole dev community is raving about ES6 - there's a whole of JS devs who could be a lot more interested in Rails.

You can choose to not use coffeescript in any Rails project.

As for ES6, there is the sprockets-es6 gem. According to their github gem, their goal is to get in es6 support into sprockets 4. This, obviously, is not a perfect solution - but I think this is going in the right direction.

Re: What's new in Rails 5?

#44
post #40
post #25

Earlier quoted context omitted.

> so I often daydream about what I'd build if I were given the chance. In a sense I'm in the same position as you, except that it's probably never going to happen and that I've been thinking about this for years. This was me, until three years ago. I am freelancer, all my gigs, clients and my whole network was about Drupal. Hell, I still receive requests for Drupal work on a weekly basis: my name was established, so…

> Move to a community that encourages clean code, "craftmanship", designs, patterns and so on, you will become a better programmer. If that is what you want. Hopefully, Drupal 8 is going to bring all those fun parts again.

I hear a lot of grumblings from my fellow coworkers that the drupal 8 release is taking a long, long time.

Re: What's new in Rails 5?

#45
post #20

I thought DHH recently announce on Twitter there will be Basecamp 3, which is based on Rails 5. And there will be Turobolink 5 too. I was guessing they have some more things to announce soon.

Turbolinks 3

Re: What's new in Rails 5?

#46
post #6

This is a great summary, and there look to be some really interesting things coming in Rails 5. Two thoughts: 1) I hope ActionCable is as seamless to integrate and works as well as Rails features ought to; you can, of course, achieve web sockets right now using Faye or various other implementations, but it's quite complex to get right (though the faye-rails gem is pretty handy) - and realtime functionality is becomin…

I used to disable Turbolinks as well, but I took the time recently to use Turbolinks 3 (off master) in a project and have been really impressed with what you can achieve.

The server-side partial replacement, for example, is wonderful.

Re: What's new in Rails 5?

#47
> Without a doubt, it is time to prepare our applications for the upgrade; just because of the performance improvements are worth it. If you are on Rails 4.x, the upgrade is almost painless.

Shouldn't it be called Rails 4.3? That been said, you could get the performance improvement by just upgrading to ruby 2.2.2

Re: What's new in Rails 5?

#48
> Without a doubt, it is time to prepare our applications for the upgrade; just because of the performance improvements are worth it. If you are on Rails 4.x, the upgrade is almost painless.

Shouldn't it be Rails 4.3? That been said, you could get the performance improvement by just upgrading to ruby 2.2.2

Re: What's new in Rails 5?

#49

Earlier quoted context omitted.

I think you can try solve the "rails no longer excites me" problem by finding a more exciting language than Ruby. There are more than plenty of them out there.

Like what? When considered as a whole of the combination of what is possible with the stdlib and all of the best gems available, Ruby can be written clearly and tersely. Those are the two first and most important things that I look for to do general web application development. From that perspective it beats Javascript, Python, Php, Java, C#, Go, Scala, Erlang, Haskell, OCaml, and every other language I've used. I'm…

It's an exciting time for Haskell developers right now, we just got an a awesome new build tool (stack), an incredible new server-side framework (servant) and our compile to JS tool (GHCJS) is improving by leaps and bounds.

Re: What's new in Rails 5?

#50

I'm a long-time Rails developer and unfortunately this release doesn't excite me, though I appreciate all the hard work by the core team/continued support from 37signals. The reason is this: The intent of Rails is to make writing web applications easier, but that writing web applications actually got much more difficult for me as a Rails developer when Angular and Ember and then later React got popular. I love Ruby,…

"That's the power and diversity of web programming! As long as it spits out HTML, you can power your server by steamboat, no one knows/cares."

https://twitter.com/dhh/status/576425023222755328

Post reply on HN