<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for charlysisto</title><link>http://disqus.com/by/charlysisto/</link><description></description><atom:link href="http://disqus.com/charlysisto/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 29 May 2015 11:18:51 -0000</lastBuildDate><item><title>Re: One more useful abstraction for Rails - My take on Form objects</title><link>http://codingwithaxe.com/my-take-on-form-objects/#comment-2051628796</link><description>&lt;p&gt;I took a very similar path with my paramount gem (hardly a gem really just a very thin wrapper around Virtus &amp;amp; ActiveModel). Then in my controllers &amp;amp; views I use `@ar_model.form` to create and update. That way you extract validation, nested attributes, callback, params security... out of your business model in just one go. And only if necessary.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Fri, 29 May 2015 11:18:51 -0000</pubDate></item><item><title>Re: The Reflux data flow model</title><link>http://blog.krawaller.se/posts/the-reflux-data-flow-model/#comment-1735771117</link><description>&lt;p&gt;It looked like the flux architecture made it mandatory for all actions (including server updates) to pass through the Action + Dispatcher gate. I was wondering if having the Stores being tide to the backend service &amp;amp; exposed directly to mutation could have any unwanted effect. Although it obviously doesn't brake the direction of the flow. On a higher abstraction I'm still trying to understand the role of the dispatcher in fb Flux and how Reflux manages to get rid of it... I'll dig more into it but any hint is welcome! thanx again&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Wed, 10 Dec 2014 16:37:36 -0000</pubDate></item><item><title>Re: The Reflux data flow model</title><link>http://blog.krawaller.se/posts/the-reflux-data-flow-model/#comment-1735288871</link><description>&lt;p&gt;very helpful thanx a lot &amp;amp; sooo much more sexier than the official flux. One question : is it ok that backend bypasses actions ? And another one : it seems the main role of the action is to break down the global bus into different channels - corresponding to more or less tot the different stores - is that right ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Wed, 10 Dec 2014 12:09:32 -0000</pubDate></item><item><title>Re: Challenges faced in a little larger Rails API project</title><link>http://labs.kollegorna.se/blog/2014/11/rails-api/#comment-1715131716</link><description>&lt;p&gt;Hi, just a quick note on how to apply scopes dynamically. The PdsasController make my teeth hurt having been through the pain of `scope this if params[:that]`... AcitveRelation is such a powerful abstraction, I find it bizarre that there's no 'Official Rails Way' to leverage the power it gives you in the controller. Anyway I created a gem for it : &lt;a href="https://github.com/charly/siphon" rel="nofollow noopener" target="_blank" title="https://github.com/charly/siphon"&gt;https://github.com/charly/s...&lt;/a&gt;. I use it everywhere in my admin sections and it's a blessing. I have search tool bars on all collection and I as a free bonus they're stateful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Thu, 27 Nov 2014 06:15:48 -0000</pubDate></item><item><title>Re: Search and filter Rails models without bloating your controller - Weissblog</title><link>http://www.justinweiss.com/articles/search-and-filter-rails-models-without-bloating-your-controller/#comment-1260319962</link><description>&lt;p&gt;You might want to have look at &lt;a href="https://github.com/charly/siphon" rel="nofollow noopener" target="_blank" title="https://github.com/charly/siphon"&gt;https://github.com/charly/s...&lt;/a&gt;. I also explain how you can combine it with ransack and nexter. I'll release a demo soon...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Tue, 25 Feb 2014 15:41:20 -0000</pubDate></item><item><title>Re: When to use directives, controllers, or services in Angular JS</title><link>http://kirkbushell.me/when-to-use-directives-controllers-or-services-in-angular/#comment-1052899829</link><description>&lt;p&gt;you nailed it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Fri, 20 Sep 2013 11:20:27 -0000</pubDate></item><item><title>Re: When to use directives, controllers, or services in Angular JS</title><link>http://kirkbushell.me/when-to-use-directives-controllers-or-services-in-angular/#comment-1052646947</link><description>&lt;p&gt;yes :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Fri, 20 Sep 2013 06:21:52 -0000</pubDate></item><item><title>Re: When to use directives, controllers, or services in Angular JS</title><link>http://kirkbushell.me/when-to-use-directives-controllers-or-services-in-angular/#comment-1052636378</link><description>&lt;p&gt;mmm, not quit sure yet... maybe we can agree on this : &lt;a href="http://stackoverflow.com/questions/15666048/angular-js-service-vs-provider-vs-factory/15666049#15666049" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/questions/15666048/angular-js-service-vs-provider-vs-factory/15666049#15666049"&gt;http://stackoverflow.com/qu...&lt;/a&gt;. That is angular.factory doesn't return the function you pass it but the return value of that function (which can be anything including another function or a new object).&lt;/p&gt;&lt;p&gt;angular.service on the other hand returns the instance of the function you pass it, ensuring it's always a new object (compared to factory it narrows down the possibilities and makes it more strict, which is good in many cases...)&lt;/p&gt;&lt;p&gt;So my question : is there any good reason ( a part from taste) you didn't write the function in a more conventional form with the 'this' keyword ? Because as it is written it looks like you want to use angular.factory (notice : sometimes prototype OO gives me headaches...)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Fri, 20 Sep 2013 06:06:51 -0000</pubDate></item><item><title>Re: When to use directives, controllers, or services in Angular JS</title><link>http://kirkbushell.me/when-to-use-directives-controllers-or-services-in-angular/#comment-1052604620</link><description>&lt;p&gt;Great article but I'm slightly confused with the notion of services being singletons "unlike factories". From what I understand service returns an instance of the function, where as factory returns the returned value of the function, but they **both always reference the same object** so I find it a little misleading to imply factories aren't singletons. Sorry for nitpicking, maybe there's something you meant I didn't get right.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Fri, 20 Sep 2013 05:17:14 -0000</pubDate></item><item><title>Re: Models and Services in Angular</title><link>http://wekeroad.com/2013/04/25/models-and-services-in-angular#comment-880271125</link><description>&lt;p&gt;Actually since 1.1.3 (unstable release) you can use promises  '$resource: expose promise based api via $then and $resolved'. Thanks for clarifying Joel's post. I enjoyed it but was extremely annoyed  by the service/model confusion. His article was about architecting so terms and concepts are the most important aspects to grasp not just pedantic nuances. However he made a nice mea culpa and I hope we see more debates like this.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Tue, 30 Apr 2013 05:44:57 -0000</pubDate></item><item><title>Re: How to use bundler instead of rvm gemsets - Rake Routes</title><link>https://www.rakeroutes.com/how-to-use-bundler-instead-of-rvm-gemsets#comment-500143880</link><description>&lt;p&gt;&lt;a href="http://ryan.mcgeary.org/2011/02/09/vendor-everything-still-applies/" rel="nofollow noopener" target="_blank" title="http://ryan.mcgeary.org/2011/02/09/vendor-everything-still-applies/"&gt;http://ryan.mcgeary.org/201...&lt;/a&gt;&lt;br&gt;I suggest reading this (&amp;amp; comments) : It's a reference &amp;amp; I have been happily applying this bundle flow ever after.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Tue, 17 Apr 2012 16:37:59 -0000</pubDate></item><item><title>Re: French court rules that it's illegally anticompetitive for Google to provide free maps&amp;nbsp;API</title><link>http://boingboing.net/2012/02/02/french-court-rules-that-its.html#comment-427703175</link><description>&lt;p&gt;Under french law you're presumed innocent&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Thu, 02 Feb 2012 08:37:07 -0000</pubDate></item><item><title>Re: http://kylebanker.com/blog/2010/04/30/mongodb-and-ecommerce/</title><link>http://kylebanker.com/blog/2010/04/30/mongodb-and-ecommerce/#comment-48674588</link><description>&lt;p&gt;Extremely helpful, wish there were more of these, domain modeling blog posts are too rare!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Thu, 06 May 2010 10:05:22 -0000</pubDate></item><item><title>Re: Crazy, Heretical, and Awesome: The Way I Write Rails Apps | James on Software</title><link>http://jamesgolick.com/2010/3/14/crazy-heretical-and-awesome-the-way-i-write-rails-apps.html#comment-41198387</link><description>&lt;p&gt;I totally agree specially with the fileuploader example, having dealt with attachment_fu for years (built an image bank with it). Carrierwave makes so much more sense (images are handled in a seperate class). The state machine problem struck me as well, but never had the guts to try ruote.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Tue, 23 Mar 2010 09:52:13 -0000</pubDate></item><item><title>Re: Why Riak should power your next Rails app - sean cribbs :: digital renaissance man</title><link>http://seancribbs.com/tech/2010/02/06/why-riak-should-power-your-next-rails-app/#comment-33013761</link><description>&lt;p&gt;Thanks for this great post.&lt;/p&gt;&lt;p&gt;Had my nose a lot in mongo recentely and the limitations/possibilities of nosql (nojoins!)&lt;br&gt;&lt;a href="http://groups.google.com/group/mongoid/browse_thread/thread/b5e2bccf77457043?hl=en#" rel="nofollow noopener" target="_blank" title="http://groups.google.com/group/mongoid/browse_thread/thread/b5e2bccf77457043?hl=en#"&gt;http://groups.google.com/gr...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I would be very interested if you could explain a little more the link feature that other nosql solution don't seem to have and how you overcome its caveat : "The caveat of links is that they are inherently unidirectional, but this can be overcome with little difficulty in your application."&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Mon, 08 Feb 2010 10:56:16 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Sexp for Rubyists</title><link>http://blog.rubybestpractices.com/posts/judofyr/sexp-for-rubyists.html#comment-32743843</link><description>&lt;p&gt;Everything you wanted to know about Sexp and didn't dare ask.&lt;br&gt;Ruby2ruby also does Sexp (with parsetree), very usefull to see inside the guts of a class (like methods generated by macros).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Fri, 05 Feb 2010 11:36:45 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Should I Tap that Hash?  (Ruby 1.9 Style)</title><link>http://blog.rubybestpractices.com/posts/gregory/011-tap-that-hash.html#comment-14427546</link><description>&lt;p&gt;oh god you're right ! will shamefully update my blog. thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Fri, 07 Aug 2009 08:14:47 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Should I Tap that Hash?  (Ruby 1.9 Style)</title><link>http://blog.rubybestpractices.com/posts/gregory/011-tap-that-hash.html#comment-14422414</link><description>&lt;p&gt;"As for &lt;a href="http://MyClass.new" rel="nofollow noopener" target="_blank" title="MyClass.new"&gt;MyClass.new&lt;/a&gt; do |obj| ... end, the solution is *not* to use tap, but instead, to allow your initialize to yield the new object." -- i never meant that. Rather use it for what i'd call 'extra initializer methods' like this :&lt;/p&gt;&lt;p&gt;&lt;a href="http://gist.github.com/163244" rel="nofollow noopener" target="_blank" title="http://gist.github.com/163244"&gt;http://gist.github.com/163244&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Most of my methods are 1 to 3 liners. My point is for "setup situps" having &lt;a href="http://tap.new" rel="nofollow noopener" target="_blank" title="tap.new"&gt;tap.new&lt;/a&gt;() at the start makes them immediately reveal their intention.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Fri, 07 Aug 2009 07:15:35 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Should I Tap that Hash?  (Ruby 1.9 Style)</title><link>http://blog.rubybestpractices.com/posts/gregory/011-tap-that-hash.html#comment-14349250</link><description>&lt;p&gt;@Robert : I know that, read about ruby internals long time ago, sorry if my formulation could be somehow misleading. Just stressing the fact that new and initialize work hand in hand like tap could in a class method.&lt;/p&gt;&lt;p&gt;@sandal : I must admit i don't understand how/why you came to that conclusion. Probably missed the good argument in the comments ( i read quickly), open to hear your case :-). However isn't ruby all (hum a lot) about aesthetics ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Thu, 06 Aug 2009 11:55:01 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Should I Tap that Hash?  (Ruby 1.9 Style)</title><link>http://blog.rubybestpractices.com/posts/gregory/011-tap-that-hash.html#comment-14344061</link><description>&lt;p&gt;thanks for scratching my head ;-)&lt;/p&gt;&lt;p&gt;I agree on the fact both examples do the same. But it's common sense that whatever you put in the initialize definition it always returns the object when calling new on the class. So the block inside &lt;a href="http://tap.new" rel="nofollow noopener" target="_blank" title="tap.new"&gt;tap.new&lt;/a&gt; makes it very similar to that pattern/idiom. You see &lt;a href="http://tap.new" rel="nofollow noopener" target="_blank" title="tap.new"&gt;tap.new&lt;/a&gt; and you instantely know it's going to behave like find(:first), create or new... tap block doing the similar setup 'initializes' does.&lt;/p&gt;&lt;p&gt;It's opinionated for sure, just thought it's a better candidate for a ruby convention than using it on {}.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Thu, 06 Aug 2009 10:30:40 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Should I Tap that Hash?  (Ruby 1.9 Style)</title><link>http://blog.rubybestpractices.com/posts/gregory/011-tap-that-hash.html#comment-14334304</link><description>&lt;p&gt;I think the reason why tap raises so much resistance here, is because hashes aren't really suited for it. It's much more legitimate combined with 'new' to initialize an object in a class method. I've put an explanation on my blog : &lt;a href="http://ruby.simpase.com" rel="nofollow noopener" target="_blank" title="http://ruby.simpase.com"&gt;http://ruby.simpase.com&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charlysisto</dc:creator><pubDate>Thu, 06 Aug 2009 07:25:00 -0000</pubDate></item></channel></rss>