<?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 akahn</title><link>http://disqus.com/by/akahn/</link><description></description><atom:link href="http://disqus.com/akahn/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 04 Mar 2016 11:04:26 -0000</lastBuildDate><item><title>Re: ActiveRecord is reinventing Sequel</title><link>http://twin.github.io/activerecord-is-reinventing-sequel/#comment-2551451012</link><description>&lt;p&gt;Thanks, I missed that link.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Fri, 04 Mar 2016 11:04:26 -0000</pubDate></item><item><title>Re: ActiveRecord is reinventing Sequel</title><link>http://twin.github.io/activerecord-is-reinventing-sequel/#comment-2551415843</link><description>&lt;p&gt;You haven't really demonstrated that Sequel is better than ActiveRecord, just that ActiveRecord is playing catch up with Sequel. I agree with you that Sequel is better, and I prefer using it, but having more features sooner doesn't automatically make something better.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Fri, 04 Mar 2016 10:44:19 -0000</pubDate></item><item><title>Re: A Primer on Protocol Buffers » Blake Smith</title><link>http://blakesmith.me/2012/09/05/a-primer-on-protocol-buffers.html#comment-1612877965</link><description>&lt;p&gt;Check out beefcake: &lt;a href="https://github.com/protobuf-ruby/beefcake" rel="nofollow noopener" target="_blank" title="https://github.com/protobuf-ruby/beefcake"&gt;https://github.com/protobuf...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Tue, 30 Sep 2014 12:04:03 -0000</pubDate></item><item><title>Re: Welcome Mat Marquis</title><link>http://bocoup.com/weblog/welcome-mat-marquis#comment-1541460272</link><description>&lt;p&gt;Who *didn't* see this coming?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Wed, 13 Aug 2014 17:24:18 -0000</pubDate></item><item><title>Re: Salmon Tofu Cakes Recipe - Viet World Kitchen</title><link>http://www.vietworldkitchen.com/blog/2014/06/salmon-tofu-cakes-recipe.html#comment-1452030600</link><description>&lt;p&gt;Purslane from the garden?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Tue, 24 Jun 2014 13:03:26 -0000</pubDate></item><item><title>Re: 

Why mixed responsibilities resist refactoring

