Centriq .NET Blog with Leslie Koorhan

Leslie Koorhan

Hi, I’m Leslie Koorhan, and I’m doing the .NET blog. This is very exciting for me as  we are transitioning...[Read More]

Archives

May 2008 (2)
June 2008 (3)
July 2008 (1)

Tag Cloud

ADO.NET, AJAX, ASP.NET, Declarative Programming, LINQ, Procedural Programming, Silverlight, Visual Studio 2008, WCF, WF, WPF,

Programming with Abstractions 

Tags: ADO.NET, ASP.NET, Declarative Programming, Procedural Programming

In the book "Dreaming in Code" (by Scott Rosenberg), there is a section on programming today being done as a layer of code on top of another layer of code on top of another layer of code, etc. Most developers realize this because they work with compiled languages that are then turned into machine code by the compiler. In the case of .NET, whether you program in Visual Basic or Visual C#, the compiler turns the code into MSIL, an intermediate language that then becomes machine code at runtime. So there are 3 layers of code with .NET.
 
In the .NET Framework 2.0, and especially with ASP.NET, Microsoft programmers created another layer, especially in working with data through ADO.NET. Instead of the procedural programming in creating connections, commands, data adapters and data sets, you can use a Sql Data Source object to encapsulate all of that behavior. This object does not show up as procedural code, but as tags with the markup for the web page. Then you can bind controls on the web form to the data source object. This creates another layer, of abstraction, using declarative programming. The huge advantage of this is that I can design a relatively complex web page with NO code whatsoever. The downside is that if the page does not work, there is no code to debug, just properties of controls to adjust. This is the problem with layers of abstraction in programming.
 
Posted by Leslie Koorhan on 3-Jun-08
0 Comments   |  Bookmark this post with:        
 

Comments

Name:
URL:
Email:
Comments:

CAPTCHA Image Validation



8700 State Line Road Suite 200 Leawood, KS 66206 913-322-7000 Copyright 2008 Centriq All rights reserved.