Author Archives: Bob Bryan

About Bob Bryan

Software developer for over 20 years. Interested in efficient software methodology, user requirements, design, implementation, and testing. Experienced with C#, WPF, C++ , VB, Sql Server, stored procedures, and office tools. MCSD.

Generic Class Factory – C# Part 4 / 4

This is the last post in the generic class factory series.  The previous posts included: Generic factory introduction.  Please read this post first to understand why a class factory should be used instead of simply creating an object and how a generic class … Continue reading

Posted in C#, software development | Tagged , , | Leave a comment

Generic Class Factory – C# Part 3 / 4

This 3rd post in the generic class factory series focuses on creating objects in C# with an elegant class that uses the Type class and reflection’s Activator object.  The first post in the series provides an introduction to the generic class factory … Continue reading

Posted in C#, Patterns, software development | Tagged , , | Leave a comment

Generic Class Factory – C++ Part 2 / 4

This 2nd post in the generic class factory series focuses on creating objects of different types in C++, which I have not seen published before.  This means that just one generic class factory can create objects that have no common … Continue reading

Posted in C/C++, software development | Tagged , , | Leave a comment

Generic Class Factory – C++ Introduction Part 1/4

This article is the first in a series of 4 that describes how a generic class can be implemented in C++ and C#.  Each article looks at a different implementation.  The first 2 are in C++ and the last 2 are in … Continue reading

Posted in software development | Tagged , , | Leave a comment

Benchmark of foreach .vs. for loop

The foreach loop provides a nice way to iterate through a generic container.  But, is there a price to pay for it performance wise .vs. using a for loop? It turns out that there is a performance hit when using … Continue reading

Posted in C#, efficient software development | Tagged , , | Leave a comment

Bitmap Sort – Most Efficient Method To Sort Integers

A bitmap sort is the fastest and most efficient way to sort a limited set of integers.  It was first published by Jon Bentley in the book Programming Pearls.  It works by thinking of a chunk of memory as a … Continue reading

Posted in C#, software design, software development, Sort | Tagged | 4 Comments

Efficient File I/O From C#

This article describes and benchmarks different ways to do file I/O from C#.  All of the code referenced in this article is available for download and is free to use. There are many different ways to do file I/O in … Continue reading

Posted in C#, efficient software development, software development, Software Productivity | Tagged , , | 33 Comments