-
Store Application Performance Metadata in a Database Using AOP in ASP.NET Core
Last updated: Thursday, June 27, 2024
Published in: CODE Magazine: 2024 - July/August
Joydip explores programming paradigms (object-oriented, procedural, and aspect-oriented programming) and looks at how AOP (aspect-oriented programming) can help you optimize performance and store performance metadata in a database.
-
Customized Object-Oriented and Client-Server Scripting in C#
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2022 - September/October
You need full control of how your functionality is implemented. Vassili tells you how to use classes and objects for great control, and how to implement them in C# in this article about object-oriented and client-server scripting.
-
Support Your Application Post-Launch Intelligently Using Intercom.io
Last updated: Friday, June 11, 2021
Published in: CODE Magazine: 2016 - July/August
Jason shows us how to keep the development team focused on developing while creating built-in post-launch features that keep your users happy too. It’s not magic, it’s Intercom.io.
-
Implementing a Flickr Search iOS Application Using Swift
Last updated: Tuesday, July 13, 2021
Published in: CODE Magazine: 2015 - July/August
Apple’s new language Swift is everywhere these days. Probably the most important app you could build with it is a search engine, and Mohammad shows us how using his own gardening app.
-
Creating Collections of Entity Objects
Last updated: Thursday, May 26, 2022
Published in: CODE Magazine: 2013 - May/June
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
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2012 - September/October
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
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2012 - March/April
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#.
-
Entity Framework 4.1: Code First
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2011 - July/August
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
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2011 - May/June
Jimmy explores what went right and what went wrong with version 1.0 of AutoMapper.
-
POCO Support Comes to Entity Framework 4
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2010 - November/December
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
Last updated: Wednesday, November 30, 2022
Published in: CODE Magazine: 2010 - September/October
-
Introducing Advanced Code Contracts with the Entity Framework and Pex
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2010 - January/February
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.
-
Post Mortem Web Project
Last updated: Thursday, December 16, 2021
Published in: CODE Magazine: 2010 - January/February
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.
-
Reinventing Error Handling
Last updated: Saturday, January 18, 2020
Published in: CODE Magazine: 2010 - January/February
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.
-
S.O.L.I.D. Software Development, One Step at a Time
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2010 - January/February
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.
-
Bricks and Mortar: Building a Castle
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2009 - May/June
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).
-
Beginning Java with NetBeans
Last updated: Wednesday, February 20, 2019
Published in: Book Excerpts, Newsletters
This section gets you started quickly with Java programming. First, chapter 1 introduces you to some concepts and terms that apply to Java development. In addition, it shows you how to use the NetBeans IDE to open and run existing projects.
-
Chapter 38: The Payroll User Interface: Model View Presenter
Last updated: Saturday, June 24, 2023
Published in: Book Excerpts
Excerpted from Agile Principles, Patterns, and Practices in C#. As far as the customer is concerned, the Interface is the product.-Jef Raskin
-
Chapter 4 Design Patterns
Last updated: Friday, February 22, 2019
Published in: Newsletters, Book Excerpts
OOP is a powerful concept that solves many problems found in software development. OOP is not the holy grail of programming, but, as we will see throughout this book, it can help in writing code that is easy to read, easy to maintain, easy to update, and easy to expand.
-
Murach's C# 2012 - Chapter 2
Last updated: Tuesday, February 19, 2019
Published in: Book Excerpts
by Joel Murach and Anne Boehm, Published May 2013, ISBN 978-1-890774-72-1 http://www.murach.com/books/cs12/index.htm
-
Objects - Chapter 1
Last updated: Saturday, January 18, 2020
Published in: Book Excerpts
“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
-
Working with Objects in Java
Last updated: Wednesday, February 20, 2019
Published in: Newsletters, Book Excerpts
Learn how to create objects, test and modify their class and instance variables, call an object’s methods, and convert objects from one class to another.
-
I Object
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2006 - January/February
I Object
-
Am I a Mad Scientist?
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2005 - May/June
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
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2005 - May/June
Extend your knowledge of inheritance to more easily extend your applications.
-
ASP.NET Development Through Web Controls and Declarative Programming
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2005 - March/April
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
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2005 - January/February
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
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2004 - September/October
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
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2004 - September/October
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
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2004 - July/August
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.
-
The Power of Inheritance in .NET
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2002 - January/February, VFP Conversion Papers, Markus Egger Talks Tech
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.
-
Understanding Visual Inheritance in .NET
Last updated: Wednesday, November 30, 2022
Published in: CODE Magazine: 2001 - Issue 2, VFP Conversion Papers, Markus Egger Talks Tech
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
Last updated: Thursday, December 9, 2021
Published in: CODE Magazine: 2000 - Summer, Markus Egger Talks Tech
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.
-
Where's Your Logic?
Last updated: Tuesday, February 19, 2019
Published in: Publisher's Point, Markus Egger Talks Tech
Markus Egger discusses the role of business logic in modern application architecture.
-
.Finalize() - Inheritance Is a Wonderful Thing
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2003 - July/August
.Finalize() Column
-
Working with Extender Classes
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2003 - January/February
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
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2002 - May/June
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
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2002 - May/June
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.
-
UML Class Diagrams
Last updated: Wednesday, November 30, 2022
Published in: CODE Magazine: 2002 - January/February
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.
-
Some Pitfalls of Inheritance
Last updated: Thursday, December 9, 2021
Published in: CODE Magazine: 2000 - Summer
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.