Design Patterns and Dependency Injection

I just got back from a great nPlus1.org ArcSummet event at the local Nashville Microsoft office.

Brian Prince and James Bender presented the following topicsā€¦

Session One: Software Patterns by Brian Price
Patterns are an important tool to use as architects and developers. They provide a common vocabulary for us to design with, as well as a common approach to a common problem. Come learn about useful patterns, and how to use them in your everyday code.

Resources

Contact Information


Session Two: How I Learned To Love Dependency Injection by James Bender
Dependency Injection is one of those scary topics that most developers avoid. It sounds all ā€˜high-falootinā€™ and complex. Itā€™s not. Really. We wouldnā€™t lie. Itā€™s a great way to manage complexity in your system, and a great way to make your system so much more testable. And isnā€™t that what we all want?

Resources

Contact Information

Read More »

ASP.NET CheckBoxList Align When Wrapping

I have been recently tasked with making a new Theme for a ASP.NET project at work. I was told that I could only update the Theme folder and nothing else (not C#, not JavaScript, not jQuery, etcā€¦).

Part of the requirements for the new theme is that it be friendly to older users (a.k.a. use bigger fonts).

As I made the fonts bigger in the site a lot of text started to wrap in places that it hadnā€™t before (like the checkboxlists for example).

This is where the ASP.NET CheckBoxList comes into play. When the labels next to the checkboxes gets longer it doesnā€™t wrap nicelyā€¦

CheckListBefore

Instead, I need the wrapped text to align nicely under the text above next to the checkbox likeā€¦

CheckListAfter

At first, I was likeā€¦ ā€œOhh, that shouldnā€™t be a big dealā€, but then I realized I was dealing with a table, tr, td, etcā€¦

I did a quick Google search and found a lot of other people having the same problem, but in all of the cases no one had a solution or the responders of the questions said it wasnā€™t doable.

So, I thought I would take a stab at it myself. Here is what I came up with which appears to work in IE6, IE7, and Firefox 3. For some reason it doesnā€™t work in IE8 and Chrome 3 (which does bother me, but Iā€™ll investigate more later).


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


CheckBoxList Align when Wrapping



















You are also welcome to view the demo of the above code sample.

Note: If you can fix the code to work in IE8 and Chrome 3 that would be greatly appreciated. If so, please post a comment with your solution!

Read More »

jQuery Resource Collection

I recently started a Google Spreadsheet to include top resources for jQuery such as where to get started, great plugins, helpful tools, useful cheat sheets, quick tutorials, etcā€¦ (accessible via the tabs at the bottom of the spreadsheet)

<p>Iā€™ve only just begun to fill out the Spreadsheet, but I have already shown several people and told them I would post it online as a resource for them.</p>    <p>I hope to maintain this list not only for myself, but also to assist those that are looking for good resources. I envision more tabs being created in the near future (such as Unit Testing Frameworks, etcā€¦)</p>     <p><strong>Note</strong>: Make sure to click the tabs at the bottom on the above spreadsheet... like the Tutorials, Plugins, Tools, Cheat Sheets, and whatever else might be there in the near future :)</p> <p>If you have a great resource you would like to recommend to this list, please leave a comment and I will consider adding it.</p>
Read More »

TweetDeck vs. Seesmic

To TweetDeck or not to TweetDeck? That is the questionā€¦

Seriously, with the recent release of Twhirlā€™s big daddy Seesmic, should you abandon TweetDeck and change your loyalties?

Well, there are two main reasons why you may consider changing your twitter clientā€¦

  1. Smaller Footprint
  2. Supports Multiple Accounts

For more information

Seesmic Desktop doesn't have TweetDeck's voracious appetite for RAM. At startup it weighed in at about 65Mb and has reached 79Mb after letting it run overnight. Leaving TweetDeck on would typically result in anywhere between 300 and 600Mb of memory consumed. Seesmic also supports multiple Twitter accounts, so it bests TweetDeck beaten on two fronts. --Seesmic Desktop packs TweetDeck's features with a smaller footprint

Iā€™ve been using Seesmic for the past week or so and Iā€™ve found it to be very refreshing. Most of the features from TweetDeck are present in Seesmic and I would imagine in the near future the gap between them will become even closer.

Read More »

Top 5 jQuery Modal Plugins

Iā€™ve been working on a couple of prototype projects over the last month or so and inevitably I end up needing some type of modal dialog to either notify or request information to/from the user.

Historically, Iā€™ve just beenĀ  BlockUI man, but I wondered what everyone else in the jQuery community was using for a modal dialog plugin.

So, about a week ago I tweeted a poll from PollDaddy asking what modal plugins you use.

Here are the results of the pollā€¦

<p></p>     <p>As you can see, out of the 15 jQuery Modal plugins that I polled, the community picked the following 5 to be their favorite jQuery Modal Dialog pluginā€¦</p>  <ol><li><a href="http://bit.ly/ryj5W">ThickBox</a></li>    <li><a href="http://bit.ly/nanDw">BlockUI</a></li>    <li><a href="http://bit.ly/TEWCl">jQuery UI Dialog</a></li>    <li><a href="http://bit.ly/YtiI1">jqModal</a></li>    <li><a href="http://bit.ly/8zLZn">Facebox</a> </li> </ol>
Read More »