r/backbonejs • • Aug 07 '15

is backbone still a good choice in 2015?

15 Upvotes

I'm looking to learn a front end framework. I would like the time I invest in learning to pay off well into the future. Is backboneJS still relevant or just hanging around? If you had to start you clientside framework from scratch in 2015, what would you choose?


r/backbonejs • • Feb 20 '19

Backbone.js 1.4 released

Thumbnail backbonejs.org
12 Upvotes

r/backbonejs • • Feb 05 '15

Discussion of the distant Marionette 3.0

12 Upvotes

Not too many months ago controllers were described as a class for things that didn't fit for anything else. Now its described as: A Controller is an object used in the Marionette Router. Controllers are where you store your Router's callbacks and A Marionette.Controller is intended to solely be used within the Router. I wasted quite a bit of time trying to figure out how to use controllers, modules, applications and layouts all at the same time and I eventually decided that controllers were useless only to see them later be described as not for use.

There is the new Backbone.Radio that can be enabled with a small shim file.

I'm a bit unsure of how the Application and Module system will work out as the Roadmap issues are long and winding and I can't seem to understand if modules will still be around or if there will be sub-apps.

Application regions are now deprecated and it seems like more experienced devs have been using Layouts for some time now. I'm considering to use modules to control mostly non-UI processes like waiting loops, uploading, webworkers and websockets because of its start and stop mechanism.

Does anyone have any insights about where Marionette will be and an estimate on when 3.0 will be here?


r/backbonejs • • Mar 08 '16

The Sad State of the Backbone Ecosystem

Thumbnail
benmccormick.org
10 Upvotes

r/backbonejs • • Jan 15 '15

Learning Resources for Marionette js

10 Upvotes

Hey guys, my question goes as followed:

I am very interested in using backbone in a new project that I am starting as the benefits of its use has become strikingly clear to me. That being said, I still crave some kind of opinionatedness (i know, not a word) on how to actually structure my application; which is where marionette comes in.

Unfortunately, while I believe that I have a decent understanding of vanilla backbone though online tutorials (and limited project use), I still feel as if I am not fully grasping the entire scope of the marionette framework.

Do any of you guys know some FREE online resources that will put me on the right track?


r/backbonejs • • Nov 22 '13

Personal project resting heavily on Backbone.js. What do you think?

Thumbnail the.tonelot.us
10 Upvotes

r/backbonejs • • Dec 02 '14

The Case For Marionette.js

Thumbnail
benmccormick.org
9 Upvotes

r/backbonejs • • Apr 20 '16

The Top Four JavaScript Frameworks for 2016. Backbone made the list!

Thumbnail
blog.debugme.eu
8 Upvotes

r/backbonejs • • Jan 11 '16

Why We Still Use Backbone

Thumbnail
enspire.com
8 Upvotes

r/backbonejs • • Dec 21 '15

I work well with Backbone. Should I learn Marionette?

8 Upvotes

r/backbonejs • • Nov 23 '15

Any beginner tips for moving from React to Backbone?

8 Upvotes

I'm a hobbiest who's turning Junior Dev next week (yay!) React was my first front-end framework. It really grew on me, but the company I joined uses Backbone.

A few weeks ago I tried the Codeschool tutorial, and it didn't really "click" at the time. I'm going to revisit it this week.

In the meantime it would be awesome to hear some high level comparisons and contractions between the two. Not limited to, but for example:

  • should I think of React's components as comparable to Backbone's views?

  • no JSX in Backbone. Is this what Underscore is for?

  • I think the tutorial that first caused React to "click" for me was titled Thinking in React. Any guides like that?

These sorts of high-level comparisons would be helpful when it comes to finding my way. Thanks in advance.


r/backbonejs • • Sep 04 '15

Any MarionetteJS tutorials?

8 Upvotes

I can't seem to find any current tutorials. What are your recommended methods for learning Marionette?


r/backbonejs • • Mar 24 '15

Proper use of the router in Backbone.js

8 Upvotes

Hey guys, BB noob and I'm wondering how to properly use the router? A few of my questions:

  1. Should functions on the router only ever be fired when the application is starting up? Essentially, should the router be thought of as an entry point into the application and an entry point only? If yes, how do you handle a user hitting the "back" button? Do you have to manually code all those scenarios into your view or can you rely on the router to match the previous url and fire the corresponding function on the router?

  2. I have separate routers for separate resources in my application and when the router object is instantiated I go grab a bunch of data from the server about that resource and save the object as an attribute on the router where I add/remove data as the user moves through the application. My thought process is that I can go get all the "boilerplate" data that will be used over and over again throughout the application so I can cut down on the size and number of network calls I have to make and leverage the smart functionality of backbone models and collections. Are there any pointers as to how/when you should be going out on the network to get data?

** IN GENERAL ** Any pointers or articles about the router would be appreciated. Thanks for your help.

BB Noob


r/backbonejs • • Dec 07 '14

How do you manage data, caching, and identity mapping in your Backbone.js applications?

8 Upvotes

Coming from Angular and Ember, I have found libraries like Ember Data and Angular Data to be incredibly useful for managing data, caching, and identity mapping. Those libraries also provide a consistent approach to working with your data and APIs. How do others do this in Backbone? Do you use any particular libraries? Do you just roll something custom for each site/app you create using Backbone?

Having worked with Backbone quite a bit for the past 8 months, I found the need for some of these things so I built a small library called Backbone Data to address them. I would love to get feedback and see how others are managing data in their Backbone apps.

