<?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 mguterl</title><link>http://disqus.com/by/mguterl/</link><description></description><atom:link href="http://disqus.com/mguterl/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 15 May 2014 09:49:48 -0000</lastBuildDate><item><title>Re: Does CoffeeScript Have a Future?</title><link>https://teamgaslight.com/blog/does-coffeescript-have-a-future#comment-1387135764</link><description>&lt;p&gt;The benefit of less syntax with CoffeeScript has always been the LEAST compelling reason to use it. The semantic advantages have always drawn me to CoffeeScript over JavaScript and it seems like with ES6 there are less advantages over CoffeeScript. I don't think I will be using CoffeeScript nearly as much as ES6 gains more traction. Just my 2 cents.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Thu, 15 May 2014 09:49:48 -0000</pubDate></item><item><title>Re: 6 Ways to Remove Pain From Feature Testing in Ruby on Rails</title><link>https://teamgaslight.com/blog/6-ways-to-remove-pain-from-feature-testing-in-ruby-on-rails#comment-1071507346</link><description>&lt;p&gt;I agree that regex's aren't the problem with Cucumber. I find that most people don't follow the prescribed best practices when writing features and it causes a lot of pain.&lt;/p&gt;&lt;p&gt;Joel did a great job of summarizing some of our thoughts on Cucumber here: &lt;a href="http://gaslight.co/blog/how-we-cuke" rel="nofollow noopener" target="_blank" title="http://gaslight.co/blog/how-we-cuke"&gt;http://gaslight.co/blog/how...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Sat, 05 Oct 2013 11:20:01 -0000</pubDate></item><item><title>Re: Better Code Design through Pictures</title><link>https://teamgaslight.com/blog/better-code-design-through-pictures#comment-1063388595</link><description>&lt;p&gt;This morning I stumbled upon &lt;a href="https://www.draw.io" rel="nofollow noopener" target="_blank" title="https://www.draw.io"&gt;https://www.draw.io&lt;/a&gt; which looks like an awesome tool for doing more of this type of work. I really enjoy whiteboarding, but I don't enjoy the artifact (a photograph). I think translating the result to something more formal using &lt;a href="https://www.draw.io" rel="nofollow noopener" target="_blank" title="https://www.draw.io"&gt;https://www.draw.io&lt;/a&gt; might be an interesting idea.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Sun, 29 Sep 2013 08:46:45 -0000</pubDate></item><item><title>Re: Angular backed SVGs</title><link>https://teamgaslight.com/blog/angular-backed-svgs#comment-992857409</link><description>&lt;p&gt;Thanks for pointing out sullerandras's web sequence diagram generator. That is great!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Thu, 08 Aug 2013 07:16:56 -0000</pubDate></item><item><title>Re: Gaslight: How We Handled the Problem of JS Date/Time Equality</title><link>https://teamgaslight.com/blog/how-we-handled-the-problem-of-js-date-slash-time-equality#comment-960083098</link><description>&lt;p&gt;Same reply to the same question from &lt;a href="http://www.reddit.com/r/javascript/comments/1i5lh7/how_we_handled_the_problem_of_js_datetime_equality/cb17sfi" rel="nofollow noopener" target="_blank" title="http://www.reddit.com/r/javascript/comments/1i5lh7/how_we_handled_the_problem_of_js_datetime_equality/cb17sfi"&gt;http://www.reddit.com/r/jav...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I was unaware of deepEqual. Thanks for the pointer.&lt;br&gt;I also wanted to be able to assert on just the date portion which I feel is useful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Fri, 12 Jul 2013 13:27:09 -0000</pubDate></item><item><title>Re: 
    Rails Controller Accessors
    
    by Nick Gauthier on 2013-04-15
  </title><link>http://ngauthier.com/2013/04/rails-controller-accessors.html#comment-865065635</link><description>&lt;p&gt;A lot of folks that I work with really love decent_exposure: &lt;a href="https://github.com/voxdolo/decent_exposure" rel="nofollow noopener" target="_blank" title="https://github.com/voxdolo/decent_exposure"&gt;https://github.com/voxdolo/...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I haven't taken enough time to dive into it yet, but I thought you might be interested.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Tue, 16 Apr 2013 07:58:26 -0000</pubDate></item><item><title>Re: Searching fora HeroGood Examples</title><link>http://diminishing.org/searching-for-a-hero-ruby#comment-780065154</link><description>&lt;p&gt;Awesome, I'm glad to hear that you're going to be adding better examples. I think Hero has a lot of potential for putting some standards in place for these types of tasks. Only after years of Rails have I established a convention for this myself, so I agree with your point about discipline.&lt;/p&gt;&lt;p&gt;You might want to check out ruote: &lt;a href="https://github.com/jmettraux/ruote" rel="nofollow noopener" target="_blank" title="https://github.com/jmettraux/ruote"&gt;https://github.com/jmettrau...&lt;/a&gt; - I'm not sure if it is complementary to what you're doing, or if it might provide any inspiration.&lt;/p&gt;&lt;p&gt;I certainly think a standard approach to these types of tasks will help organize applications.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Sun, 27 Jan 2013 17:54:06 -0000</pubDate></item><item><title>Re: Searching fora HeroGood Examples</title><link>http://diminishing.org/searching-for-a-hero-ruby#comment-779908891</link><description>&lt;p&gt;You'll just have to trust that I would have been driven to the same or similar design. :-)&lt;/p&gt;&lt;p&gt;I've used the structure app/jobs and app/services to achieve a similar breakdown in some applications that I've worked on. The app/jobs folder consists of classes that respond to perform (typically consumed from Resque). The app/services folder consists of classes that wrap those third party libraries.&lt;/p&gt;&lt;p&gt;If were to organize the code above in a Rails app, it'd look like this:&lt;/p&gt;&lt;p&gt;app/jobs/deliver_news_notifications.rb&lt;br&gt;app/mailers/news_notifier.rb&lt;br&gt;app/services/news_sources/hacker_news.rb&lt;br&gt;app/services/news_sources/reddit.rb&lt;br&gt;app/services/news_sources/google.rb&lt;/p&gt;&lt;p&gt;I appreciate the fact Hero can provide guidance for modeling these processes. However, I would have been guided to this design for the following reasons:&lt;/p&gt;&lt;p&gt;1. I would want to ensure (test) that each news source works and I would have done that in isolation.&lt;br&gt;2. I want to have an interface that my application uses (gather_news in this case) and not depend on some low level details (HTTP, etc.)&lt;br&gt;3. I would want to test that given certain inputs the news notifier rendered the email body correctly.&lt;br&gt;4. I would want a single place for the wiring of these components to occur (app/jobs/deliver_news_notifications.rb).&lt;/p&gt;&lt;p&gt;I look forward to hearing more of your thoughts.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Sun, 27 Jan 2013 13:41:18 -0000</pubDate></item><item><title>Re: Better Support with Test Harnesses</title><link>http://robots.thoughtbot.com/post/35776432958#comment-711251048</link><description>&lt;p&gt;It also appears that you could replace the implementation of TodoOnPage with something completely unrelated to a page or the web and it could still continue to function testing your domain logic.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Thu, 15 Nov 2012 16:24:00 -0000</pubDate></item><item><title>Re: Refactoring with Hexagonal Rails</title><link>https://www.agileplannerapp.com/blog/building-agile-planner/refactoring-with-hexagonal-rails#comment-590987467</link><description>&lt;p&gt;I'm currently refactoring some of my code to adopt some of the ideas presented here. I'm finding that the code is much easier to understand and modify.&lt;/p&gt;&lt;p&gt;I'm curious how are you organizing this structure on the filesystem? It seems like you'd want PlanChange like objects in one place and subscribers in another, but what do you actually call these objects?&lt;/p&gt;&lt;p&gt;Do you see any problem with avoiding PersistenceResponse and just implementing card_updated and card_update_failed directly on the controller?&lt;/p&gt;&lt;p&gt;You also mention that your KISSMetrics code isn't run during the test environment because PlanChange does not add the class as an observer. How are you handling the creation of PlanChange objects per environment?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Wed, 18 Jul 2012 09:00:40 -0000</pubDate></item><item><title>Re: SOLID JavaScript: The Single Responsibility Principle</title><link>http://freshbrewedcode.com/derekgreer/2011/12/08/solid-javascript-single-responsibility-principle/#comment-388808594</link><description>&lt;p&gt;It seems to me that ProductsController is overloaded with responsibility that could belong to the ProductRepository, specifically finding the product by id.  What do you think?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Sat, 17 Dec 2011 12:31:51 -0000</pubDate></item><item><title>Re: Tidy views and beyond with Decorators</title><link>http://robots.thoughtbot.com/post/13641910701#comment-377937826</link><description>&lt;p&gt;Thanks for your feedback guys, makes perfect sense.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Fri, 02 Dec 2011 16:26:59 -0000</pubDate></item><item><title>Re: Tidy views and beyond with Decorators</title><link>http://robots.thoughtbot.com/post/13641910701#comment-377908686</link><description>&lt;p&gt;I'm curious why you chose to use 2 different decorator classes and not simply use a MonkeyDecorator?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Fri, 02 Dec 2011 15:41:38 -0000</pubDate></item><item><title>Re: Test after_commit hooks with transactional fixtures enabled</title><link>http://outofti.me/post/4777884779#comment-188431248</link><description>&lt;p&gt;Mat, I can't tell you how many beers I owe you for Sunspot and related help and now you're writing patches for my inquiries on other mailing lists!&lt;/p&gt;&lt;p&gt;We went back to after_save callbacks and relied on Resque retrying the failed jobs when the record wasn't found.  I look forward to adding your patch and going back to using the transaction hooks.&lt;/p&gt;&lt;p&gt;Thanks so much for your many open source contributions.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Wed, 20 Apr 2011 16:37:12 -0000</pubDate></item><item><title>Re: http://blog.kiskolabs.com/post/776939029</title><link>http://blog.kiskolabs.com/post/776939029/rails3-resque-devise#comment-134386366</link><description>&lt;p&gt;Was anyone ever able to figure out this issue with CSS and JS?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Tue, 25 Jan 2011 13:11:56 -0000</pubDate></item><item><title>Re: Making Statistical Social Validation Fast - rywalker.com</title><link>http://rywalker.com/making-statistical-social-validation-fast#comment-120092132</link><description>&lt;p&gt;validates_presence_of_social_validation :on_signup =&amp;gt; true&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Tue, 28 Dec 2010 08:38:07 -0000</pubDate></item><item><title>Re: Integration Testing Resque with Cucumber</title><link>http://corner.squareup.com/2010/08/cucumber-and-resque.html#comment-69546142</link><description>&lt;p&gt;We also use Resque and integration tests (rspec only though, no cucumber) for a fairly large application.  Our approach is much simpler, we have a helper method called `do_work` that looks like this: &lt;a href="http://gist.github.com/534574" rel="nofollow noopener" target="_blank" title="http://gist.github.com/534574"&gt;http://gist.github.com/534574&lt;/a&gt;&lt;/p&gt;&lt;p&gt;The first line of the method is for resque-scheduler which we also use.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Wed, 18 Aug 2010 08:41:09 -0000</pubDate></item><item><title>Re: Extending Formtastic with a sprinkle of jQuery - diminishing.org</title><link>http://diminishing.org/extending-formtastic-with-a-sprinkle-of-jquery#comment-61888703</link><description>&lt;p&gt;Wouldn't that include the javascript and stylesheet each time comboselect_input is called?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Tue, 13 Jul 2010 12:03:49 -0000</pubDate></item><item><title>Re: Extending Formtastic with a sprinkle of jQuery - diminishing.org</title><link>http://diminishing.org/extending-formtastic-with-a-sprinkle-of-jquery#comment-59861206</link><description>&lt;p&gt;Thanks for mentioning this Ajescudero, this is in my original markdown content, but for some reason it's not being preserved in the conversion to HTML.  I'll take a look.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Tue, 29 Jun 2010 14:55:18 -0000</pubDate></item><item><title>Re: This blog is closed.</title><link>http://drawohara.com/post/589759728#comment-50336834</link><description>&lt;p&gt;No, don't go!!!&lt;/p&gt;&lt;p&gt;Seriously though, thanks for all the awesome snippets, libraries, etc.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Fri, 14 May 2010 09:12:01 -0000</pubDate></item><item><title>Re: paperplanes. ActiveRecord's Callbacks Ruined My Life</title><link>http://www.paperplanes.de/2010/5/7/activerecord_callbacks_ruined_my_life.html#comment-49084059</link><description>&lt;p&gt;Mathias, I agree with you and your point about turning controllers into services.  I've always disliked putting this logic in the controller, because the tests are tied to the HTTP request / response cycle.  I much rather use the approach that James describes and I'm not all that worried about the extra files or classes if it means extra clarity.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Sat, 08 May 2010 09:48:18 -0000</pubDate></item><item><title>Re: Rails Integration Testing Stack for Winners - Will Leinweber</title><link>http://bitfission.com/blog/2010/05/rails_integration_stack_for_winners.html#comment-48144973</link><description>&lt;p&gt;You should check out the capybara-envjs driver, it is much simpler to use compared to C(e|u)lerity.&lt;/p&gt;&lt;p&gt;&lt;a href="http://github.com/smparkes/capybara-envjs" rel="nofollow noopener" target="_blank" title="http://github.com/smparkes/capybara-envjs"&gt;http://github.com/smparkes/...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Mon, 03 May 2010 09:05:27 -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-41947938</link><description>&lt;p&gt;James, I'm curious where / how you handle the instantiation of the Service objects?  Do you instantiate it in the controller?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Sat, 27 Mar 2010 21:57:15 -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-41888937</link><description>&lt;p&gt;James, thank you.  Your post and the comments have been a great read.  As a developer who was first introduced to OOP through Rails, I followed the same pattern of development described by sandimetz.  I always found functional (read: controller) testing to be awkward and enjoyed how much easier testing was with fat models.  Until our models became so fat, it became a maintenance nightmare.&lt;/p&gt;&lt;p&gt;At the office, my coworkers regularly hear me ranting about the context in which model creation occurs.  I've taken a half-baked approach to what you describe above in certain situations where we've felt some pain.  While my approach was slightly different than yours, I like what you present better.  I think we're going to use this pattern much more in order to bring some much needed flexibility to our app.&lt;/p&gt;&lt;p&gt;We've recently taken a liking to using Presenters; I'm curious how you think they fit alongside the Service pattern?  What you've laid out so far is immensely helpful, but I agree with sandimetz that some clear guidelines would help others in adopting this pattern.&lt;/p&gt;&lt;p&gt;I believe the future of my Rails development will likely be using the MVCPS pattern.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Sat, 27 Mar 2010 10:36:41 -0000</pubDate></item><item><title>Re: Blogging with Nesta - Oscar Del Ben</title><link>http://oscardelben.com/blogging-with-nesta#comment-40780385</link><description>&lt;p&gt;Thank you for this, I'm currently using it in my project.  I'm curious if you see any reason we couldn't be using the rack-pygments middleware instead of this hack?  After all Nesta is just a Sinatra application that is using Rack anyways.&lt;/p&gt;&lt;p&gt;I tried adding "require 'rack/pygments" and "use Rack::Pygments" to &lt;a href="http://config.ru" rel="nofollow noopener" target="_blank" title="config.ru"&gt;config.ru&lt;/a&gt; but it did not work.  Am I missing something obvious why this wouldn't work?&lt;/p&gt;&lt;p&gt;I ask because I also had to hack the Page#body method in addition to FileModel#to_html in order to make all the generated html have syntax highlighting.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Guterl</dc:creator><pubDate>Sun, 21 Mar 2010 13:55:28 -0000</pubDate></item></channel></rss>