</title><link>http://thepugautomatic.com/2012/12/why-mixed-responsibilities-resist-refactoring/#comment-814246531</link><description>&lt;p&gt;Another argument in favor of not using a mixin for fraud checking behavior is that in the class-based example, it's possible to test the fraud checking class in isolation, without loading Rails or the Receipt model. Instead of constructing a FraudChecker instance with a real Receipt instance, you can pass in a fake which responds to the methods FraudChecker calls. In addition to running fast, avoiding DB interacting, and avoiding Rails startup time, this has the benefit of making FraudChecker's dependency on Receipt's interface more explicit in your tests.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Wed, 27 Feb 2013 10:42:00 -0000</pubDate></item><item><title>Re: On Rails, Sinatra, and picking the right tool for the job</title><link>http://pedro.herokuapp.com/past/2012/9/12/on_rails_sinatra_and_picking_the_right_tool_for_the_job/#comment-649202059</link><description>&lt;p&gt;Do the Sinatra API apps share model code with the main Rails app, since presumably the API carries out similar operations to what users do on the website?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Thu, 13 Sep 2012 11:52:25 -0000</pubDate></item><item><title>Re: Kestrel in Production at Papertrail</title><link>http://blog.scoutapp.com/articles/2012/08/15/kestrel-monitoring#comment-621956966</link><description>&lt;p&gt;Thanks for the post. Can you give a real world example of how Kestrel (as opposed to Resque) has allowed you to build a more flexible, more robust or just better architecture? I understand how the consumer of a message is less tightly coupled to the producer (the Rails app) in Kestrel, whereas in Resque the job itself is assumed to live in and be part of the same codebase as the app itself, but that section still isn't clicking for me. &lt;/p&gt;&lt;p&gt;Also, s/flexability/flexibility/. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Fri, 17 Aug 2012 10:52:50 -0000</pubDate></item><item><title>Re: Don't make your code "More Testable"</title><link>http://gmoeck.github.com/2012/07/09/dont-make-your-code-more-testable.html#comment-584331676</link><description>&lt;p&gt;I would love to see some example code written in a way that solves the problems you outline here. Especially #3, with events and listeners. I find myself writing code like the example code contained in this post and would like to go further.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Wed, 11 Jul 2012 12:35:57 -0000</pubDate></item><item><title>Re: How much should I refactor?</title><link>http://robots.thoughtbot.com/post/25853313661#comment-566753441</link><description>&lt;p&gt; I appreciate that you point out the balance between short term productivity and long term maintainability. Over the weekend, Matt Wynne expressed this same point in a talk at Gotham Ruby Conference.&lt;/p&gt;&lt;p&gt;However, I think you overstate the cost of jumping around codebases and projects. With adequate tools – Vim with ctags, bundler.vim, gem-ctags – this cost is nearly eliminated.&lt;/p&gt;&lt;p&gt;The joking criticism of SmallTalk was that "everything happens somewhere else". The opposite extreme, everything happening in the one place, is worse. The optimal place is somewhere between these two extremes. I lean toward the former, though, because I hope that once I find the relevant part of the code, it will be easier to understand.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Mon, 25 Jun 2012 11:32:00 -0000</pubDate></item><item><title>Re: Hashes and encapsulation: Jon Leighton</title><link>http://jonathanleighton.com/articles/2012/encapsulating-hashes/#comment-408673395</link><description>&lt;p&gt;I misunderstood. I thought the commenter was proposing DOMElement#[], so you would access attribute values like: el['href'].&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Thu, 12 Jan 2012 10:27:34 -0000</pubDate></item><item><title>Re: Hashes and encapsulation: Jon Leighton</title><link>http://jonathanleighton.com/articles/2012/encapsulating-hashes/#comment-408665119</link><description>&lt;p&gt;How so? [] would just be a different name for the method you called attribute.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Thu, 12 Jan 2012 10:15:34 -0000</pubDate></item><item><title>Re: Rails, Models and Business Logic</title><link>http://wekeroad.com/2011/10/14/rails-models-and-business-logic/#comment-404348441</link><description>&lt;p&gt;Just came across this post on twitter via Andrzej Krzywda (via Sean Allen).&lt;/p&gt;&lt;p&gt;I like where you're going. I think that you should go a step further with your mixin idea, though. Although you've separated the Braintree functionality into its own module, splitting it off into its own file outside of the ActiveRecord model, you haven't reduced coupling. By that I mean ActsAsSubscriber knows the intimate details of how the Customer class works. You can't test the former in isolation of the latter.&lt;/p&gt;&lt;p&gt;You'll get a more maintainable, extensible, and testable design if you establish a stricter separation between the concepts of Customer and Subscription. You can then define a narrow interface between the two objects, where they only pass as little information to each other as each needs. The dependencies of each class are reduced. This is composition. I can show you what I mean in code if you're interested.&lt;/p&gt;&lt;p&gt;Here's an older post that you may have seen before that argues for what I'm saying, and also argues that sometimes Rails features like callbacks and observers can actually be pretty problematic when it comes to maintaining a project: &lt;a href="http://jamesgolick.com/2010/3/14/crazy-heretical-and-awesome-the-way-i-write-rails-apps.html" rel="nofollow noopener" target="_blank" title="http://jamesgolick.com/2010/3/14/crazy-heretical-and-awesome-the-way-i-write-rails-apps.html"&gt;http://jamesgolick.com/2010...&lt;/a&gt; Also check out Avdi Grimm's and Gary Bernhardt's writings and videos on this subject.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Sat, 07 Jan 2012 19:08:56 -0000</pubDate></item><item><title>Re: WEBSITE OF THE DAY: Paperless Post  </title><link>https://www.pocket-lint.com/news/42981/order-personalised-tradtional-staionery-online#comment-360073109</link><description>&lt;p&gt;I work for Paperless Post and would like to clarify what we do. We do not send physical stationery. Our cards are delivered over email. Hence the name "Paperless." ;)&lt;/p&gt;&lt;p&gt;Thanks for the writeup. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Thu, 10 Nov 2011 10:18:44 -0000</pubDate></item><item><title>Re: Alex Kahn | Working Through Git Conflicts in Vim</title><link>http://akahn.net/2011/10/12/working-through-git-conflicts-in-vim.html#comment-333192196</link><description>&lt;p&gt;Great suggestions, thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Wed, 12 Oct 2011 21:11:18 -0000</pubDate></item><item><title>Re: Alex Kahn | Working Through Git Conflicts in Vim</title><link>http://akahn.net/2011/10/12/working-through-git-conflicts-in-vim.html#comment-332876131</link><description>&lt;p&gt;Most of my merge conflicts are fairly straightforward so I don't mind merging them "by hand". However, I do want to learn to learn to use fugitive.vim's more advanced merging tools for more challenging merges.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Wed, 12 Oct 2011 15:26:16 -0000</pubDate></item><item><title>Re: Alex Kahn | Working Through Git Conflicts in Vim</title><link>http://akahn.net/2011/10/12/working-through-git-conflicts-in-vim.html#comment-332867220</link><description>&lt;p&gt;Indeed, gc is the git subcommand for garbage collection. This is just a shell alias, though.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Wed, 12 Oct 2011 15:11:43 -0000</pubDate></item><item><title>Re: What do you want to know about OOP and Rails?</title><link>http://devblog.avdi.org/2011/09/12/what-do-you-want-to-know-about-oop-and-rails/#comment-307973445</link><description>&lt;p&gt;I remember seeing a tweet positing that not encapsulating Rails associations is the cause of some very high percentage of slow tests/design problems/societal collapse, etc. I found that intriguing. Maybe you can write a bit on that topic.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Mon, 12 Sep 2011 13:37:15 -0000</pubDate></item><item><title>Re: MongoDB as a Key-Value Solution for Logging Events Data</title><link>https://blog.engineyard.com/2011/mongodb-as-a-key-value-solution#comment-192230434</link><description>&lt;p&gt;Sorry, that's written in Java -- gotta install JVM. Next!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Tue, 26 Apr 2011 16:14:43 -0000</pubDate></item><item><title>Re: MongoDB as a Key-Value Solution for Logging Events Data</title><link>https://blog.engineyard.com/2011/mongodb-as-a-key-value-solution#comment-192228911</link><description>&lt;p&gt;Riak is written in Erlang. Sorry, not popular enough.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Tue, 26 Apr 2011 16:11:14 -0000</pubDate></item><item><title>Re: http://trymytrust.tumblr.com/post/4422223542</title><link>http://trymytrust.tumblr.com/post/4422223542#comment-182107418</link><description>&lt;p&gt;ERROR :(&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Sun, 10 Apr 2011 16:26:19 -0000</pubDate></item><item><title>Re: Jumping Long Distances in Vim</title><link>http://codeulate.com/2011/02/jumping-long-distances-in-vim/#comment-157280168</link><description>&lt;p&gt;Very helpful. I tend to page with C-b and C-f. I also tend to use z. and z&amp;lt;enter&amp;gt; but zt and zz actually seem better since they don't change the cursor position.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Sun, 27 Feb 2011 16:13:01 -0000</pubDate></item><item><title>Re: How-To: Conditional HTML tag with HAML</title><link>http://gf3.ca/2011/02/12/conditional-html-tag-haml#comment-156771200</link><description>&lt;p&gt;What do you think of this approach? &lt;a href="https://groups.google.com/forum/?fromgroups#!topic/haml/UFmQo6gDzQM" rel="nofollow noopener" target="_blank" title="https://groups.google.com/forum/?fromgroups#!topic/haml/UFmQo6gDzQM"&gt;https://groups.google.com/f...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Sat, 26 Feb 2011 16:27:11 -0000</pubDate></item><item><title>Re: http://failingfast.tumblr.com/post/3430289830</title><link>http://failingfast.tumblr.com/post/3430289830#comment-153641721</link><description>&lt;p&gt;dylan would love this&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Mon, 21 Feb 2011 19:25:55 -0000</pubDate></item><item><title>Re: http://trymytrust.tumblr.com/post/3405331269</title><link>http://trymytrust.tumblr.com/post/3405331269#comment-153386318</link><description>&lt;p&gt;&amp;lt;3&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Kahn</dc:creator><pubDate>Mon, 21 Feb 2011 09:29:28 -0000</pubDate></item></channel></rss>