<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Sam Hennessy' S13PRO.com - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-baa2df75" type="application/json"/><link>http://s13pro.disqus.com/</link><description></description><language>en</language><lastBuildDate>Sat, 29 Aug 2009 11:00:32 -0000</lastBuildDate><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-15567416</link><description>Hi Sam - I'm really looking forward to seeing your ideas. Hope you get a chance to write the next part soon. I’d love to use something like this for a project that I'm working on. Would you be able to write up (or email me) the gist of it?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan Aquino</dc:creator><pubDate>Sat, 29 Aug 2009 11:00:32 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-12473837</link><description>I sure did and I love it. &lt;br&gt;&lt;br&gt;I original wanted to use FLOW3 but that was before PHP 5.3 was released and there was no idea when it was going to be (FLOW3 is build on PHP 5.3).&lt;br&gt;&lt;br&gt;After being disappointed I couldn't use FLOW3, I started looking at the issues in more detail. I feel to get good adoption of DI in PHP there needs to be a DI framework that is focused and standalone. &lt;br&gt;&lt;br&gt;FLOW3 is a full framework and I want to provide developers with a tool that could be used in a project that is already started.&lt;br&gt;&lt;br&gt;FLOW3 will without doubt be a point of reference for me to show people how it can be done well.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SamHennessy</dc:creator><pubDate>Fri, 10 Jul 2009 18:02:32 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-12465887</link><description>Did you know that FLOW3 has, among other things (like Aspect-oriented programming), implemented a full-blown Dependency Injection Framework with autowiring, constructor/setter injection, and many other neat features? &lt;a href="http://flow3.org/" rel="nofollow"&gt;http://flow3.org/&lt;/a&gt;&lt;br&gt;Greets,&lt;br&gt;Sebastian</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sebastian Kurfuerst</dc:creator><pubDate>Fri, 10 Jul 2009 15:38:04 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-12429711</link><description>I appreciate you taking the time to do that.&lt;br&gt;&lt;br&gt;Who knows how this could all turn out. Right now I'm just hoping to catch peoples attention.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SamHennessy</dc:creator><pubDate>Fri, 10 Jul 2009 01:25:28 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-12415062</link><description>I thought I'd mention the Symfony component on the off-chance you hadn't seen it but I'm probably at the edge of my knowledge about the right way to create a DI so I'll leave that to the experts. I'm sure Fabien and the rest of the Symfony team would welcome you joining their efforts to produce a top-notch DI if that would be more useful than re-inventing the wheel :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tony Piper</dc:creator><pubDate>Thu, 09 Jul 2009 20:09:34 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-12409019</link><description>I really like the work done with the Symfony container, it's extremely high quality code. &lt;br&gt;&lt;br&gt;I feel it doesn't go far enough and doesn't represent a full framework for the job of creation and pluming together of objects.&lt;br&gt;&lt;br&gt;I also feel that the concept of containers is no longer valid. The container concept we have here, I believe, is originally from Enterprise Java (J2EE) world. It was used in Spring as Spring was attempting to improve upon J2EE. &lt;br&gt;&lt;br&gt;I feel it's unnecessary as relationships can be described without having to add an extra layer in the form of a container.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SamHennessy</dc:creator><pubDate>Thu, 09 Jul 2009 17:17:46 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-12398984</link><description>thanks for your article ! I have developed one Di Container for PHP, inspired by the Spring one. Hope you enjoy it: &lt;a href="http://bitbucket.org/ametaireau/spiraldi/" rel="nofollow"&gt;http://bitbucket.org/ametaireau/spiraldi/&lt;/a&gt; . Any feedback is welcome. for now, I'm trying hard to incorpore one to the Zend Framework.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis Metaireau</dc:creator><pubDate>Thu, 09 Jul 2009 15:23:49 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-12398613</link><description>Does the newly-released Dependency Injection component from the Symfony team (&lt;a href="http://components.symfony-project.org/dependency-injection/" rel="nofollow"&gt;http://components.symfony-project.org/dependenc...&lt;/a&gt;) address your requirements? It's been decoupled from the Symfony framework and is designed to slot into any project...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tony Piper</dc:creator><pubDate>Thu, 09 Jul 2009 15:18:13 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-12388101</link><description>Thanks for the excellent question:&lt;br&gt;&lt;br&gt;I'm not able to comment on why other languages don't use DI. From the looks of the presentation you pointed me to PHP classes are closer to Java classes than they are Ruby so mocking is not that easy in PHP.&lt;br&gt;&lt;br&gt;Most projects find out they needed DI after the have already started the project. DI can be done without a framework if you start the project off writing in a DI manner. So some sort of tool or framework is needed to help in this situation to prevent having to do a rewrite.&lt;br&gt;&lt;br&gt;There are no PHP DI framework that work the way a PHP developer would like them to work. This is what I hear inside of a PHP developers head - "Make it easy to use out of the box, make it fast, I don't mind a little magic as I'm comfortable hacking at your framework if it's not working right"&lt;br&gt;&lt;br&gt;Education is an issues, most people haven't really "gotten" the DI thing yet. This is because DI is often mingled with other concepts like AOP. So focus is important that is why I'm promoting a DI only framework with a focus on testing.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SamHennessy</dc:creator><pubDate>Thu, 09 Jul 2009 13:19:09 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-12385972</link><description>DI is great but it also adds complexity in the application. &lt;br&gt;And one thing I would like to know from you: there are bunch of DI frameworks in Ruby like &lt;a href="http://needle.rubyforge.org/api/" rel="nofollow"&gt;http://needle.rubyforge.org/api/&lt;/a&gt; and so on but DI is not as profoundly used in Ruby community as in .NET and Java. As PHP is also dynamic language, is DI so important for PHP apps?&lt;br&gt;&lt;br&gt;Here is one presentation about the need of DI in dynamic languages &lt;a href="http://onestepback.org/articles/depinj/index.html" rel="nofollow"&gt;http://onestepback.org/articles/depinj/index.html&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">infynyxx</dc:creator><pubDate>Thu, 09 Jul 2009 12:28:07 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-12385787</link><description>Hi Adam,&lt;br&gt;    Thanks for the catch, that's once I seems to make all to often :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SamHennessy</dc:creator><pubDate>Thu, 09 Jul 2009 12:23:31 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto &amp;#8211; Part 2 (Why I Want It)</title><link>http://s13pro.com/2009/07/08/a-dependency-injection-for-php-manifesto-part-2-why-i-want-it/#comment-12381251</link><description>Um... When you instantiate something it's not an "instants," it's an "instance" be it a database connection or an object, it's an instance.&lt;br&gt;The name of the function in your DbConnection example should be getInstance()</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam</dc:creator><pubDate>Thu, 09 Jul 2009 10:20:34 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto - Part 1 (What I Want)</title><link>http://s13pro.com/2009/06/02/a-dependency-injection-for-php-manifesto-part-1-what-i-want/#comment-10947927</link><description>"Allow me to use the framework in my code without having to have any hint of it in my code."&lt;br&gt;This is fundamental as injectable classes should not know that the framework even exists. They must simply declare dependencies in the constructor. The hard part comes when you need to create objects in a method (because they have a shorter lifetime than the object one). While I will pass in the constructor a Factory class in a manual dependency injection approach, I am wondering how it can be done with a framework without having the class that uses the factory become dependent on the framework.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">GiorgioSironi</dc:creator><pubDate>Mon, 15 Jun 2009 17:25:36 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto - Part 1 (What I Want)</title><link>http://s13pro.com/2009/06/02/a-dependency-injection-for-php-manifesto-part-1-what-i-want/#comment-10934234</link><description>Your proposals match my personal taste. I would like to help out some way.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fqqdk</dc:creator><pubDate>Mon, 15 Jun 2009 11:57:50 -0000</pubDate></item><item><title>Re: A Dependency Injection for PHP Manifesto - Part 0 (Preface)</title><link>http://s13pro.com/2009/06/01/a-dependency-injection-for-php-manifesto-part-0-preface/#comment-10821963</link><description>Here here! I am a big fan of testing too, we are trying to use it more and more. We are now even doing TDD by spec'ing apps by writing test stubs. It's really a great experience.&lt;br&gt;&lt;br&gt;DI is clearly a missing piece in PHP; I haven't gotten far enough into testing to be expert enough at it to understand how to write testable code perfectly, but I am trying. Misko's Clean Code user guide has been very helpful: &lt;a href="http://misko.hevery.com/code-reviewers-guide/" rel="nofollow"&gt;http://misko.hevery.com/code-reviewers-guide/&lt;/a&gt;&lt;br&gt;&lt;br&gt;I would love to hear about your efforts to bring a Guice-style DI framework to PHP. IIRC it uses annotations. I am not sure that use of annotations at runtime for such excessive wiring is a good idea performance-wise, which would be my big concern. Maybe a good cache strategy can solve this, though.&lt;br&gt;&lt;br&gt;Alan</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan Pinstein</dc:creator><pubDate>Fri, 12 Jun 2009 20:20:34 -0000</pubDate></item><item><title>Re: Mr. Hennessy Presents DJ FAIL</title><link>http://s13pro.com/2008/10/31/mr-hennessy-presents-dj-fail/#comment-4942611</link><description>thanks for the spin! i dont think i can pick a fave track in this list! so many are MASSIVE! that jack beats remix has been my fave for a while but overall i think that fancy footwork is such a sleeper hit. sooo solid.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">captainc crunk</dc:creator><pubDate>Tue, 06 Jan 2009 18:30:34 -0000</pubDate></item><item><title>Re: Mr. Hennessy Presents DJ FAIL</title><link>http://s13pro.com/2008/10/31/mr-hennessy-presents-dj-fail/#comment-3427445</link><description>By any chance are you referring to the Human League song?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SamHennessy</dc:creator><pubDate>Fri, 31 Oct 2008 23:17:54 -0000</pubDate></item><item><title>Re: Mr. Hennessy Presents DJ FAIL</title><link>http://s13pro.com/2008/10/31/mr-hennessy-presents-dj-fail/#comment-3425921</link><description>&amp;lt;sigh&amp;gt; I'm officially old. I know 1 song on this list.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vegasgeek</dc:creator><pubDate>Fri, 31 Oct 2008 20:39:47 -0000</pubDate></item></channel></rss>