CODE Magazine / Articles

Architecture

Articles filed under Architecture

Articles

Showing 1–94 of 94

  1. CODE Magazine: 2026 - November/December cover

    Edge Computing with .NET: Architectures for Low-Latency Systems

    Joydip writes that edge computing, especially with .NET, is the right answer to modern data deluge when cloud-only architectures become too slow, costly, or privacy-sensitive. He explains how processing data near its source reduces latency and bandwidth use, then shows practical patterns for building edge-native systems: background workers, Azure IoT Edge modules, containerization, Native AOT, async I/O, object pooling, and zero-trust security. The article’s central message is that resilient, low-latency edge systems should process locally, forward only what matters, and integrate with the cloud selectively.

  2. CODE Magazine: 2025 - January/February cover

    Building Microservices Architecture Using CQRS and ASP.NET Core

    Joydip Kanjilal explores the Command Query Responsibility Segregation (CQRS) design pattern and its application in microservices architectures built with ASP.NET Core. You'll learn the benefits of using CQRS, including scalability, performance optimization, and maintainability, by isolating read and write operations. Kanjilal provides a comprehensive guide on implementing CQRS with code examples, focusing on creating, updating, and deleting operations using ASP.NET Core Web API, MediatR for mediation, and Entity Framework Core.

  3. CODE Magazine: 2023 - May/Jun cover

    Using Moq: A Simple Guide to Mocking for .NET

    Moq is a mocking library for C# .NET that can help developers achieve better unit testing by improving the isolation of tests. This article explains how to use Moq for mocking, including its features such as parameter matching, setups, verification, and sequences. Moq's fluent interface is easy to use compared to other mocking libraries and it enforces loosely coupled software design using dependency injection, resulting in modular code that is easier to test, read, and extend. The article concludes with additional resources for further reading on Moq.

  4. CODE Magazine: 2023 - January/February cover

    An Introduction to Distributed Tracing with OpenTelemetry in .NET 7

    OpenTelemetry is an open-source distributed tracing framework. Companies that use it can make more informed decisions about their operations. Learn to use it through an example ASP.NET 7 project.

  5. CODE Magazine: 2023 - January/February cover

    Mastering Routing and Middleware in PHP Laravel

    Learn about middleware and how to create routes to control incoming HTTP requests with controllers and use route groups in PHP Laravel.

  6. CODE Magazine: 2021 - March/April cover

    Introduction to Containerization Using Docker

    Wei-Meng explains how Docker Engine replaces virtual machines with containers to host the apps and libraries you need, completely independent of which OS you’re using. Docker is written to run natively on the Linux platform. If you're using Windows or Mac OS, Docker creates a Linux virtual machine, which itself hosts the containers.

  7. CODE Magazine: 2021 - March/April cover

    Migrating Monolithic Apps to Multi-Platform Product Lines with .NET 5

    Learn to migrate older applications to .NET 5. Learn to use "ports-and-adapters" (hexogonal architecture) along with design patterns and principles from domain-driven design (DDD) to help you modify your old software so you can split the business logic into independent assemblies.

  8. CODE Magazine: 2021 - January/February cover

    Building Multi-Tenant Applications Using ASP.NET 5

    This overview of multi-tenant architecture describes the challenges and solutions to using them. Ultimately, multi-tenant gets cheaper over time. Follow along to implement a multi-tenant application in ASP.NET 5

  9. CODE Magazine: 2020 - May/June cover

    Use the MVVM Design Pattern in MVC Core: Part 1

    Learn to use the Model-View-View-Model (MVVM) design pattern, long used in WPF applications, in MVC Core applications. Using MVVM in MVC makes your applications even more reusable, testable, and maintainable.

  10. CODE Magazine: 2019 - September/October cover

    Design Patterns for Distributed Systems

    In "Design Patterns for Distributed Systems," Stefano Tempesta explores the transformative impact of containers and container orchestrators on the development of distributed systems, emphasizing the shift from bespoke architectures to reusable patterns for scalable and reliable microservices. Highlighting the advantages of microservice architecture, Tempesta demonstrates how formal APIs enable decoupling, agility, and independent scalability of components. The article delves into Kubernetes and Azure Kubernetes Service (AKS) as foundational tools for managing containerized applications, presenting design patterns such as replicated load-balanced services, sharded services, and scatter-gather processing to address modern demands for high availability, efficient scalability, and rapid response times in distributed systems.

  11. CODE Magazine: 2018 - January/February cover

    Understanding Microservices and Microservice Architecture

    Miguel Castro argues that microservices are not merely tiny services but a holistic architectural approach that shapes how services, their callers, and clients interact to deliver robust, scalable applications. He emphasizes thinking in terms of architecture and boundaries, not just technology, advocating a holistic decomposition that foregrounds characteristics such as redundancy, isolation, dependency checking, service discovery, easy client access via an API gateway, and design-for-failure practices. Using a practical e-commerce example, Castro shows how client composition and fault tolerance must influence service boundaries and infrastructure, while acknowledging real-world trade-offs and the value of balancing theory with implementation realities.

  12. CODE Magazine: 2016 - November/December cover

    Case Study: Writing Microservices with F#

    If you’re lucky enough to be involved in building a new enterprise system, you’ll want to check this out. Rachel takes a look at how the company where she works made some interesting—and forward-looking—decisions, and she shows us the benefits of microservices while she’s at it.

  13. CODE Magazine: 2016 - September/October cover

    Getting to the ASP.NET Core

    New releases ASP.NET Core and .NET Core have come up with some interesting high-level architecture that you’ll want to read about. You’ll definitely want to play with these tools after Rick shows you some cool new tricks.

  14. CODE Magazine: 2016 - September/October cover

    Rust

    Ted Neward surveys Rust as a systems programming language focused on safety, speed, and concurrency without a garbage collector. He explains how Rust’s ownership, borrowing, and move semantics enforce memory safety at compile time, outlines its mutability model and type system, and surveys core features such as structs, tuples, traits, and pattern matching. He also highlights the ecosystem around cargo and crates, and discusses how Rust produces standalone, platform-specific binaries ideal for containerized environments. Overall, Neward presents Rust as a low-level, performance-focused alternative to managed runtimes, with strong guarantees that shape how developers write safe, efficient code.

  15. CODE Magazine: 2015 - January/February cover

    Why Micro JavaScript Library Should Be Used in Your Next Application

    Chris shows you not only how, but also why you really want to use a Micro JavaScript Library.

  16. CODE Magazine: 2014 - November/December cover

    The Mythical Business Layer

    Dino explains the business layer so that even a seven-year-old can understand.

  17. CODE Magazine: 2014 - May/June cover

    Building Office 365 Cloud Business Apps

    You already know that using Visual Studio 2013 streamlines building business apps. Beth shows you how to use its Cloud Business App project template to improve collaboration between Office 365, SharePoint, and all your mobile devices.

  18. CODE Magazine: 2014 - May/June cover

    Tips and Tricks for Flexible Code

    If you want to develop code that’s flexible, extensible, maintainable, and testable, you’ll want to read Paul’s article about some basic things to keep in mind before you start.

  19. CODE Magazine: 2014 - March/April cover

    Hosted Solutions

    Ben Coe gives us tips on planning an engineering project when you’re starting with a blank slate. He starts with hosting options, addresses scaling, and looks at tools like Heroku, Amazon’s Web Services (AWS), Amazon’s Elastic Computing Cloud (EC2), and the Twelve-Factor App Manifesto.

  20. CODE Magazine: 2014 - March/April cover

    Rich Messaging Endpoints with BizTalk Services

    Rick Garibay takes you on a tour of cloud-based messaging services including Windows Azure BizTalk Services (WABS), Enterprise Application Integration (EAI), and Windows Azure.

  21. CODE Magazine: 2014 - March/April cover

    Windows Azure Active Directory

    Michiel van Otegem explains Software-as-a-Service by comparing various online products and shows you how to store information about users whether you use Active Directory or Windows Azure Active Directory in the cloud.

  22. CODE Magazine: 2013 - September/October cover

    Distributed Cache in SharePoint 2013

    Sahil Malik explains how SharePoint 2013 leverages Distributed Cache (AppFabric) to dramatically improve performance—caching social feeds, security trimming, OneNote access and FedAuth cookies—while describing out-of-the-box defaults, options for collocated or dedicated cache hosts, PowerShell management, and key caveats (memory limits, homogenous clusters, firewall rules, and service account configuration). He emphasizes planning, monitoring, and proper sizing to avoid common pitfalls and get the full performance benefit of Distributed Cache in on-premises deployments.

  23. CODE Magazine: 2013 - September/October cover

    To MongoDB, or Not to MongoDB

    Ben Coe argues that the NoSQL versus SQL debate is not absolute and shares his pragmatic experience using MongoDB for Attachments.me. He traces underlying trade-offs—schemaless, denormalized modeling, and developer-oriented design versus traditional SQL robustness and mature tooling—and demonstrates how MongoDB can fit real-world applications, including modeling a music store, executing complex queries, and scaling concerns. Coe cautions against overreliance on sharding, emphasizes indexing and workload characterization, and concludes that MongoDB is powerful for certain big-data and rapid-prototyping needs, but not a universal solution.

  24. CODE Magazine: 2013 - September/October cover

    What’s New in RavenDB 2.5

    In this article Oren Eini highlights what he views as the standout additions in RavenDB 2.5—result transformers, scripted patching, SQL replication, unbounded streams, dynamic reporting, concurrent writes, and indexing optimizations—explaining how they enable richer server-side projections, safe large exports, easy migrations and RDBMS integration, faster writes and smarter indexing; overall he argues these features make RavenDB a more powerful, production-ready, “zero friction” document database worth adopting.

  25. CODE Magazine: 2013 - May/June cover

    Building a CODE Framework Service and Consuming It on an iPhone Application

    In this article, you will create a CODE Framework RESTful service and an iPhone application from scratch. For the client side, you will utilize XCode (yes, you’ll need a Mac!), which uses Objective-C as the primary language. This article won’t teach you the language; you need to know the basics of Objective-C. Even if you don’t know anything about it but want to code right away, read the article “Building a Twitter Search Client on iOS,” by Ben Scherman, available for all CODE readers in the Xiine application for Windows, Android, and iPhone. For the database, you’ll use any instance of SQL Server 2008. The service will be written in C#, using the latest version of CODE Framework, available on http://codeframework.codeplex.com, where you will find not only the download link, but also a lot of useful information.

  26. CODE Magazine: 2013 - May/June cover

    Hello, Arduino: Write Code That Interacts with the Real World

    Sharon Cichelli’s Hello, Arduino: Write Code That Interacts with the Real World introduces beginning developers to the Arduino as an approachable entry into physical computing. The article guides readers through the core idea of building programs that sense inputs (like pushbuttons) and produce outputs (such as LEDs and servos), using simple sketches in a C++-extended language. By walking through a blinking LED, a button-activated circuit, and a servo example, Cichelli emphasizes hands-on experimentation, hardware literacy, and good habits to grow from tinkering to more ambitious, interactive projects.

  27. CODE Magazine: 2013 - January/February cover

    Log Users in to Your Web Application with OpenID or OAuth

    Users already have many usernames and passwords for different popular online services, and with OpenID and OAuth, you can leverage those. Why burden users with yet another set of credentials for your site if they can use their Google or Facebook account, or any other OpenID or OAuth account? In this article, I will show you how to do this with ASP.NET 4.5, but more importantly help you understand what’s going on behind the scenes.

  28. CODE Magazine: 2012 - September/October cover

    Building ASP.NET Single Page Applications in HTML 5 with Upshot

    A Single Page Application (SPA) is a different way of building HTML 5 applications from traditional Web page development. Instead of spreading the functionality of your Web applications across a collection of separate Web pages with hyperlinks between them, you instead define a single root page that the user lands on and never leaves as long as they are working with your application. You define client-side logic that switches out the data and chunks of content within that page to allow the user to navigate from logical screen to logical screen without ever leaving the page. This means that the user never sees a full page refresh while using your application. They see portions of the screen change based on their interaction, and those changes can be done in a more fluid way with transitions to enhance the user experience. You can also support using the application while offline by storing data client-side, based on some of the newer APIs of HTML 5. Taking this approach makes an SPA feel very much like a desktop application to the end user.

  29. CODE Magazine: 2012 - September/October cover

    Real-Time Web Apps Made Easy with WebSockets in .NET 4.5

    In the world of browser-based development, interoperability is king. Unfortunately, interoperability can be at the expense of performance.

  30. CODE Magazine: 2012 - September/October cover

    Understanding Dependency Injection and Those Pesky Containers

    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.

  31. CODE Magazine: 2012 - March/April cover

    CODE Framework: Building Services and SOA Business Layers

    In the last issue of CODE Magazine, we took a look at CODE Framework’s WPF features. This time, we are going to look at a completely different area of the framework: Creating business logic and middle tiers as SOA services. SOA is the cornerstone of many modern applications, creating systems that are more maintainable, flexible, and suitable for a wide range of scenarios, ranging from Windows to Web and Mobile scenarios using a wide variety of technologies, and outperforming conventional multi-tiered applications in a range of metrics. Using CODE Framework, it also becomes easy and extremely productive to build SOA layers.

  32. CODE Magazine: 2011 - March/April cover

    Getting the Most Out of the Save Pipeline in Visual Studio LightSwitch

    Visual Studio LightSwitch applications consist of three tiers: presentation, logic and data. This article discusses the logic tier and its save pipeline. The save pipeline is where developers write business logic that runs as changes are processed on the logic tier and saved to the data storage tier. The save pipeline is automatically generated with every LightSwitch application. Understanding the processing done in the save pipeline is not required to successfully build and deploy applications with LightSwitch, but adding save pipeline business logic provides additional flexibility and control when data is saved.

  33. CODE Magazine: 2011 - March/April cover

    Inside Visual Studio LightSwitch

    Microsoft Visual Studio LightSwitch uses a model-centric architecture for defining, building, and executing a 3-tier LightSwitch application.

  34. CODE Magazine: 2010 - July/August cover

    PostMortem: Harms Millennium MedSpa

    July/August2010 Post Mortem by Markus Egger

  35. CODE Magazine: 2010 - March/April cover

    ASP.NET MVC and the Spark View Engine

    Getting friendly with HTML in ASP.NET MVC just got a whole lot easier.In this article, I’ll delve into the Spark View Engine, an alternate view engine for the ASP.NET MVC Framework. Spark’s main goal is to allow HTML to dominate the flow of view development while allowing code to fit in seamlessly.

  36. CODE Magazine: 2010 - January/February cover

    Post Mortem Web Project

    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.

  37. CODE Magazine: 2010 - January/February cover

    Reinventing Error Handling

    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.

  38. CODE Magazine: 2010 - January/February cover

    S.O.L.I.D. Software Development, One Step at a Time

    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.

  39. CODE Magazine: 2009 - September/October cover

    Five Steps Closer to Five Nines with WCF and Windows Azure

    Delivering applications and services that are highly available is expensive.

  40. CODE Magazine: 2009 - March/April cover

    Develop Provider-based Features for Your Applications

    The ASP.NET Provider Model drives many features within the ASP.NET architecture, yet most people only relate it to security or membership-related functionality. In this article, I’ll take you deep into the provider model, show you how it’s used from a security context, then take it up a notch and teach you how you can use it to turn any feature in your application into an extensible and swappable component. In fact, I’ll even show you why calling it the ‘ASP.NET’ Provider Model may be a misnomer.The ASP.NET Provider Model drives many features within the ASP.NET architecture, yet most people only relate it to security or membership-related functionality. In this article, I’ll take you deep into the provider model, show you how it’s used from a security context, then take it up a notch and teach you how you can use it to turn any feature in your application into an extensible and swappable component. In fact, I’ll even show you why calling it the ‘ASP.NET’ Provider Model may be a misnomer.

  41. CODE Magazine: 2009 - March/April cover

    The Zen of Inversion of Control

    On the surface, this article is about the techniques of dependency injection and inversion of control.Underneath, the intent of the words and code samples is to get you to think about the questions of “why” and “when” you might want to use these two closely related techniques, as well a series of similar evolutionary techniques that lead up to the full-blown dependency injection. The initial code samples are admittedly (and deliberately) simple; I do not want the content of the code to obscure the intent of the code.

  42. CODE Magazine: 2008 - November/December cover

    Heard on .NET Rocks! James Kovacs Inverts Our Control

    Nov/Dec 08 .NET Rocks by Carl Franklin

  43. CODE Focus Magazine: 2008 - Vol. 5 - Issue 2 - Windows Live cover

    Windows Live Admin Center

    When developing with Windows Live services, you open your application to a whole new world of software integration. In this fascinating realm of mash-up mania, developers can find tools for adding maps, searches, video, chats, and even social networking services directly into their applications and ultimately right into their users’ browsers. The benefit of adding services like Virtual Earth and Silverlight Streaming are obvious-creating dazzling content and facilitating rich user experiences. Yet services like these are still limited to specific contexts within your program. They are perfectly wonderful for beefing up the user experience in Web sites, but wouldn’t it be great if the folks at Microsoft provided a service that helps you administer user accounts and customize services around your Web site? Well indeed they have, and its name is Windows Live Admin Center (admincenter.live.com).

  44. CODE Focus Magazine: 2007 - Vol. 4 - Issue 3 - Data Programability cover

    An Entity Data Model for Relational Data Part I: Defining the Entity Data Model

    Microsoft’s Entity Data Model allows you to define an application-oriented view of your data consistent with how you reason about that data.Part I of this article describes the Entity Data Model and how it enables you to represent real-world concepts in a way that makes relationships between related pieces of data more explicit and easier to query, navigate, and consume than through the traditional relational database model. Part II of the article discusses how Microsoft’s ADO.NET Entity Framework provides a flexible mapping of an application-oriented conceptual schema in terms of the Entity Data Model to existing relational database schemas. Shyam Pather’s article, “Programming Against the ADO.NET Entity Framework” completes the picture by describing the actual programming model and API exposed by the framework.

  45. CODE Focus Magazine: 2007 - Vol. 4 - Issue 3 - Data Programability cover

    Introducing the Microsoft Sync Framework: Next Generation Synchronization Framework

    The Microsoft® Sync Framework is the new framework and runtime for adding synchronization, roaming, and offline capabilities to applications. It supports peer-to-peer scenarios, works with devices and services, and is agnostic of data types, stores, and protocols. In this article, I’ll cover the high-level vision for the platform as well as the enabled scenarios made possible by the framework for developers, ISVs, and OEMs.

  46. CODE Focus Magazine: 2007 - Vol. 4 - Issue 3 - Data Programability cover

    ODBC Rocks!

    Fifteen years after its launch, ODBC is a firmly entrenched cornerstone of the software industry. This article explains why and will explore the relationship between Microsoft SQL Server and ODBC and discuss where ODBC may go in the future.

  47. CODE Focus Magazine: 2007 - Vol. 4 - Issue 3 - Data Programability cover

    Programming Against the ADO.NET Entity Framework

    The ADO.NET Entity Framework raises the level of abstraction at which developers work with data.Rather than coding against rows and columns, the ADO.NET Entity Framework allows you to define a higher-level Entity Data Model over your relational data, and then program in terms of this model. You get to deal with your data in the shapes that make sense for your application and those shapes are expressed in a richer vocabulary that include concepts like inheritance, complex types, and explicit relationships.The ADO.NET Entity Framework raises the level of abstraction at which developers work with data.Rather than coding against rows and columns, the ADO.NET Entity Framework allows you to define a higher-level Entity Data Model over your relational data, and then program in terms of this model. You get to deal with your data in the shapes that make sense for your application and those shapes are expressed in a richer vocabulary that include concepts like inheritance, complex types, and explicit relationships.

  48. CODE Focus Magazine: 2007 - Vol. 4 - Issue 3 - Data Programability cover

    TESLA: Democratizing the Cloud

    In our service-oriented world, users need the same experience on any device, whether mobile phone, office PC, or Internet café. Moreover, they want the same experience any time they access applications, offline or online. For developers, this means tackling multi-tier, distributed, and concurrent programming. LINQ 1.0 radically simplified multi-tier programming with unified query and deep XML support. TESLA is a broad engineering program by the authors to extend the success of LINQ with external relationships, reshaping combinators, assisted tier-splitting, and join patterns.

  49. CODE Magazine: 2007 - November/December cover

    LINQ to Entities with Erik Maijer

    In show #270 Richard and I talked to Erik Meijer from Microsoft about LINQ. In this excerpt we talk about LINQ to Entities.

  50. CODE Magazine: 2007 - November/December cover

    The Provider Model

    In this article you will learn how to isolate yourself from change by taking advantage of the Provider Model.Designing your applications using the Provider Model will allow you to swap components out at runtime, thus allowing you to upgrade them easily.

  51. CODE Magazine: 2007 - July/August cover

    Enterprise Application Integration with Microsoft BizTalk Server 2006, Part 2

    Enterprise Application Integration (EAI) is a collection of architectural principles combined to integrate new and existing applications both within the enterprise and in business to business or partner integration scenarios. Building on the principles introduced in Part 1 (May/June issue of CoDe Magazine), I’ll provide a step-by-step example of how to implement a solution that addresses a business case and suggest some real-world patterns and techniques for fulfilling the business case.

  52. CODE Magazine: 2007 - May/June cover

    All Input Data is Evil-So Make Sure You Handle It Correctly and with Due Care

    IT professionals agree that input is a big source of trouble. Input ultimately determines how applications work and wrong or malicious input may cause serious damage. It is extremely important that developers have this fact firmly in mind and consequently apply adequate countermeasures. Starting from the perspective that all input is evil is a good approach. Reasoning in terms of a whitelist instead of a blacklist is another excellent strategy. Working with strongly typed data is the third pillar of secure applications. This article discusses the role of input data and related attacks in the context of ASP.NET applications.

  53. CODE Magazine: 2007 - May/June cover

    Enterprise Application Integration with Microsoft BizTalk Server 2006-Part 1

    Enterprise Application Integration (EAI) is a collection of architectural principles combined to integrate new and existing applications both within the enterprise and in business to business or partner integration scenarios. This article (Part 1) will provide a conceptual overview of BizTalk Server 2006 and how it serves to address the problem domain common in the EAI space. In Part 2, I’ll introduce a business case for implementing an online ordering and fulfillment system and provide a step-by-step example of how to implement a solution that addresses the problem domain.

  54. CODE Magazine: 2007 - May/June cover

    Layered Architecture, Dependency Injection, and Dependency Inversion

    Building loosely coupled application architectures requires more than just separating your application into different layers.In this article, I’ll take a project that was built using techniques that result in fragile, hard-to-test code and introduce some principles, techniques, and refactorings that will help you realize flexibility and testability in your applications.

  55. CODE Magazine: 2007 - May/June cover

    Overcome the Barriers Around Using the Custom Class in ASP.NET

    In .NET Web applications you can find that in many places custom classes and collections are better choices than the DataSet or DataTable. The custom classes or the custom class collections, which are truly object oriented, allow developers to employ all object-oriented programming techniques.

  56. CODE Magazine: 2007 - May/June cover

    SQLCLR Security and Designing for Reuse

    An important principal of software design is that of “least privilege.”Basically, in any given layer of a program, you should only grant minimal access such that the code has rights to only exactly the resources it needs to get its job done-and nothing more. Most SQL Server developers understand this concept: one of the main reasons to use stored procedures is to encapsulate permission to data behind controlled and auditable interfaces, thereby not giving the caller direct access.

  57. CODE Magazine: 2007 - May/June cover

    The Baker’s Dozen: A 13-Step Crash Course for Learning Windows Communication Foundation (WCF)

    This article will present a crash-course in the basics of Windows Communication Foundation (WCF). WCF is one of the exciting new capabilities in the .NET 3.0 Framework. It provides a unified and uniform programming model for building distributed applications. Those who previously built multiple code bases to deal with Web services and .NET remoting will surely come to appreciate the power standardization that WCF offers. WCF, like any other new technology, requires research and experimentation to become productive. This article will assume no prior experience with WCF, and will walk you through some basic exercises and steps to show WCF’s capabilities.

  58. CODE Focus Magazine: 2007 - Vol. 4 - Issue 2 - Mobility cover

    Best Practices in Game Design for the Ultra-Mobile PC

    The Ultra-Mobile PC (UMPC) expands the market for PC games that run on Microsoft® Windows® XP, as long as developers consider certain design requirements to ensure a good user experience. In most cases, a single version of games can span both the UMPC and traditional PC platforms.

  59. CODE Magazine: 2007 - March/April cover

    Building a PreserveProperty Control in ASP.NET 2.0

    ASP.NET provides a couple of page-level state persistence mechanisms in ViewState and the new ControlState.While both mechanisms work, they both have some limitations in that they are not deterministic for the application developer-ViewState can be turned off and can be very bulky, and ControlState can only be set from within a control implementation. In this article I’ll show another, more flexible state mechanism using a PreservePropertyControl that allows automatic persistence and restoration of field values automatically without requiring ViewState.

  60. CODE Magazine: 2007 - March/April cover

    Purporting the Potence of Process

    Do you ever feel like you’re beating your head against a wall? I know I do; quite often, in fact. It seems like developers spend half of their time bending technology to their purposes when the technology doesn’t really quite fit. Well, I’m actually thinking of one problem in particular right now, namely that of validation. Can you think of a more boring topic? There are few, but I think you can agree that it is an extremely important one in business software.

  61. CODE Magazine: 2007 - March/April cover

    The Baker’s Dozen: 13 Steps for Building a Lookup Page Using ASP.NET 2.0, SQL 2005, and C# 2.0

    Lookup and navigation screens initially seem like no-brainers, when compared to other parts of an application-yet by the time a developer has met all the user requirements and requests, he/she has expended much more time than expected. This issue of The Baker’s Dozen will build a lookup Web page using ASP.NET 2.0, SQL Server 2005, and C# 2.0. The lookup and results page will contain optional lookup criteria and custom paging of the result set. The solution will utilize new language features in SQL 2005 for providing ranking numbers to correlate with custom paging, and new capabilities in .NET generics to pump the results of a stored procedure into a custom collection. Just like Mr. Mayagi taught Daniel the martial arts by doing exercises, the example in this article will demonstrate some common design patterns, such as factory creation patterns, using .NET generics. The article also subtly presents a general methodology for building database Web pages.

  62. Chapter 11: Generics

    Essential C# 2.0 is a clear, concise guide to C#—including the features new to C# 2.0. The book clearly presents material for beginners and experts and provides contrasts and comparisons between C# and other languages. The C# language is covered comprehensively and each important construct is illustrated with succinct code examples. Complete code examples are available online. Mark Michaelis has organized the material for quick access. Graphical “mind maps” at the beginning of each chapter show what material is covered and how each topic relates to the whole.

  63. Chapter 6: Process Management

    A process contains its own independent virtual address space with both code and data, protected from other processes. Each process, in turn, contains one or more independently executing threads. A thread running within a process can execute application code, create new threads, create new independent processes, and manage communication and synchronization among the threads.

  64. Networks and Services in the Cloud

    A rapid, easy-to-understand approach to delivering a secure, resilient, easy-to-manage, SLA-driven cloud experience. Designing Networks and Services for the Cloud helps you understand the design and architecture of networks and network services that enable the delivery of business-grade cloud services. Drawing on more than 40 years of experience in network and cloud design, validation, and deployment, the authors demonstrate how networks spanning from the Enterprise branch/HQ and the service provider Next-Generation Networks (NGN) to the data center fabric play a key role in addressing the primary inhibitors to cloud adoption–security, performance, and management complexity.

  65. Objects - Chapter 1

    “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

  66. Red Gate: Understanding and Troubleshooting Unmanaged Memory Usage in .NET

    Got memory problems? Use Red Gate's ANTS Memory Profile to track down the slow parts!

  67. CODE Magazine: 2007 - January/February cover

    .Finalize():There’s a Time and Place for Everything

    Ken Getz's Finalize column for Jan/Feb 07

  68. CODE Magazine: 2007 - January/February cover

    Hosting WCF Services

    Windows Communication Foundation (WCF) Services can be hosted with Internet Information Services (IIS); with the new Windows Activation Service (WAS) installed with IIS 7.0; or with any managed application process including console, Windows Forms, Windows Presentation Foundation (WPF), or managed Windows service applications.Selecting the right hosting environment for your services is a choice driven largely by deployment requirements related to transport protocol and operating platform.

  69. CODE Magazine: 2006 - November/December cover

    ASP.NET 2.0 Web Part Infrastructure

    Web applications today do a number of things. They could be a banking site, a content management system, or a news Web site. In spite of the diversity of Web applications available today, it almost always makes sense to break a Web page into smaller, reusable widgets

  70. Designing for Database Movability

    Eventually SQL Server databases in a production environment must move from one server to another. It’s important to plan for eventual database moves when architecting a database solution.Designers and developers often overlook the eventuality that a database will need to move to a different server. This month’s column is the first of three dealing with the issues surrounding database moves. In this first part, you’ll learn about the reasons why you should plan for moving a database when you design and architect your application.

  71. CODE Magazine: 2006 - September/October cover

    Detect Web Form Field Changes in ASP.NET

    In ASP.NET, the value change related event will be triggered at server side per server control when the value of such a server control (form field) is changed upon postback. In most cases, a group of form fields are correlated with each other and typically correspond to member data in a business object. Thus developers need to check if such a group of form fields has changed as a whole. Unfortunately, the .NET Framework (1.x, 2.0) doesn’t offer an effective solution. This article will present an elegant technique to solve this problem and it can even go further so that you can know which field has changed.

  72. CODE Magazine: 2006 - July/August cover

    .Finalize(): Losing Weight, Again

    Ken Getz finalize column - July/Aug 06

  73. CODE Magazine: 2006 - July/August cover

    Database Concurrency Conflicts in the Real World

    In "Database Concurrency Conflicts in the Real World," Maurice De Beijer critiques conventional concurrency control approaches for focusing too narrowly on database implementation rather than on how users interact with data in real scenarios. He highlights the limitations of pessimistic and optimistic concurrency controls when applied to complex, multi-row, and multi-user data contexts, proposing a more nuanced method that groups related fields for updates. This approach aims to reduce false conflicts by reflecting real-world data ownership and usage patterns, offering a practical step toward concurrency handling that better aligns with user perspectives and application needs.

  74. CODE Magazine: 2006 - July/August cover

    Dissecting and Putting the Visual Studio 2005 Generated Data Access Layer Into Perspective

    Do more with less code is the slogan of Visual Studio 2005.When it comes to reducing the amount of written code, wizards are definitely a viable option. Visual Studio 2005 has a lot of wizardry in it, especially to generate data access code. Any code that gets silently injected in your project follows a strict logic and a well-known design pattern. A full understanding how Visual Studio 2005 does it puts you on the right track to modify and extend the code to build your made-to-measure data access layer. This article dissects the code behind table adapters and binding source components to unveil patterns and best practices.

  75. CODE Magazine: 2006 - July/August cover

    The Baker’s Dozen Doubleheader: 26 Productivity Tips for Managing Data (Part 1 of 2)

    Regardless of your .NET language of choice, managing data is a vital skill for most applications. Developers frequently must work with data at different levels, with different tools, and in different forms. This article is the first in a two-part series on some of the more common data challenges that developers face. In Part 1 of this article, I’ll cover some capabilities in ADO.NET 2.0, ASP.NET 2.0, and T-SQL 2005. Part 2 will feature some additional T-SQL 2005 coverage, as well as ways to use .NET 2.0 generics.

  76. CODE Magazine: 2006 - March/April cover

    Creating a Generic Message Display Page for ASP.NET

    Creating messages in your Web application should be quick, easy, and most importantly, consistent.They should look like they belong with the rest of the application even if an error occurs. How often have you created a new page to display simple text or a notification message to your users? Wouldn’t it be better if you could reuse an existing template and simply pass in a few parameters to tell it to render an application-specific message? In this article I will show you how to create a reusable Message Display class that reduces displaying messages generically in your application to a single line of code.

  77. CODE Magazine: 2006 - January/February cover

    Having Fun with Code Snippets

    Using code snippets can make it quick to add common code pieces to your application. Creating your own snippets allows you to create a library of custom code pieces and share them with other developers.

  78. CODE Magazine: 2006 - January/February cover

    I Object

    I Object

  79. CODE Magazine: 2006 - January/February cover

    The Baker’s Dozen: 13 Productivity Tips for ADO.NET 2.0

    This installment of “The Baker’s Dozen” presents a variety of tips and techniques to become productive with data handling techniques using ADO.NET 2.0 in Visual Studio 2005. ADO.NET 2.0 is faster than the first version of ADO.NET; in some instances, significantly faster. While many view ADO.NET 2.0 as more evolutionary than revolutionary, it provides many functions to give developers greater control over data access and data manipulation. It also leverages the new database capabilities in SQL Server 2005. In addition, ADO.NET 2.0 simplifies the creation of multiple-database solutions.

  80. CODE Magazine: 2005 - November/December cover

    A Low Level Look at ASP.NET Architecture

    ASP.NET is a powerful platform for building Web applications, that provides a tremendous amount of flexibility and power for building just about any kind of Web application. Most people are familiar only with the high level frameworks like WebForms and WebServices which sit at the very top level of the ASP.NET hierarchy. In this article I’ll describe the lower level aspects of ASP.NET and explain how requests move from Web Server to the ASP.NET runtime and then through the ASP.NET HTTP pipeline to process requests.ASP.NET is a powerful platform for building Web applications, that provides a tremendous amount of flexibility and power for building just about any kind of Web application. Most people are familiar only with the high level frameworks like WebForms and WebServices which sit at the very top level of the ASP.NET hierarchy. In this article I’ll describe the lower level aspects of ASP.NET and explain how requests move from Web Server to the ASP.NET runtime and then through the ASP.NET HTTP pipeline to process requests.

  81. CODE Magazine: 2005 - May/June cover

    Configure It Out with the Configuration Management Application Block

    Managing application configuration and meta-data could not get any easier.Every application needs some way to configure itself so that it may interact with a given environment, whether it is customizing the title bar captions for a specific client or setting database connection strings for a development environment. For the simplest of applications, the app.config or machine.config probably meets your needs. For complex applications where security, scalability, and deployment also have to be addressed, you may need something a bit more robust, secure, and scalable. Enter the Configuration Management Application Block.

  82. CODE Magazine: 2005 - May/June cover

    Service-Oriented Architecture

    Service-Oriented Architecture, or SOA, is the newest acronym to become a buzzword among developers, IT Managers, and CTOs.It seems that everyone is talking about making an SOA and how much it will improve their operations, yet most people are hard-pressed to define not only what an SOA is, but also to quantify what specific value it might provide to their organizations. Many simply assert that their SOA architecture comprises a group of Web Services through which they can expose business logic over the Internet.

  83. CODE Magazine: 2005 - May/June cover

    Using the CMAB for Enterprise, Client, and User Settings

    Applications use many forms of configuration data, storing settings that are used in applications, enterprise, client computers, and user settings.The Configuration Management Application Block (CMAB) is typically used for application settings, but it can be enhanced to support more complicated settings as well.

  84. CODE Magazine: 2005 - March/April cover

    Implications and Repercussions of Partial Classes in the .NET Framework 2.0

    Partial classes are a hot new feature of the next .NET compilers.Specifically designed to overcome the brittleness of tool-generated code, partial classes are a source-level, assembly-limited, non-object-oriented way to extend the behavior of a class. A number of advantages derive from intensive use of partial classes; for example, you can have multiple teams at work on the same component at the same time. In addition, you have a neat and elegant incremental way to add functionality to a class.

  85. CODE Magazine: 2005 - March/April cover

    Preparing for Indigo - Choosing the Right Technology Today

    Indigo is the next generation application connectivity and services from Microsoft, superseding the variety of .NET connectivity solutions available today: ASMX Web services, Remoting, and Enterprise Services. Since .NET debuted some five years ago, all three technologies have been inundated in either hype or misconceptions. With Indigo around the corner, it is time to take a long hard look at these three technologies, and separate fact from myth so that you will be best prepared for Indigo. This article starts by examining the existing technologies, describing their merits and shortcomings, putting them in the correct perspective of a modern distributed application, and suggests where to best apply them. Then the article briefly describes the Indigo programming model, and assesses how to best mitigate the cost of the migration.

  86. CODE Magazine: 2000 - Spring cover

    Loosely Coupled Events With COM

    Markus Egger introduces the COM+ Event Service as a flexible, loosely coupled alternative to traditional COM events, enabling publishers and subscribers to be linked administratively rather than by compile-time code. He explains how events (business events) can be published without subscribers needing to be running, thanks to COM+ subscriptions and on-demand instantiation, and shows how event filtering enhances scalability and relevance. Through a humorous VB example (wife/husband), he demonstrates setup, binding, and practical benefits, and gestures toward queued events as a future enhancement.

  87. CODE Magazine: 2000 - Summer cover

    The Bottleneck in Modern Software Projects

    Markus Egger argues that while Windows DNA, .NET, and component-based, distributed development offer major benefits, a critical bottleneck is the developer mindset and training: the broad community has embraced elegant new technologies in fits and starts, but many still cling to monolithic, familiar approaches. He notes a gap between enterprise needs and developer enthusiasm, with customers increasingly eager for distributed, flexible solutions even as the supply of capable DNA developers lags. Egger urges serious adoption and growth of a new generation of DNA-skilled programmers.

  88. CODE Magazine: 2003 - January/February cover

    Remote Object Models In .NET

    Modern applications are no longer isolated, stand-alone applications, limited to a single process or machine. Distributed applications allow you to put components in close proximity to the resources they use, allow multiple users to access the application, enable scalability and throughput, and increase overall availability and fault isolation. Component-oriented programming is especially geared towards distribution because it is all about breaking the application into a set of interacting components, which you can then distribute to different locations. .NET has a vast infrastructure supporting distributed applications and remote calls. This article focuses on just a single aspect of .NET remoting: the different object activation models available to a distributed application.

  89. CODE Magazine: 2002 - May/June cover

    UML Collaboration Diagrams

    In this article, Kevin McNeish highlights the value of UML collaboration diagrams as effective tools for illustrating both the dynamic interactions and static relationships between business objects in software design. He contrasts collaboration diagrams with sequence diagrams, emphasizing their unique ability to visualize object relationships and validate static models. Kevin explains the core elements of collaboration diagrams—objects, links, and messages—and discusses their use in representing complex interactions, including iterations, conditionals, and object state changes. Ultimately, he advocates for collaboration diagrams as a complementary perspective that enhances understanding of object collaborations beyond what sequence diagrams alone can offer.

  90. CODE Magazine: 2002 - March/April cover

    UML Sequence Diagrams

    In this article, Kevin McNeish explains how UML sequence diagrams document the time-ordered message exchanges that implement use-case logic, describes their core elements (objects, lifelines, messages, focus of control), and shows step-by-step how to create diagrams (including object creation/deletion, recurrence, color/notes) using a checkout example; he argues sequence diagrams clarify object responsibilities, reveal unnecessary interactions, and improve design of process-intensive application logic.

  91. CODE Magazine: 2002 - January/February cover

    UML Class Diagrams

    Kevin McNeish introduces UML class diagrams as essential tools for designing well-structured, maintainable application classes, explaining class notation, visibility, and the key relationships—generalization, dependency, association (including multiplicity, aggregation, composition), and realization—while illustrating how abstract and concrete classes, interfaces, and careful modeling produce flexible, extensible business-object families that form a solid foundation for component-based software.

  92. CODE Magazine: 2000 - Summer cover

    N-Tier Application Design

    Doug Hennig argues that as applications grow, separating concerns into an n-tier architecture—UI, business rules, and data access—yields maintainable, reusable, flexible, and scalable software. He shows how to decouple validation from the UI and swap data access implementations without rewriting business logic, using Visual FoxPro components and COM-style objects. Through DataClass, BusinessClass, and UI examples (Customer and Orders) he demonstrates a modular design that adapts to changing data sources and deployment scenarios, while acknowledging that n-tier is about design, not a universal cure.

  93. CODE Magazine: 2000 - Spring cover

    Using XML for Messaging in Distributed Applications (Part 1)

    In this first installment, Rick Strahl argues that XML is a practical, platform‑independent messaging and data‑representation standard for distributed applications—enabling hierarchical, multi‑document payloads, version‑tolerant object persistence, and broad client interoperability—while also candidly noting performance, size, parsing and binary‑data drawbacks; he introduces Visual FoxPro/COM tools (wwXML) to simplify XML persistence and conversion, and previews a follow‑up with concrete implementation patterns and a reusable XML conversion class.

  94. CODE Magazine: 2000 - Spring cover

    Windows DNA Development: A Pattern Language

    In this article, Yair Alan Griver presents a pattern language for Windows DNA application development aimed at standardizing the design of COM-based, multi-tier systems. He emphasizes the logical separation of UI, business, and data tiers and introduces five stereotypical components to simplify the middle tier’s complexity. By defining clear roles for resource managers, data sources, validation, and process objects—particularly through a Resource Manager Controller managing transactions—Griver provides a structured approach that enhances scalability, maintainability, and transaction management in Windows DNA applications.