Register | Login 
Articles  

Current Articles | Categories | Search | Syndication

Articles from John Spano

Implementing the Singleton Design Pattern in .Net

By John Spano on Wednesday, February 22, 2006 :: 903 Views :: 0 Comments :: Design Patterns

Level: Intermediate to Object Oriented Programming; Beginner + with .Net and C#
 

    Design Patterns are a very useful programming concept that is often forgotten about in the heat of a programming project. Design Patterns are basically code design templates that have been perfected over the years by many different programmers and architects. They represent repetitive design concepts that don’t differ much.

Read More..

Implementing the Strategy Pattern in .Net

By John Spano on Tuesday, February 21, 2006 :: 859 Views :: 2 Comments :: :: Design Patterns

Level: Intermediate + to Object Oriented Programming; Beginner + with .Net and C#
 
 
            Frequently with applications many of the operations they perform are dynamic depending on several factors.  Think about a common scenario, sales tax.  Tax amounts are based off the place where you live.  There are many different tax rates in each country.  A good method of implementing dynamic patterns like taxes is needed.  The strategy pattern covers this gap for us.

Read More..

Implementing the Proxy Design Pattern In .Net

By John Spano on Tuesday, February 21, 2006 :: 770 Views :: 0 Comments :: Design Patterns

Level: Beginner + to Object Oriented Programming; Beginner + with .NET and C#
 
            The Proxy design pattern shows a way to do just in time loading of objects that would consume too much memory to keep around, or takes a lot of time to load.  This can be a very useful pattern for many applications.  A good example of this pattern is in Microsoft Office.  When you open a large Word document that has lots of embedded pictures, Office doesn’t load them all at the time you open the document.  As you scroll down, Office will pull the pictures from the disk file and insert them into the document.  You can see this by scrolling very fast down the document.  It takes a second or so for the document to “catch up” to you and show the visible images.

Read More..

Implementing the Factory Pattern in .Net

By John Spano on Tuesday, February 21, 2006 :: 838 Views :: 0 Comments :: Design Patterns

Level: Beginner + to Object Oriented Programming; Beginner + with .Net and C#
 
            The factory design pattern is very simple.  Several other patterns build off of it though, so it is a common base pattern.  You use this pattern when one or more of the following are true:

Read More..

Implementing the Command Pattern in .Net

By John Spano on Tuesday, February 21, 2006 :: 850 Views :: 0 Comments :: Design Patterns

Level: Beginner + to Object Oriented Programming; Beginner + with .Net and C#
 
            The command pattern is a very useful pattern when you want to give your users the ability to do certain things and undo them.  Typical examples are the undo and redo on many programs today.  This functionality is accomplished with the command pattern.  The GOF book says to use a command pattern when:

Read More..

Implementing the Visitor Design Pattern In .Net

By John Spano on Tuesday, February 21, 2006 :: 804 Views :: 1 Comments :: :: Design Patterns

Level: Intermediate to Object Oriented Programming; Beginner + with .NET and C#
 
            The visitor design pattern is very useful in situations where normal polymorphism won’t work because we have fundamentally different objects, with different interfaces, that you want to work on your concrete main object.  The pattern is used to give us a way to do these different operations on the object.  According to the GOF book, you use the visitor pattern when:

Read More..

Plug-In Architecture With Reflection

By John Spano on Tuesday, February 21, 2006 :: 926 Views :: 1 Comments :: :: VB.Net

Dot Net has an interesting and very useful concept called Reflection. Since your compiled programs in Dot Net are compiled to IL and not machine code, it is very easy to query an EXE or DLL for what information it exposes in the form of classes, methods and properties, etc. In this article I will show you how to create a very simple and easy method for ”plug-in” type architectures.

Read More..

Delegates in VB.Net

By John Spano on Tuesday, February 21, 2006 :: 2739 Views :: 15 Comments :: :: VB.Net

In your Visual Basic.Net journey, you have definitely encountered a well used but little understood phenomenon called a delegate. You use them everyday, but might not know it. In this article, we will take a look at what a delegate is and how it will help you to develop better software.


Read More..

Multithreading In VB.Net

By John Spano on Tuesday, February 21, 2006 :: 1213 Views :: 0 Comments :: VB.Net

Multithreading, a very powerful technique, is essential for modern software development.  .  Software users expect to work with a very responsive program that they don’t have to wait on, which is a very reasonable demand with the processor speeds that are currently available.  Enter multithreading.  Multithreading is the concept of having several different paths of code running at the same time.

             When you introduce multithreading in your applications, you immediately make programming more complicated and add design time.  You must know exactly what your application and all its threads are doing at all times.  You have to account for deadlocks, race conditions and corrupting variable values.  In this article we will examine the different methods in Visual Basic.Net to accomplish thread synchronization.  We will learn what deadlocks and race conditions are and how to avoid these common problems with multithreading. 


Read More..

Previous Page | Next Page

Copyright (c) 2008 GSP Developers
Walling Info Systems | Terms Of Use | Privacy Statement