Live data from Hacker News

What's new in Rails 5?

blog.michelada.io

11–20 of 62 posts

Re: What's new in Rails 5?

#11

Minor clarification: what i meant below is I plan to build a portal with major feature being CMS, not planning to rewrite an CMS from scratch, instead I will source in Github for the module that can be ported/plugged in right away with some modification. ----- Right now, the web frameworks that are on my radar are: Laravel(PHP), Phoenix(Elixir), React+Meteor(JS), and RoR(Ruby). This list is by no means exhaustive, ju…

> Laravel(PHP), Phoenix(Elixir), React+Meteor(JS), and RoR(Ruby).

All solutions have trade-off. Obviously rails isn't adapted if an app is focused on websockets, Elixir gives you good primitives for distributed programming and PHP runs on cheap hosting. Rails is really like "ok , I have like 2 weeks I need to develop a complex CRM for a client" , something in my opinion that cannot be pulled off that quickly with other solutions.

But yeah , there is no silver-bullet. When I read articles like these I wonder if the author really believes it or if he is trolling :

https://www.linkedin.com/pulse/go-dominate-next-decade-ian-e...

Every solution has its share of problems,even Go.

Re: What's new in Rails 5?

#12
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 totally agree with your 2 point. I always turn off turbolink too when I start a new rails project!

Re: What's new in Rails 5?

#13
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 totally agree with your 2 point. I always turn off turbolink too when I start a new rails project!

I didn't use rails since turbolinks appeared, but I really like the idea on paper. Why do you turn it off?

Re: What's new in Rails 5?

#14
post #5

Minor clarification: what i meant below is I plan to build a portal with major feature being CMS, not planning to rewrite an CMS from scratch, instead I will source in Github for the module that can be ported/plugged in right away with some modification. ----- Right now, the web frameworks that are on my radar are: Laravel(PHP), Phoenix(Elixir), React+Meteor(JS), and RoR(Ruby). This list is by no means exhaustive, ju…

As someone who's hosted and fixed a lot of CMS in recent years I'll say this: choose a solution that's fit for the individual purpose. All CMS' suck, a bit like all OS' suck. As soon as you do anything non-standard their inherit flexibility becomes a burden. If you have skills in rails and need an off the shelf CMS find a popular one and use it you like but if you need to create a web 'application' look at Sinatra, r…

It's CMSes and OSes. You're looking for the plurals, so you definitely don't need to use a possessive apostrophe there because there's no ownership in the sentence.

Also, because they're acronyms you pronounce by enunciating the words, my instinct would be to use OS's (as you would pronounce the 's, O-S-es). But that's up for debate.

For example:

The OS's kernel blew up (possessive apostrophe, the OS owns the kernel)

He had a wide range of OSes to choose from (pluralization, there are many OSes)

Re: What's new in Rails 5?

#15

Earlier quoted context omitted.

I totally agree with your 2 point. I always turn off turbolink too when I start a new rails project!

I didn't use rails since turbolinks appeared, but I really like the idea on paper. Why do you turn it off?

By default it's a global always-on feature. I think it's the sort of feature that might be great in certain parts of the application (like tabbed pages) but having globally enabled by default isn't ideal. For me the built-in browser feedback of loading a new page works pretty well, and having to rebuild this feedback in an application so that it works everywhere is simply unnecessary work.

Re: What's new in Rails 5?

#16
post #8

Minor clarification: what i meant below is I plan to build a portal with major feature being CMS, not planning to rewrite an CMS from scratch, instead I will source in Github for the module that can be ported/plugged in right away with some modification. ----- Right now, the web frameworks that are on my radar are: Laravel(PHP), Phoenix(Elixir), React+Meteor(JS), and RoR(Ruby). This list is by no means exhaustive, ju…

I haven't used Laravel, but PHP tends to be relatively easy to get a development environment running as well as deploying on shared host type environments. On the flip side, the application becomes ever intertwined with the host environment, and beyond that, PHP libraries and frameworks tend to lack a lot of discipline that you find in other languages (that is, you find yourself pondering things like, "what if I were…

PHP is shared-nothing, how is 12-factor readiness something of an afterthought? I've worked on numerous PHP applications and services that are scaled out horizontally with less issues than I've had (with that specific use-case, PHP as a whole still has other issues) in doing the same with Node at times. Basically, I'm curious what sort of libraries you're talking about where horizontal scaling breaks them?

Re: What's new in Rails 5?

#17
post #15

Earlier quoted context omitted.

I didn't use rails since turbolinks appeared, but I really like the idea on paper. Why do you turn it off?

By default it's a global always-on feature. I think it's the sort of feature that might be great in certain parts of the application (like tabbed pages) but having globally enabled by default isn't ideal. For me the built-in browser feedback of loading a new page works pretty well, and having to rebuild this feedback in an application so that it works everywhere is simply unnecessary work.

Yeah, exactly. I think the very existence of this site also kind of sums up the problem: http://reed.github.io/turbolinks-compatibility/

Re: What's new in Rails 5?

#18

Minor clarification: what i meant below is I plan to build a portal with major feature being CMS, not planning to rewrite an CMS from scratch, instead I will source in Github for the module that can be ported/plugged in right away with some modification. ----- Right now, the web frameworks that are on my radar are: Laravel(PHP), Phoenix(Elixir), React+Meteor(JS), and RoR(Ruby). This list is by no means exhaustive, ju…

If you need something complex and bespoke, build it yourself with something like Rails/Elixir/Whatever - your choice will depend mostly on your preference of tools/language/community as they are all quite flexible if you know them well. Rails is suitable if you're greenfielding a complex new site (as would be Go or Elixir), Laravel probably if you like PHP (haven't used it), definitely not Drupal, Typo3, Wordpress et…

I despise Wordpress, and have definitely shaved off too many years of my life struggling with its utter insanity that is its core/plugin ecosystem... However, check out Themosis. It's basically dragged Wordpress kicking and screaming into 2015, and considering clients will still sometimes demand the familiar Wordpress admin if you live in agency land, it's a worthy framework to have in your toolkit.

Re: What's new in Rails 5?

#19
post #3

Earlier quoted context omitted.

> choose one for an upcoming CMS project. Thing is, none are CMS's. If that's what you need, why would you start with a framework? Sure it's fun to build and I always think I can do better than the existing CMS's do, but it's never a good use of my time - or good for the client. Please, if you need a CMS, use a CMS. If you need a Content Management Framework (CMF) one of the above could save time. If it's an applicat…

I agree with the above. That said, even if you are doing something new, you don't need to reinvent the wheel – it may be worthwhile taking a look at https://www.contentful.com/ (not affiliated, just an interesting service) and utilising their API to build an application which purely delivers the added value.

Prismic.io is another excellent "CMS as a service":

https://prismic.io

I've used it on a project and was quite pleased. Using their API, separating content publishing from the presentation becomes much more robust than with a traditional integrated CMS that you customize using themes or whatever.

Re: What's new in Rails 5?

#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.

Post reply on HN