Eureka! Search Results

What Flex taught me about data-binding

August 10th, 2010 · 21 Comments

Like most other developers, when I first came across the Flex data-binding, I thought of it as an interesting feature, but haven’t realized the true implications of it until much later. Data-binding in Flex has revolutionized the way I think about building UIs. To understand why data-binding is so revolutionary, let’s ...

Tags: Uncategorized

Dependency-Injection and JavaScript closures

May 29th, 2010 · 21 Comments

As you can tell I am a big fan of DI, but I kept hearing that DI is not needed with dynamic languages, so after using JS for many months I am happy to say that DI is important there as well. In other words dependency managment and controll matters. ...

Tags: Uncategorized

Do it Yourself – Dependency Injection

May 26th, 2010 · 23 Comments

A friend of mine has put together a set of documents which talk about do-it-yourself dependency-inject. Being that I am a fan of DI and how it helps with testability I wanted to share it with you. It is a good read for anyone interested in getting better at ...

Tags: Uncategorized

Move over Java, I have fallen in love with JavaScript

April 7th, 2010 · 44 Comments

I spent the past year developing <angular/> in JavaScript (client) and Ruby on the server, and I have totally changed my opinion of dynamic languages, and I wanted to share some thought with you. Tests are a must Compilers are great at telling you that you have miss-typed something or that ...

Tags: Uncategorized

Automatic Dependency Injection In The Land Of Dynamic Languages

October 25th, 2009 · 5 Comments

Automatic Dependency Injection Frameworks (such as GUICE, PicoContainer, and Spring) are very popular in Java, where they depend heavily on static typing, interfaces, reflection and annotations. But what about languages such as ActionScript, JavaScript, Python and Ruby, where duck-typing and lack of ...

Tags: Uncategorized

ActiveRecord is hard to test

June 29th, 2009 · 1 Comment

Reader asks: have a question regarding testing of Active Record style domain models The problem is: client code of these objects will instantiate them directly, modify some attributes and then invoke a save(), or insert() method directly on the object. Writing a unit test that doesnt talk to the database is difficult ...

Tags: Uncategorized

The Problem With Active Record

May 5th, 2009 · 21 Comments

By John Januszczak The Active Record pattern has gained a lot of attention lately, particularly because of it's use in the wildly popular Ruby On Rails ("RoR') framework. Other frameworks which employ the Active Record pattern include the ...

Tags: Uncategorized

Constructor Injection vs. Setter Injection

February 19th, 2009 · 31 Comments

by Miško Hevery There seems to be two camps in dependency-injection: (1) The constructor-injection camp and (2) the setter-injection camp. Historically the setter-injection camp come from spring, whereas constructor-injection camp are from pico-container and GUICE. But lets leave the history behind and explore the differences in the strategies. Setter-Injection The basic-ideas is that you have a no ...

Tags: Uncategorized

When to use Dependency Injection

January 14th, 2009 · 19 Comments

by Miško Hevery A great question from the reader... The only thing that does not fully convince me in your articles is usage of Guice. I'm currently unable to see clearly its advantages over plain factories, crafted by hand. Do you recommend using of Guice in every single case? I strongly ...

Tags: Advice

Testability – re-discovering what we learned and forgot about software development

January 13th, 2009 · 8 Comments

[Reposted from: http://www.geekinasuit.com/2008/12/testability-re-discovering-what-we.html] by Christian Gruber (or, why agile approaches require good old-fashioned O-O) What are we all talking about? (the intro) Testability comes out of an attempt to understand how agile processes and practices change how we write software. Misko Hevery has written some rather wonderful stuff on his blog, and starts to ...

Tags: Uncategorized