19 April 2014

The Ruby Reflector

Topic

Backbone

  Source Favicon
Email

Yeoman is a toolchain for front-end development utilizing Grunt and Bower to scaffold, develop, and build webapps.

There are official generators maintained by the Yeoman team such as generator-angular for AngularJS and generator-backbone for Backbone.js .

Yeoman also supplies framework specific generators for Backbone and Angular like yo backbone:model Foo . With Yeoman, you can spend more time writing code and less time configuring out of the box.

robots.thoughtbot.com Read
  Source Favicon
By Ryan Foster of Viget.com Blogs 5 months ago.
Email

Let's look at some practices we used to leverage Backbone on Vitae profiles.

Bootstrapping data

This isn't a single-page app, so we weren't going to try to load data on demand once the Backbone kicked in. First, it's totally unnecessary because we have control over what gets rendered from the server. Second, any lag is going to be (painfully) felt by the user.

Don't : serve the page, load Backbone, call back to server for page data

Do : serve the page with …

viget.com Read
  Source Favicon
Email

…its list of entry IDs, which will need to be associated when building up the structure within the Backbone collection.

The Backbone Application

Let's look at the Backbone collection: # app/assets/javascripts/collections/feeds.coffee class @App.Collections.Feeds extends Backbone.Collection model: App.Models.Feed url: '/api/feeds' parse: (response) => @ entries = response.entries response.feeds

parse is doing most of the heavy lifting here, assigning …

robots.thoughtbot.com Read
  Source Favicon
By Nate Hunzaker of Viget.com Blogs 8 months ago.
Email

…a Backbone.Model and Backbone.Collection; hooking into the events Backbone provides to support the existing functionality. var NewsModel = Backbone.Model.extend({ urlRoot: '/my/api/news' });

var NewsCollection = Backbone.Collection.extend({ model: NewsModel, url: '/my/api/news' });

The Backbone.Model and Backbone.Collection can already handle fetching data from the server using the fetch method, so the getNews method we saw earlier can be completely …

viget.com Read
  Source Favicon
By Holly of Blog | The Working Group 8 months ago.
Email

…: You should now how to use this library since it solves many problems for you and is used by Backbone internally

Officially mentioned tutorials - https://github.com/ jashkenas/backbone/ wiki/ Tutorials%2C-blog-posts-and- example-sites

Compare Backbone to X - http://todomvc.com/

Backbone patterns - http://ricostacruz.com/ backbone-patterns/

Addy Osmani's O'Reilly book (free online) - http://addyosmani.github.io/ backbone-fundamentals/ …

blog.twg.ca Read
  Source Favicon
By Giles Bowkett of Giles Bowkett 9 months ago.
Email

So I felt like Backbone had a fundamental philosophical superiority, so if I wrote better software with Ember than I did with Backbone, that didn't say anything good about me as a developer. And for a long time I've been thinking that if I truly understood evented programming, GUIs, and browsers, I'd be better with Backbone than with Ember. (I might be overthinking the problem here, but that's kind of what we do.)

There's another reason I felt Backbone should …

gilesbowkett.blogspot.com Read
  Source Favicon
By Lee of Blog | The Working Group 12 months ago.
Email

ADO.NET, Entity Framework, Delphi, HTML5, jQuery, Ajax, Backbone, JS, PHP, XML, Razor, ISS, Apache, ASP.NET, MS SQL, CardDav and CalDav protocols

Have created an API for a production environment

Experience with additional database platforms such as Postgres, Redis and Mongo in a live production environment

Able to work in a * nix/ Linux environment

Use source control exclusively, Git preferably

Use ftp to deploy applications

Experience programming …

blog.twg.ca Read
  Source Favicon
By Andrzej Krzywda of Andrzej on Software 12 months ago.
Email

…Congifuration. Rails in JS. Ember is like Rails, Backbone is like Sinatra. At some point you have to use more plugins if you start with something minimal. A lot of pain if you want to write a big app with a small framework.

Andrzej : I disagree. I would use a framework for a prototype or for a small app. Once the app grows, it has its own world. I don't want the framework to go into my way. I want to have the control over the applications. I'd use Ember for smaller apps, …

andrzejonsoftware.blogspot.com Read
  Source Favicon
By Todd Hoff of High Scalability 12 months ago.
Email

…, CoffeeScript, Sass, jQuery, Handlebars, Backbone, Underscore, Sinatra, Clojure, Java, Hadoop, Cascalog. Highlight: "You don't need a database, you need a [expletive deleted] cache" So that's what we did, we traded our database for a cache.

Don't miss all that the Internet has to say on Scalability, click below and become eventually consistent with all scalability knowledge...

highscalability.com Read
  Source Favicon
By miraculous1 of mir.aculo.us 1 year ago.
Email

We've spend a lot of time getting Backbone to work properly, and the ease-of-use quickly deteriorates when your models get more complex . It's a great choice for simple stuff, but email is far from simple. We also had to add yet an other extra layer of processing to generate " ViewModels" on the server because the normal Rails serialization of objects wouldn't cut it.

What you end up with is building a layer cake that doesn't add any value and slows down development. …

mir.aculo.us Read