RailsCasts Pro episodes are now free!

Learn more or hide this

Jaroslaw Zabiello's Profile

GitHub User: hipertracker

Site: http://blog.zabiello.com

Comments by Jaroslaw Zabiello

Avatar

It's already fixed. binding_of_caller works with Ruby 2.0.0p0

Avatar

There is another one, JS MVC framework for Rails - Joosy. And Node.js is not a client side framework. It's the server side framework.

Avatar

Are you sure? I used Turbolinks with another, similar framework - KnockoutJS - and it all worked OK. But if somebody want to build singe page sit it does not need to use Turbolinks.

Avatar

Unfortunately, Ruby 2.0.0-rc1 does not work with binding_of_caller :(

Avatar

How? It launches an external console, not better_errors. Also binding.pry only set up a breakpoint at the specific place.

Avatar

Once you start using more third party plugins, more advanced UI, own workflow and bindings, turbolinks may be a potential blocker. It can be useful, but only for simple sites, sites without too many legacy javascript code and plugins. So it is not better for every site, for sure.

Avatar

After playing a while with Turbolinks I had to disable it. Too many small problems with other JavaScript code. it also does not fit to more complex scenarios. I wonder why Rails core team decided to add Turbolinks to incoming Rails 4. For more complex site, all those additional side effects are not worth. I think, that full blown Javascript MVC framework (e.g. AngularJS) can be a better way. Not only faster (only chosen parts of the page are refreshed) but also simpler (no jQuery spaghetti hell, thanks to two-way data binding)

Avatar

They did wrong. That's true, MongoDB is not very good for abstracting complex social network structures. But MySQL is not any better either! For that class of problems the best solution is graph database. http://www.infoq.com/presentations/emil-eifrem-neo4j. (for Rails: http://neo4j.rubyforge.org/guides/rails3.html)

Avatar

Rails is not a PHP framework where every request always destroys and creates all variables and object over and over again. In Rails class variables are created once during boot time. They are not recreated with incoming new HTTP request. So in multithreaded mode those variables should not be changed or should be guarded by mutex.

Avatar

What about Knockback http://kmalakoff.github.com/knockback ? It is a hybrid of Backbone and Knockout, seems to take the best parts from both.

Avatar

I think it would be worth to mention ExtJS 4 / Sencha Touch 2. It is more comprehensive and powerful than Backbone. It uses similar approach - client side MVC but Sencha have also validators, a lot of widgets and the killer app - Sencha Designer 2, graphics IDE for fast building the whole application (see: http://vimeo.com/36420727) In all such solutions Rails can be narrowed to be just RESTfull server...

Avatar

From my experience, Sphinx is about 1000x faster than Solr when I have to index several millions rows from MySQL. And Sphinx can use case insensitive searching with different languages. I could not find Lucene collation files nor it was clear how to create them.

Avatar

Hi Ryan, have you ever considered doing a cast about Torquebox? Torquebox supports all Rack-based (J)Ruby frameworks and it comes with job scheduling and asynchronous task scheduling out of the box (no extra installs necessary) Torquebox is the most enterprise-oriented platform I've seen to date.