Andrew Connell [MVP MOSS]
1543 Posts |  42 Articles |  4748 Comments
.NET  |  MCMS  |  SharePoint  |  Office System
SharePoint Quick Links
Article Categories
Archives
Post Categories


Add to Technorati Favorites

Every few days, I check my /Entertainment folder that has about 10 or so feeds in it. Three of the feeds always have something amusing from the previous few days, then there’s Dilbert… can’t ever get enough Dilbert.

Two recent posts stood out at TheDailyWTF.com, a blog that takes submissions from developers about development “things” that make you just go WTF?!?!

Post 1 (actual post source):

In the last year or so, we saw the concept of generics in managed code. Microsoft introduced them in their .NET 2.0 platform and Sun brought them into Java 5. If you haven't heard of generics before, they're kind of like templates in C++ and improve code reuse by allowing you to define classes and methods without specifying a particular type. It's a step above using the Object type because the compiler can ensure a better type safety. For example ...

using System.Collections.Generic;

List<CustomerRecord> customerList = new List<CustomerRecord>();
customerList.Add( new CustomerRecord() ); 
customerList.Add( new LineItem() ); //this will cause a compile error

Dan explained this concept to a fellow team member, as they were responsible for porting the application to .NET 2.0. His colleague scoffed, insisting he already knew this and had been doing it for years in C++, and will have no trouble with it in C# ...

Dictionary<Object, Object>  = new Dictionary<Object, Object>();

When Dan questioned his colleague on why he consistently use Generics like this, his colleague scoffed again: "duh, I want it to be generic and not tied to any particular class".

Post 2 (excerpt from this actual post source):

Matt Kane was curious why he couldn't open a new tab, so he did a quick View Source on a Sun web page and learned that they found a way to reinvent the hyperlink ... within the hyperlink ...

<a href="http://thedailywtf.com/Rss.aspx#" onclick="location='http://www.sun.com'; return false;">

Oh, in case you’re wondering, the other two sites I always get a kick out of are the Gaping Void (thanks Jonathan for his great lead) and The Daily Czabe, Steve Czaben’s blog who’s the host of FOX Sports Radio’s national morning show, and a freaking hilarious one at that.

posted on Tuesday, March 07, 2006 12:10 AM

Feedback

# re: Gotta love TheDailyWTF.com ... 3/7/2006 12:39 AM Jonathan Bates
Gravatar Glad you got a kick out of Gaping Void. Whenever I have had a bit too much corporate babble-speak and need a bit of wry perspective, I just stare a little into the Void.

Post Feedback

Title:
Name:
Email:
(email will not be displayed)
Url:
Comments: 
Please add 1 and 7 and type the answer here:    
All Comments Are Filtered & Moderated
Unfortunately comment spammers are just too effecient and are constantly dirtying up blogs with irrelevant and unwanted comments trying to improve their standing on search engines. All comments on this blog are moderated. I do not censor comments, but I don't approve comments with vulger language or those soliciting products. Most of the time comments are approved within a few hours of being submitted with the only exception when I'm traveling.

Why are you asking for my email address?
The only reason I'm asking for your email address, which isn't required to submit a comment, is to provide a gravatar if you've created an account for yourself and associated your email address with a small image. If you have a gravatar created for the email address you submit, it will appear next to your comment. Otherwise nothing will appear.

What is a gravatar?
A gravatar is a "globally recognized avatar." You can get more information about gravatars, as well as create your own for free, at www.gravatar.com. You can also view my gravatar here.


Copyright © 2003 - 2010 Andrew Connell
Creative Commons License 
This work is licensed under a Creative Commons License
Site design by Heather Solomon.

 
 
MOSS WCM Training
Looking for MOSS 2007 WCM developer training? Look no further! I teach my 5-day hands-on and online WCM classes for developers I offer through my company: Critical Path Training.

Get more information on the WCM courses!