February 2006 - Posts

Northwind Starter Kit
28 February 06 03:53 PM | despos | 9 comment(s)

I confess I never paid much (due?) attention to design patterns. My friend Andrea, instead, is head over heel in love with such fancy things. By the way, if you feel that the topic somehow catches you, but can hardly make sense of the whole picture, pay a visit here

So when did I start changing my mind about design patterns? By rule of thumb, it was coincident with the introduction of ObjectDataSource in ASP.NET 2.0. As some of you may know, I didn't spend much time lately consulting and thus facing the risk of being involved in serious multi-tier distributed systems where BLL and DAL are key and essential--no more no less.

No matter the trigger, I found myself in troubles devising first, and designing later, a good and effective BLL and DAL. Speaking to Andrea, I happened to say something like "Where can I find some simple but insightful, thoughtful, and quick-to-learn guidance to start designing a good business layer?" The reply was, "Have you ever looked at enterprise design patterns such as Data Mapper, Data Transfer Object, Table Data Gateway?"

What?

Design patterns don't teach you how to write code and don't change your style or your way of looking at applications and requested features. They simply offer guidance; just the kind of guidance you need when you try to handle and manage a humongous thing and don't know exactly the best position of hands, feet, and head.

I'm still sort of newbie as far as patterns are concerned, but I felt I needed a serious project for me to learn more quickly and effectively. That's why I embraced and hopefully revamped an Andrea's old project--the Northwind Starter Kit (NSK).

NSK is a sample application to illustrate blueprints of a .NET-based layered application architecture. It includes a various presentation front-ends, various DAL based on SQL Server 2000 and Access, and a business layer designed according to various popular design patterns. It's in C#. Take a look, and get back with comments. 

 

 

 

A link to Virtual Path Providers
09 February 06 06:47 PM | despos | 5 comment(s)

The first week of the month is when I usually start working on the MSDN Magazine Cutting Edge column. This month I was supposed to write about ASP.NET virtual path providers--that neat feature that allows you plug your own custom pseudo file system into ASP.NET. In this way, the runtime retrieves the source code of the requested resource asking your provider instead of going down to the physical file system. Designed to allow the next version of SharePoint to be built on top of ASP.NET 2.0, virtual path providers let you--for example--put most of your web site in a MDF database.

So I was just going to write such an article, but a quick search with Google--you never know what's in the Web--found this recently published article. It's just great, well written and insightful. To cut an otherwise long story short, I changed the topics being covered in the June 2006 issue of MSDN Magazine. Victor, great job!

DevConnections comes to Europe
01 February 06 04:50 PM | despos | 2 comment(s)

DevConnections--the most technical conference I know--is coming to Europe in April. Well, not just Europe but one of the most attractive parts of Europe--the Cote Azure or French Riviera if like it better. Read here all the details.

With DevWeek in London only a few weeks away (Feb 20-24), and TechEd 2006 moved to November, DevConnections is going to be the top .NET 2.0 event for all the devs living on this side of the Atlantic ocean.

Sure, what about the guys developing around the Indian and Pacific ocean? I don't know, but hope to see SOON DevConnections conquer the world :)

Here's the talks I'm giving at DevConnections Orlando (April 2-6) and Nice (April 24-27)

Orlando

  • The Atlas Application Framework
  • Workflow Programming in ASP.NET
  • Look Before You Leap—ADO.NET 2.0 Features for SQL Server
  • Build a Realistic Data Access Layer with the .NET Framework 2.0

plus a full-day seminar "Advanced ASP.NET" where you'll see,among other things, build providers and async pages dug out.

Nice

  • The Atlas Application Framework
  • Workflow Programming in ASP.NET
  • Asynchronous Commands in ADO.NET 2.0
  • Build a Realistic Data Access Layer with the .NET Framework 2.0
  • Asynchronous Tasks and Asynchronous ADO.NET Commands
  • Look Before You Leap: ADO.NET 2.0 Features for SQL Server
  • ADO.NET Connection Pooling
  • Look Before You Leap: ADO.NET Batch Update

More on these talks in future posts

Kudos to XmlHttp and IE7
01 February 06 04:35 PM | despos | 5 comment(s)

Now that Programming ASP.NET 2.0 Applications--Advanced Topics is almost ready for printers, I see the sunlight again :)

I just needed to find a good topic to blog about. Here's one.

As you can read in a much greater detail here from the direct voice of the team, IE7 is going to incorporate XmlHttp in its own object model. As you know, XmlHttp is one of the least known but most crucial software invention of the past (hex) century. Introduced by IE5 back in 1999 but already used in Web interface of Exchange, and regardless of the XML in the name, it is merely a HTTP object model. You use it as a component to send HTTP requests to a public URL. Today, XmlHttp is at the heart of Atlas, Ajax.NET, and ASP.NET Script callbacks.

Without XmlHttp nothing of the above would be possible.

For one time, the "other" good guys had to copy (ehm, get inspired) by Microsoft's "bad" guys. XmlHttp was soon incorporated in Mozilla and made available to Netscape, Firefox, Safari, and Opera users.

Quite paradoxically, though, the Mozilla implementation of XmlHttp was "better" than the MS original implementation for the simple fact that it was incorporated in the browser's scripting object model. In IE6 and below, XmlHttp is an ActiveX component and requires users to lower their security settings to accept ActiveX components safe for scripting.

This state of things finally ends with IE7. It is a great news and it was about time. Thanks guys!

More Posts