<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Friends of soniccat</title><link>http://disqus.com/by/soniccat/</link><description></description><atom:link href="http://disqus.com/soniccat/friends.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 29 May 2014 08:54:32 -0000</lastBuildDate><item><title>Re: Calling Blocks Inline</title><link>(u'http://macoscope.com/blog/calling-blocks-inline/',%201264448232L)#comment-1264448232</link><description>&lt;p&gt;Cool. I didn't know that. This makes the approach even more useful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karol Kozub</dc:creator><pubDate>Fri, 28 Feb 2014 10:18:39 -0000</pubDate></item><item><title>Re: Calling Blocks Inline</title><link>(u'http://macoscope.com/blog/calling-blocks-inline/',%201264645829L)#comment-1264645829</link><description>&lt;p&gt;This pattern is intended for use within method bodies, where creating functions isn't possible. To use a function in this context it would have to be defined outside of the method and have all the used local variables as arguments. This approach allows us to avoid such measures when the block is needed in only one place.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karol Kozub</dc:creator><pubDate>Fri, 28 Feb 2014 12:32:44 -0000</pubDate></item><item><title>Re: Calling Blocks Inline</title><link>(u'http://macoscope.com/blog/calling-blocks-inline/',%201264722402L)#comment-1264722402</link><description>&lt;p&gt;&amp;gt; Yes, I don't see any problem there. Two small methods are better than big one.&lt;/p&gt;&lt;p&gt;Having two methods in place of one is often better, but not always. When the methods are so closely connected that they don't make sense without each other, having the code in two separate places will often just reduce readability.&lt;/p&gt;&lt;p&gt;&amp;gt; Hmm, It's really hard to predict that block will be needed in only one place. Yes, today it's obvious, but what about next week?. Creating a separate method will be nice preparing to code reusing.&lt;/p&gt;&lt;p&gt;Refactoring such blocks into separate methods doesn't seem very difficult, so if they make the code easier to follow, I would postpone any such actions until they prove actually necessary. Also I can imagine situations where you know that the block you're implementing won't be useful in any other context.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karol Kozub</dc:creator><pubDate>Fri, 28 Feb 2014 13:26:51 -0000</pubDate></item><item><title>Re: MVC Layer Interaction Architecture</title><link>(u'http://macoscope.com/blog/mvc-layer-interaction-architecture/',%201409904748L)#comment-1409904748</link><description>&lt;p&gt;Hi. There are a few different possible approaches to errors. You could handle errors internally, use a delegate, create an analogous but separate model event propagation structure, or use the model update structure. We currently use the same structure for both model updates and errors.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karol Kozub</dc:creator><pubDate>Thu, 29 May 2014 08:54:32 -0000</pubDate></item></channel></rss>