Archive for June, 2010
Sample code – 50 ways to list your files
by Nelson on Jun.29, 2010, under General, Programming
OK, so it’s not 50, but it’s still a lot. My idea was simple. Create a small use case (in this case, create a file listing), and see how many different ways I can implement it using .net code. The first two were easy, good ol’ windows forms using c# and vb.net. Well then, why not WPF? Well, as long as we’re getting into the Microsoft foundation series, how about a WCF client/server version? And as long as we’re talking client/server why not Silverlight? Great, but all these technologies are so 2009. So let’s add an implementation using Microsoft’s Managed Extensibility Foundation (MEF) and the new code contracts…cool! Along the way I kept refactoring the code, but it still encompasses 17 projects. I’ll probably add an RIA Services version at some point as well, which should bring us up to a round 20 projects.
Just to list the files in a directory. Check out the code here: FileListing
Welcome to Onacat.net
by Nelson on Jun.29, 2010, under General
Onacat.net is my public playground . I’m interested in everything .NET at the moment, but over the past 35 years of mucking about with computers, I’ve worked with lots of different technologies and industries, so this too may change as the world turns. I’ve been working in .NET since before it’s official release. I attended one of Microsoft’s mass events up in Cupertino and was hooked.
I’m also interested in some Apple development, mostly dealing with the iPad and the iPhone, but haven’t really had a chance to explore these yet. So stay tuned and watch my experiments.