| Category: Object Oriented Development | | |
32 Articles found and displayed in this view.
- Creating Collections of Entity Objects
Magazine/Issue: CoDe Magazine, 2013 May/Jun Release Date: Saturday, April 06, 2013
Quick ID: 1305031
Almost every programmer knows (unless you have been living under a rock for the last five years or so) that you should be using classes for all of your programming. You should also be using collections of objects instead of using a Data Reader, a DataSet, or a DataTable in your applications. The reasons for using collections are many and are explored in this article.
- Understanding Dependency Injection and Those Pesky Containers
Magazine/Issue: CoDe Magazine, 2012 Sep/Oct Release Date: Thursday, August 16, 2012
Quick ID: 1210031
We seem to be an industry enamored with buzz words. Even though XmlHttpRequest has been around since the mid-90s, mainstream programmers didn’t give it a second thought until someone attached the term AJAX to it. The same is true for the never-ending quest to put as many different words as we can in front of “driven-development.” Another term that hit the scene in recent years is dependency injection.
- Smashing the Myth: Why You Must Learn F# - Even If You Aren’t Writing Rocket Science Apps
Magazine/Issue: CoDe Magazine, 2012 Mar/Apr Release Date: Saturday, February 18, 2012
Quick ID: 1203081
If you are a .NET software developer, you have heard of F#. You may have read an article, seen a talk at a user group, or otherwise heard the buzz. However, if those means of reaching you have failed, at the very least, you have noticed it conspicuously appear in the list of languages you can base a solution on in Visual Studio 2010. If you write code on the .NET Framework, you would have to be living under a rock to have not heard of F#.
- Objects - Chapter 1
Magazine/Issue: Online CoDe Magazine, Book Excerpts Release Date: Tuesday, July 05, 2011
Quick ID: 1107073
“This excerpt is from the book, ‘Windows 7 Device Driver’ by Ronald D. Reeves, Published Nov 16, 2010 by Addison-Wesley Professional. Part of theAddison-Wesley Microsoft Technology Series series.l, ISBN 139780321670212, Copyright 2011. For more info please visit the publisher site: http://www.informit.com/title/0321670213
- Entity Framework 4.1: Code First
Magazine/Issue: CoDe Magazine, 2011 Jul/Aug Release Date: Sunday, July 03, 2011
Quick ID: 1108051
The Entity Framework team at Microsoft has been making several improvements since the launch of v4 with Visual Studio. The biggest of these is the capability to use a Code First or Code Only development model. Previously, if you wanted to work with the Entity Framework, you had to use either a Database First or Model First development model.
- Post Mortem: Developing the OSS Project AutoMapper
Magazine/Issue: CoDe Magazine, 2011 May/Jun Release Date: Thursday, March 31, 2011
Quick ID: 1105041
Jimmy explores what went right and what went wrong with version 1.0 of AutoMapper.
- POCO Support Comes to Entity Framework 4
Magazine/Issue: CoDe Magazine, 2010 Nov/Dec Release Date: Friday, October 22, 2010
Quick ID: 1011121
When Microsoft first released the Entity Framework, agile developers roundly criticized it. These developers hold the tenets of domain-driven development and testability very high. The classes generated from the Entity Data Model (EDM) are very tightly bound to the Entity Framework APIs by either inheriting from the EntityObject or implement interfaces that allow the classes to participate in change tracking and relationship management.
- Practical Messaging Scenarios with WCF 4
Magazine/Issue: CoDe Magazine, 2010 Sep/Oct Release Date: Friday, August 20, 2010
Quick ID: 1009051
- S.O.L.I.D. Software Development, One Step at a Time
Magazine/Issue: CoDe Magazine, 2010 Jan/Feb Release Date: Friday, December 11, 2009
Quick ID: 1001061
Derick outlines how to achieve the benefits of low coupling, high cohesion, and strong encapsulation. He also shows how the five S.O.L.I.D. design principles can get you there.Most professional software developers understand the academic definitions of coupling, cohesion, and encapsulation.However, many developers do not understand how to achieve the benefits of low coupling, high cohesion and strong encapsulation, as outlined in this article. Fortunately, others have created stepping stones that lead to these goals, resulting in software that is easier to read, easier to understand and easier to change. In this article series, I will define three of the primary object-oriented principles and show how to reach them through the five S.O.L.I.D. design principles.
- Reinventing Error Handling
Magazine/Issue: CoDe Magazine, 2010 Jan/Feb Release Date: Friday, December 11, 2009
Quick ID: 1001081
Ned introduces the most significant advance in error handling since exceptions and he shows you a new way to look at errors.This article introduces the most significant advance in error handling since exceptions.You get improved tools for today and a glimpse of radical possibilities for tomorrow. You get a framework which supports more expressive error handlers and gives them equal access to error context information. You get a roadmap for adding improved error handling capabilities, including class-level error handlers and the ability to fix errors at run time. Above all, you get a new way to look at errors.
- Post Mortem Web Project
Magazine/Issue: CoDe Magazine, 2010 Jan/Feb Release Date: Friday, December 11, 2009
Quick ID: 1001091
First Premier Bankcard (www.firstpremier.com) is the 10th largest issuer of Visa and MasterCard credit cards in the United States.First Premier employs multiple thousands of people spread across the state of South Dakota. A major percentage of the employees at First Premier work in call-center operations helping people apply for credit cards.
- Introducing Advanced Code Contracts with the Entity Framework and Pex
Magazine/Issue: CoDe Magazine, 2010 Jan/Feb Release Date: Friday, December 11, 2009
Quick ID: 1001101
Martin introduces Design by Contract and Code Contracts, and gives you a sneak preview of Pex—Microsoft’s new test-suite generator. Along the way, he will show you how to add contracts to ADO.NET entities and some interesting coding strategies, good practices, and pitfalls you may encounter while making a deal with your code.With Code Contracts, Microsoft delivers its own flavor of Design by Contract for the .NET Framework. But wait, what is this thing sometimes called Contract-First Development? How will it change the way you develop software and write your unit tests? And first and foremost, how do you use Code Contracts efficiently?In this article, I will introduce Design by Contract and Code Contracts, as well as give you a sneak preview of Pex-Microsoft’s new test-suite generator. Along the way, I will show you how to add contracts to ADO.NET entities and some interesting coding strategies, good practices, and pitfalls you may encounter while making a deal with your code.
- Bricks and Mortar: Building a Castle
Magazine/Issue: CoDe Magazine, 2009 May/Jun Release Date: Monday, April 27, 2009
Quick ID: 0906051
In an application built with object-oriented techniques, objects are the bricks.You construct little pieces of code encapsulated in these bricks. To build bigger structures, you need to hold these bricks together. You can hardwire them together by instantiating dependent objects within your objects, but it makes the whole structure less flexible in the face of change. So you can adopt an inversion of control (IoC) container to act as your mason to assemble your bricks into complex structures that can flex with changing requirements. In this article, I will examine a popular IoC container, Castle Windsor, and how it enables you to build flexible and robust applications. If you are new to IoC containers and dependency injection, I would recommend reading Martin Fowler's article, Inversion of Control Containers and the Dependency Injection Pattern (http://martinfowler.com/articles/injection.html) and my own article from the March 2008 edition of MSDN Magazine, Loosen Up: Tame Your Dependencies for More Flexible Apps (http://msdn.microsoft.com/en-us/magazine/cc337885.aspx).
- Chapter 38: The Payroll User Interface: Model View Presenter
Magazine/Issue: Online CoDe Magazine, Book Excerpts Release Date: Saturday, March 15, 2008
Quick ID: 070203
from Agile Principles, Patterns, and Practices in C# As far as the customer is concerned, the Interface is the product.-Jef Raskin
- I Object
Magazine/Issue: CoDe Magazine, 2006 - Jan/Feb Release Date: Saturday, December 31, 2005
Quick ID: 0601021
- Where's Your Logic?
Magazine/Issue: Online CoDe Magazine, Publisher's Point Release Date: Monday, June 27, 2005
Quick ID: 050073
Markus Egger discusses the role of business logic in modern application architecture.
- Am I a Mad Scientist?
Magazine/Issue: CoDe Magazine, 2005 - May/Jun Release Date: Wednesday, April 20, 2005
Quick ID: 0505021
Do you want to save keystrokes?Do you want to ease maintenance? Do you want inline information about the code structures that you're working with? How about statement completion? Are you interested in increasing the potential for code reuse? Do you want your applications to run faster and require less memory? Do you prefer to have users find bugs or do you prefer to find them yourself?
- Inheritance 101
Magazine/Issue: CoDe Magazine, 2005 - May/Jun Release Date: Wednesday, April 20, 2005
Quick ID: 0505031
Extend your knowledge of inheritance to more easily extend your applications.
- ASP.NET Development Through Web Controls and Declarative Programming
Magazine/Issue: CoDe Magazine, 2005 - Mar/Apr Release Date: Friday, February 18, 2005
Quick ID: 0503051
ASP.NET WebControls do more than just allow you to write reusable components. They can provide an entire approach to Web application development, allowing you to bring a new level of OOP to the UI and letting you program declaratively.Lately I've come to notice that no other programming term has more definitions than declarative programming. In this article, I will attempt to explain it in terms of how it applies to .NET development, specifically ASP.NET through the use of WebControls. I'll do this by illustrating some real-world examples that I have used in my own projects. In the end, I hope to leave you with an understanding of what declarative programming is, how you can use it when developing ASP.NET Web applications, and how, with the help of WebControls, to use it as an approach to ASP.NET development.
- Sorting Custom Collections
Magazine/Issue: CoDe Magazine, 2005 - Jan/Feb Release Date: Monday, December 20, 2004
Quick ID: 0501051
Have you ever wanted to use a strongly-typed collection to bind your data presentation controls to, only to find that you have very limited sorting capabilities, if any at all?If you are trying to stick to good object-oriented design and shrink the amount of data that you keep in memory, transfer from your data source, or serialize to clients, you likely have run into this situation because you are using strongly-typed collections of your domain objects. So what do you do if you need to sort those collections for presentation or faster searching?
- 'For-Each' Of My Own
Magazine/Issue: CoDe Magazine, 2004 - September/October Release Date: Friday, August 20, 2004
Quick ID: 0409091
The .NET Framework provides many new collection classes that you can iterate (for-each) through.But did you know that you can also iterate through values in any of your classes, not just those that use or inherit from collections?
- Visualize Your Code with the Class Designer
Magazine/Issue: CoDe Magazine, 2004 - September/October Release Date: Friday, August 20, 2004
Quick ID: 0409071
The Class Designer feature of Visual Studio 2005 allows you to visually manipulate your classes.A picture is worth a thousand words, as the saying goes. The new Visual Studio 2005 (Whidbey) Class Designer provides a visual design environment that allows you to visualize and manipulate your classes. Being able to see your classes and work with them using a visual designer can significantly increase your productivity.
- Overload Operators to Operate on Your Objects
Magazine/Issue: CoDe Magazine, 2004 - July/August Release Date: Sunday, June 20, 2004
Quick ID: 0407041
Operator overloading provides an intuitive way to support mathematical and comparative operations on your objects.Operator overloading is one of those features that you don't need very often, but when you need it, operator overloading is very nice to have. You will find operator overloading in C# now, but you won't find it in Visual Basic until the upcoming Visual Studio 2005 release.
- .Finalize() - Inheritance Is a Wonderful Thing
Magazine/Issue: CoDe Magazine, 2003 - July/August Release Date: Sunday, June 15, 2003
Quick ID: 0307111
.Finalize() Column
- Working with Extender Classes
Magazine/Issue: CoDe Magazine, 2003 - Jan/Feb Release Date: Sunday, December 15, 2002
Quick ID: 0301041
Extender classes do just that; they allow you to extend the functionality of a .NET control class. The Error Provider and Tooltip classes are two examples of extender classes in the .NET Framework. The Tooltip class represents a significant departure from how tooltips were implemented in earlier versions of Visual Studio. The Error Provider class provides a new way to inform users about invalid input. Although each class serves a different purpose, their implementation is quite similar. This article introduces these two classes and gives a brief, yet comprehensive primer on how to use them
- .NET Interface-based Programming
Magazine/Issue: CoDe Magazine, 2002 - May/June Release Date: Monday, April 15, 2002
Quick ID: 0205091
In component-based programming, the basic unit of use in an application is a binary-compatible interface.The interface provides an abstract service definition between the client and the object. This is in contrast to the object-oriented view of the world that places the object implementing the interface at the center. An interface is a logical grouping of method definitions that acts as the contract between the client and the service provider. Each provider is free to provide its own interpretation of the interface and its own implementation. To use a component, the client only needs to know the interface definition and have a binary component that implements that interface. This extra level of indirection between the client and the object provides for interchangeability between different implementations of the same interface, without affecting client code.
- UML Collaboration Diagrams
Magazine/Issue: CoDe Magazine, 2002 - May/June Release Date: Monday, April 15, 2002
Quick ID: 0205051
In well-designed software systems, powerful business objects work together to accomplish a variety of tasks.UML collaboration diagrams are great tools for documenting the flow of messages between objects while providing a unique perspective - a view of the relationships between collaborating objects.
- The Power of Inheritance in .NET
Magazine/Issue: CoDe Magazine, 2002 - Jan/Feb Release Date: Tuesday, January 01, 2002
Quick ID: 0201021
Inheritance is one of the most fascinating features in the Visual Studio.NET languages. We have discussed this feature in several articles in the past, mainly to explain the basic concepts. Now we are going to take a look at what inheritance can actually do for you, rather than how it works.
- UML Class Diagrams
Magazine/Issue: CoDe Magazine, 2002 - Jan/Feb Release Date: Saturday, December 15, 2001
Quick ID: 0201061
Class diagrams are among the centerpieces of the Unified Modeling Language.They are critical for helping you design classes that will serve as building blocks for your application. This article will cover the basics of class diagrams and help you see how you can use them in your software development?especially in building your business object classes.
- Understanding Visual Inheritance in .NET
Magazine/Issue: CoDe Magazine, 2001 - Issue 2 Release Date: Sunday, April 01, 2001
Quick ID: 0102021
Inheritance is the single most important new object-oriented feature in Visual Studio.NET. Surprisingly, not much has been written about the subject, and most of the information available is either very basic and an "overview" at best, or just plain misleading. In this article, I give you a real-world overview of what inheritance - especially visual inheritance, can do for you.
- The "Basics" of Inheritance
Magazine/Issue: CoDe Magazine, 2000 - Summer Release Date: Saturday, July 15, 2000
Quick ID: 0002071
Microsoft has recently announced that the next version of Visual Basic will support inheritance.Visual FoxPro has had inheritance for the past 5 years, since Version 3.0, and Visual C++ has always had it. This article will take a closer look at what inheritance is and what it will mean for Visual Basic 7.
- Some Pitfalls of Inheritance
Magazine/Issue: CoDe Magazine, 2000 - Summer Release Date: Saturday, July 15, 2000
Quick ID: 0002081
Inheritance is one of the fundamental facets of object-oriented programming. In this article,Steve looks at inheritance, and in particular some of the mistakes that many developers make when applying inheritance.
|  | |  |  |
|
|
|