Yes it’s true… there in is a framework that acts just like mockito for javascript: jsMockito! The stubbing action looks pretty cool, and I’ll try in depth later when I’m home. But here’s a quick sample to whet your appetite: var mockedObject = mock(Array); when(mockedObject).get(1).thenReturn(“hello world”);
Archive for January, 2010
I’m a Stupid Moron
Or am I? Today I did something that made me step back and recall a time long long ago when I was working with SOAP on a project. See, I had to integrate a PHP application with a SOAP service and used a utility to generate all the client objects and stubs I needed, then [...]
links for 2010-01-26
Best Presentation Tips | Speaking about Presenting: Presentation Tips from Olivia Mitchell (tags: presentation resources tips publicspeaking)
links for 2010-01-25
Eclipse Templates for Apache Camel (tags: apache eclipse template)
links for 2010-01-23
Knowledge Genes® – Maximize your Effectiveness as an agile coach (tags: coaching agile)
links for 2010-01-14
JViews Maps Documentation (tags: mapapi ibm ilog jviews)
links for 2010-01-13
GitAtApache How to use git svn with apache projects (tags: development apache svn git)
Why I Hate Classical Singletons
Recently a colleague asked me why I’m so against using singletons… why do I think they’re so bad. The answer is quite simple… when you use a singleton you’re essentially saying that your object accepts this dependency and only this dependency, it will take no substitutes. Since the dependency isn’t substitutable, it’s difficult to swap [...]