https://github.com/skaterdav85/backbone-data


r/backbonejs • • Dec 09 '16

Getting into Backbone.js. Where are good places to talk to other devs about it?

7 Upvotes

I've never gotten into the scene when it comes to online dev communities. I have no idea where to go to chat about backbone.js with other people. Where is a good place to go for this?


r/backbonejs • • Apr 04 '16

MarionetteJS skeleton with Babel/ES6 for Brunch

Thumbnail
github.com
7 Upvotes

r/backbonejs • • Jan 10 '16

"backbone-repository" A repository of models!

7 Upvotes

Hi Backboners!

I bring you a Backbone extension I have developed that you could find useful for your developments. The plugin is named “backbone-respository”, a repository of models.

“backbone-respository” implements purposes of the Repository pattern, which means the enhancement of the model management and synchronization, so as to provide strong features to build online, offline and hybrid web applications.

The library mainly supports the following features:

• A model register to keep models instantiated.

• Sync modes to represent functions that request against different data sources (REST API, LocalStorage and custom ones).

• Sync states to keep changes not synchronized for each sync mode defined.

• Sync operations (fetch, save, destroy, pull and push) to run against different sync modes.

I hope you find it useful! Enjoy it!

Contribution: https://github.com/Gywem/backbone-repository


r/backbonejs • • Apr 02 '15

What the heck are backbone objects anyways... when I pass the view a model object, where is that model persisted on the page?

7 Upvotes

Hey Guys,

I just realized that I have no idea what the heck I am doing when it comes to backbone. I came to this realization when trying to figure out a cogent strategy for removing the view's event listeners on the model. Then I asked "well, where is the model anyways now that the view has been rendered to the DOM?" and then I asked "how is this model object that I created inside a function body, and is therefore out of scope now that I have rendered the view to the DOM, maintaining state?"

AHHHHHHHH!!!!!!!!!

Ex.

View Constructor

Timeclock.Views.JobNewView = Backbone.View.extend({
  template: JST['jobs/_form'],
  model: Timeclock.Models.Job,
  events:{
    'blur #job_form :input':'assignValue'
  },
  initialize: function(options){
    this.listenTo(this.model, 'failed-request', this.failedLocationRequest);
    this.listenTo(this.model, 'updated-location', this.updatedLocation);
    this.listenTo(this.model, 'sync', this.renderJobView); 
    this.listenTo(this.model, 'invalid', this.displayModelErrors);
    this.listenTo($(window), 'hashchange', this.clearListeners);
  },
  render: function(){
    this.$el.html(this.template({attributes: this.model.attributes}));
    this.$el.find('#address_fields').listenForAutoFill();
    return this
  }....
});

Function rendering view to the DOM

renderCollaboratingView: function(e){
	var job = this.model;
	var $row = $(e.currentTarget);
	job.set({customer_id: $row.data('id')});
	var model_view = new this.ViewConstructor({model: job});
	$container.html(model_view.render().el);
}

So how is the model that I am passing to the view object persisted so that the DOM interactions can set attribute values on the underlying model object?

I understand that backbone views are just a wrapper to declaratively write DOM listeners but how are DOM events acting on the underlying model object in the example above? As soon as the renderCollaboratingView() function has exited how is the model that I passed to the view still being interacted with?

I can think of two ways:

  1. The model object is bound to the DOM through a jquery object. All the event listeners that I declare in my view all know where the underlying model object lives on the jquery object(the 'model' attribute?).

  2. Backbone is creating some object namespace that the view knows about where it stores models and collections that back the DOM. I have a feeling it's #1 but who knows.

Once again, I got here because I was trying to understand why I need to remove the listeners on the model that I passed into view in the first place. If backbone views are really just jquery objects then aren't jquery listeners removed from DOM elements when the element backing the jquery object is removed from the DOM? Do I only need to remove the listeners if I am going to not destroy the view entirely and save it for later use?

Any help that can be given would be greatly apprecaited. Having an existential crisis.

Thanks


r/backbonejs • • Mar 06 '15

What is the best way to deal with both server-rendered views and client-rendered views?

7 Upvotes

I am working on a project with a product listing page where the HTML of the first 20 products is rendered from the server. I create Marionette ItemViews for the HTML of each server-rendered product, but I don't call the render method so that the client-side templating doesn't wipe out the server generated HTML. More product views get appended to the page on infinite scroll and those are client side rendered.

Later on, sorting/filtering might take place and I need to destroy all of these views (both client and server side rendered). I know that I could store each instance off into an array and call remove on them manually, but I am wondering if an abstraction/plugin for this scenario has already been done, and what other people do.


r/backbonejs • • Jan 12 '15

5 Reasons Why A Backbone Developer Loves Ember

Thumbnail
thejsguy.com
7 Upvotes

r/backbonejs • • Apr 07 '14

Backbone Antipatterns

Thumbnail
blog.shinetech.com
7 Upvotes

r/backbonejs • • Dec 19 '18

Is backbone dead?

6 Upvotes

JS community says Backbone is nearly dead. Is this true?


r/backbonejs • • Apr 23 '18

Show you care about the release of backbone 1.4

Thumbnail
github.com
6 Upvotes

r/backbonejs • • Jun 06 '17

Why use Backbone.js for one page app development?

Thumbnail
thinkmobiles.com
6 Upvotes

r/backbonejs • • Aug 31 '15

12 Web Apps Built With Backbone.js

Thumbnail
codecondo.com
6 Upvotes