<?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 tehlike</title><link>http://disqus.com/by/tehlike/</link><description></description><atom:link href="http://disqus.com/tehlike/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 26 Dec 2008 17:54:16 -0000</lastBuildDate><item><title>Re: Oxite Refactor, Take 1 : Rob Conery</title><link>http://blog.wekeroad.com/blog/oxite-refactor-take-1/#comment-4658624</link><description>&lt;p&gt;Well, now I understand what you mean. Yes, I would also go with Bootstrapper, register AppSettings["apikey"] thing as a dependency for AkismetSevice. &lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tuna Toksoz</dc:creator><pubDate>Fri, 26 Dec 2008 17:54:16 -0000</pubDate></item><item><title>Re: Oxite Refactor, Take 1 : Rob Conery</title><link>http://blog.wekeroad.com/blog/oxite-refactor-take-1/#comment-4656603</link><description>&lt;p&gt;Does structure map support xml config? I assumed it does, configuring it there may not be good, because it should be set during compiletime, which means this should be recompiled. If it supports xml, it is better to mix this(or better have your own configuration scheme, but this may not be as beneficial) otherwise AppSettings seems to be the way to go.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tuna Toksoz</dc:creator><pubDate>Fri, 26 Dec 2008 14:55:38 -0000</pubDate></item><item><title>Re: Oxite Refactor, Take 1 : Rob Conery</title><link>http://blog.wekeroad.com/blog/oxite-refactor-take-1/#comment-4598039</link><description>&lt;p&gt;Join me, maybe ? :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tuna Toksoz</dc:creator><pubDate>Tue, 23 Dec 2008 18:08:20 -0000</pubDate></item><item><title>Re: Oxite Refactor, Take 1 : Rob Conery</title><link>http://blog.wekeroad.com/blog/oxite-refactor-take-1/#comment-4589162</link><description>&lt;p&gt;Rob, some little things I have noticed:&lt;/p&gt;&lt;p&gt;1. Instead of using System.Configuration.ConfigurationManager.AppSettings as the store for wordpress api key, wouldn't it be better to have it injected, to increase easier testability? (The same thing goes with AccountController:OpenId)&lt;br&gt;I _believe_ it is better to have something like IAuthenticationProvider to hide OpenId details, it's place, imho, is not the controller.&lt;br&gt;And also passing "localhost" may not be a good thing, but it doesn't matter much.&lt;/p&gt;&lt;p&gt;2.I am not sure if this returns null ever (in LocalizationService)&lt;br&gt;            List&amp;lt;phrase&amp;gt; result= (from p in _phraseRepo.GetPhrases()&lt;br&gt;                    where p.LanguageCode == languageCode&lt;br&gt;                    select p).ToList();&lt;br&gt;By convention, it should return a list with no element.&lt;/p&gt;&lt;p&gt;3. I believe(no strong thoughts on that)&lt;/p&gt;&lt;p&gt;public LazyList&amp;lt;tag&amp;gt; Tags { get; set; }&lt;/p&gt;&lt;p&gt;I would personally return IList&amp;lt;tag&amp;gt; for  the sake of abstraction.(even though it hides some detail)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tuna Toksoz</dc:creator><pubDate>Tue, 23 Dec 2008 10:04:16 -0000</pubDate></item><item><title>Re: Oxite Refactor, Take 1 : Rob Conery</title><link>http://blog.wekeroad.com/blog/oxite-refactor-take-1/#comment-4546298</link><description>&lt;p&gt;No, definitely not a push back! I like to discuss about software as it is a great way to learn. &lt;br&gt;The thing that me and you differentiate at is (probably) that I am thinking a little further, and trying to provide extension mechanism at the beginning, while you are doing things as you come across, ie iteratively. Maybe you would do this my way when needs require this.&lt;/p&gt;&lt;p&gt;On the other hand, I still think that Spam Check is better to be a seperate concern and this seperation brings more flexibility.&lt;/p&gt;&lt;p&gt;Anyway, I started to repeat myself, I probably cannot find the right technical term for this issue.&lt;/p&gt;&lt;p&gt;I liked this discussion as it made me think again and again. Thanks, Rob!&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tuna Toksoz</dc:creator><pubDate>Sat, 20 Dec 2008 18:42:07 -0000</pubDate></item><item><title>Re: Oxite Refactor, Take 1 : Rob Conery</title><link>http://blog.wekeroad.com/blog/oxite-refactor-take-1/#comment-4545683</link><description>&lt;p&gt;Actually I think we both understand each other, and I really get what you mean, but i am probably failing at some points that i want to tell. If I can tidy up my mind and can find time, I am glad to write on my point, maybe I will have to agree with you if I think densely on that, who knows? :)&lt;/p&gt;&lt;p&gt;Thanks for you attention, Rob. I really appreciate it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tuna Toksoz</dc:creator><pubDate>Sat, 20 Dec 2008 17:46:54 -0000</pubDate></item><item><title>Re: Oxite Refactor, Take 1 : Rob Conery</title><link>http://blog.wekeroad.com/blog/oxite-refactor-take-1/#comment-4544988</link><description>&lt;p&gt;This is what business layer is for, correct but you can divide business into several points too. Isn't having a hook makes the design more clear? And you remove one concern from your business to another point, with a bonus of extensibility.&lt;br&gt;You can wire up the events using containers, this is a piece of cake.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tuna Toksoz</dc:creator><pubDate>Sat, 20 Dec 2008 16:41:28 -0000</pubDate></item><item><title>Re: Oxite Refactor, Take 1 : Rob Conery</title><link>http://blog.wekeroad.com/blog/oxite-refactor-take-1/#comment-4544025</link><description>&lt;p&gt;Hi Rob, Thanks for the attention. I said Decoupling but it was my fault, now I say SRP.&lt;br&gt;My reasoning is that spam service is one of the many possibilities that can be done with the comment. Other possibilities, for example, are sending a notification to the author of the post that there is a new comment etc. Thinking on those, I see that adding those new actions to the controller would be ugly and an indicator of SRP, too. If you use event handlers, new handlers can easily be attached, and you'll have cleaner code.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tuna Toksoz</dc:creator><pubDate>Sat, 20 Dec 2008 15:22:11 -0000</pubDate></item><item><title>Re: Oxite Refactor, Take 1 : Rob Conery</title><link>http://blog.wekeroad.com/blog/oxite-refactor-take-1/#comment-4542878</link><description>&lt;p&gt;Rob, &lt;br&gt;I believe Akismet implementation shouldn't be in Create action in CommentController. I would decouple it to have more flexible code.&lt;br&gt;Here is my thoughts:&lt;br&gt;&lt;a href="http://tunatoksoz.com/post/Decoupled-design-with-events.aspx" rel="nofollow noopener" target="_blank" title="http://tunatoksoz.com/post/Decoupled-design-with-events.aspx"&gt;http://tunatoksoz.com/post/...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Thanks for your attention&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tuna Toksoz</dc:creator><pubDate>Sat, 20 Dec 2008 13:55:17 -0000</pubDate></item></channel></rss>