Author Archives: John Teague

JQuery Does Not Like QuirksMode

I was helping a client out today with a JQuery issue. They were well into the development of an applications that heavily uses the JQuery UI dialog widget to show information.  Like most web developers they were using Firefox/Firebug for … Continue reading 

Posted in JavaScript, jQuery | 2 Comments

Testing Private & Protected Members of a Class

In my last blog post, someone asked me you can write unit tests for a private or protected method.  I gave part of the response in a comment, but I need to give a more detailed description. Focus on the … Continue reading 

Posted in c#, Testing | 7 Comments

The TryThis method

The more I learn and use dynamic languages like JavaScript and Ruby, the more I feel the constraints placed on me by the C# compiler.  Today I needed to wrap a bunch of calls to a web service facade in … Continue reading 

Posted in c# | 11 Comments

Wiring Up Generics In Castle Windsor

I’m working with a new team that has a slightly different technology stack then I’m used to.  On most projects where I am the team lead, StructureMap is my IOC container of choice.  I’ve always thought that this was just … Continue reading 

Posted in Castle, IOC | 6 Comments

Demeter Helps You Fend Off the One True Constant: Change

There have been some good discussion lately around the Law of Demeter.  The worst thing about Law of Demeter is that it has the word “Law” in it.  Like all of the SOLID principles, it should be considered a rule … Continue reading 

Posted in Law of Demeter, Software Design, SOLID | 8 Comments

Giving Your MVC Views an Identity

One of the great CSS tips I got from Zen of CSS was to put an id on the body tag of your html pages.  This makes it really easy to use one CSS file for your entire site (a … Continue reading 

Posted in CSS, MVC | 8 Comments

Programming Basics: The for loop can do more than increment an integer

This is one of those small things that is easy to forget.  Usually when we use a for loop, we’ll just incrment over an integer so that we can get a specific item out of some iteration.  But you can … Continue reading 

Posted in Uncategorized | 2 Comments

Ruby and Rake as an executable

I’ve been trying for months to get my partner in crime, Stephen Balkum, to switch to Rake as our default build system.  We’ve been using Nant FOREVER and while it works, I really hate writing Nant scripts. The problem Stephen … Continue reading 

Posted in Uncategorized | 6 Comments

Austin Code Camp Schedule

Several people have already mentioned some of the sessions at this year’s Austin Code Camp. We’ve posted the schedule for people to view.  We may move some around depending on how the voting goes to make sure there is adequate … Continue reading 

Posted in Uncategorized | Leave a comment

Submit Your Austin Code Camp Sessions Now

The deadline for submitting session is April 19.  If you want to speak at this year’s code camp, better hurry up.  We have about 27 sessions submitted so far, most of them 2 hours in length.  Also remember, I don’t … Continue reading 

Posted in Uncategorized | Leave a comment