<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>/#! - Latest Comments</title><link>http://slashhashbang.disqus.com/</link><description></description><atom:link href="https://slashhashbang.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 22 Sep 2013 20:19:46 -0000</lastBuildDate><item><title>Re: Lightweight Relation Modeling with Backbone</title><link>http://slashhashbang.com/2011/10/lightweight-relation-modeling-with-backbone/#comment-1055280784</link><description>&lt;p&gt;We also tried to improve relation handling between models and ended up with a backbone plugin which supports one-to-one, one-to-many and many-many relations out of the box. &lt;a href="https://github.com/jj-studio/Backbone-JJRelational" rel="nofollow noopener" target="_blank" title="https://github.com/jj-studio/Backbone-JJRelational"&gt;https://github.com/jj-studi...&lt;/a&gt; check it out some time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jörn </dc:creator><pubDate>Sun, 22 Sep 2013 20:19:46 -0000</pubDate></item><item><title>Re: Lightweight Relation Modeling with Backbone</title><link>http://slashhashbang.com/2011/10/lightweight-relation-modeling-with-backbone/#comment-903362648</link><description>&lt;p&gt;Thanks for this KISS solution. Will give it a try, lost too much time in trying to get up Backbone.Relational running.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">talfco</dc:creator><pubDate>Mon, 20 May 2013 17:30:52 -0000</pubDate></item><item><title>Re: Lightweight Relation Modeling with Backbone</title><link>http://slashhashbang.com/2011/10/lightweight-relation-modeling-with-backbone/#comment-882631614</link><description>&lt;p&gt;Thank you :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">diurnalist</dc:creator><pubDate>Thu, 02 May 2013 16:00:04 -0000</pubDate></item><item><title>Re: Lightweight Relation Modeling with Backbone</title><link>http://slashhashbang.com/2011/10/lightweight-relation-modeling-with-backbone/#comment-882626400</link><description>&lt;p&gt;I deliberately kept it off the attributes hash for a few reason. One, it would conflict too much with how Backbone wants to treat items in that hash. In my view, the attributes hash should be for first-level properties of the model, and not hold submodels.&lt;/p&gt;&lt;p&gt;Serialization is not a problem because I overwrite toJSON to serialize the relations along with the parent model.&lt;/p&gt;&lt;p&gt;I accepted the (small) loss of the .get() standardization because in my mind the properties of a model and nested models are inherently two different things and mixing the metaphors seemed to muddle this fact.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">diurnalist</dc:creator><pubDate>Thu, 02 May 2013 15:57:14 -0000</pubDate></item><item><title>Re: Lightweight Relation Modeling with Backbone</title><link>http://slashhashbang.com/2011/10/lightweight-relation-modeling-with-backbone/#comment-882565319</link><description>&lt;p&gt;Love it, thank you. I've been beating my head against Backbone Relational for a few months now. This is a much nicer solution, especially when your requirements are rather simple.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">makala</dc:creator><pubDate>Thu, 02 May 2013 15:15:49 -0000</pubDate></item><item><title>Re: Lightweight Relation Modeling with Backbone</title><link>http://slashhashbang.com/2011/10/lightweight-relation-modeling-with-backbone/#comment-711643491</link><description>&lt;p&gt;Really nice post :-) Useful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mdarse</dc:creator><pubDate>Fri, 16 Nov 2012 04:02:11 -0000</pubDate></item><item><title>Re: Lightweight Relation Modeling with Backbone</title><link>http://slashhashbang.com/2011/10/lightweight-relation-modeling-with-backbone/#comment-598032418</link><description>&lt;p&gt;Why would you have a relationship right under the model?  Shouldn't that be added to the attributes of the model?  If it's not there, it's not possible to serialize a model properly, or have a standard across the code of using 'get'.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michel Boudreau</dc:creator><pubDate>Wed, 25 Jul 2012 21:37:47 -0000</pubDate></item><item><title>Re: Lightweight Relation Modeling with Backbone</title><link>http://slashhashbang.com/2011/10/lightweight-relation-modeling-with-backbone/#comment-517010973</link><description>&lt;p&gt;Not a dumb question at all! The line `relation = this[key] = new constructor();` ensures that the relation is attached directly to the model. So if you had a View that had a reference to an Album instance, inside the view you would do: `this.model.trackList` to get the reference to the TrackList.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason Anderson</dc:creator><pubDate>Wed, 02 May 2012 16:23:20 -0000</pubDate></item><item><title>Re: Lightweight Relation Modeling with Backbone</title><link>http://slashhashbang.com/2011/10/lightweight-relation-modeling-with-backbone/#comment-516967540</link><description>&lt;p&gt;Sorry for being dumb but how is the newly created relation model accessed? How would you get trackList instance if you have Album instance? In the View for example...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Libor Nenadál</dc:creator><pubDate>Wed, 02 May 2012 15:33:10 -0000</pubDate></item><item><title>Re: Lightweight Relation Modeling with Backbone</title><link>http://slashhashbang.com/2011/10/lightweight-relation-modeling-with-backbone/#comment-515097732</link><description>&lt;p&gt;Looks promising! :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Libor Nenadál</dc:creator><pubDate>Tue, 01 May 2012 12:27:11 -0000</pubDate></item><item><title>Re: Lightweight Relation Modeling with Backbone</title><link>http://slashhashbang.com/2011/10/lightweight-relation-modeling-with-backbone/#comment-453751121</link><description>&lt;p&gt;great alternative implementation of backbone-relational&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xxx</dc:creator><pubDate>Thu, 01 Mar 2012 16:25:02 -0000</pubDate></item><item><title>Re: UI Corner: Twitter List Management</title><link>http://slashhashbang.com/2011/05/improving-twitter-lists/#comment-205132524</link><description>&lt;p&gt;Great read. I kept thinking while reading it that the actual list use case is more closely tied to:&lt;/p&gt;&lt;p&gt;"Hey , I have a bunch of people that I follow and want to add them to a new list to help organize"&lt;/p&gt;&lt;p&gt;this makes your point entirely relevant. Great break down bro. +1&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gabriel</dc:creator><pubDate>Sun, 15 May 2011 05:31:22 -0000</pubDate></item><item><title>Re: Simple JS Multiton/Factory</title><link>http://slashhashbang.com/2011/03/simple-multiton-implementation-in-javascript/#comment-205132532</link><description>&lt;p&gt;You might even be able to get away with the same object, just adding a factory method onto it.&lt;/p&gt;&lt;p&gt;return {&lt;br&gt;  instance : function(name){...},&lt;br&gt;  factory : function(name){&lt;br&gt;    // this is a bug in your implementation, passing in a name will set the name to&lt;br&gt;    // "string"&lt;br&gt;    name = typeof name === 'string' ? name : _default;&lt;br&gt;    return create_instance(name);&lt;br&gt;  }&lt;br&gt;}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gabriel</dc:creator><pubDate>Mon, 14 Mar 2011 15:46:17 -0000</pubDate></item></channel></rss>