Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / programming / Design

Design

Design

Great Reads

by Nirosh
This tutorial is designed for .NET programmers who need to understand ‘Nido’ framework and its application.
by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.
by Mahmud Hasan
The only good thing of Test Driven Development is, it ensures the maximum test coverage but TDD puts you in risk of a week design. DTDT tries to solve this while ensuring maximum test coverage.
by Jitendra_Jain04
IBM WebSphere Application Server V8.5 Liberty profile is a flexible and dynamic server profile of WAS which enables the WAS server to deploy only required custom features instead of deploying a big set of available JEE components.

Latest Articles

by Nirosh
This tutorial is designed for .NET programmers who need to understand ‘Nido’ framework and its application.
by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.
by Mahmud Hasan
The only good thing of Test Driven Development is, it ensures the maximum test coverage but TDD puts you in risk of a week design. DTDT tries to solve this while ensuring maximum test coverage.
by Jitendra_Jain04
IBM WebSphere Application Server V8.5 Liberty profile is a flexible and dynamic server profile of WAS which enables the WAS server to deploy only required custom features instead of deploying a big set of available JEE components.

All Articles

Sort by Score

Design 

by Kunal Chowdhury «IN»
"Quick Find" a better way using Visual Studio Productivity Power Tools
by AssemblySoft
A trivial business logic layer from scratch with a TDD approach.
by jmix90
A fast and easy tip about shadows and performance
by JasonShort
Here are 10 things to make your desktop database apps better
by Pete O'Hanlon
A simple web-based calculator shows how to let TypeScript interact with contents of a web page
by Trần_Tuấn_Anh
Master the this Keyword in Java is a comprehensive guide designed to help you fully understand and effectively use the this keyword in your Java programming. Explore its various applications, from referencing instance variables to calling constructors and improving code readability.
by Zhuyun Dai
I once implemented my own Basic authentication logic in a custom ISAPI filter on IIS 6 and IIS 7.5 (classic mode).
by Matthew Dennis
A lot about nothing (or null)
by Afzaal Ahmad Zeeshan
This blog post shares a tip for Ajax developers in ASP.NET MVC framework.
by Jeremy Likness
A method for abstracting WCF service calls in Silverlight to facilitate reuse and easy re-targeting of services.
by Paul M Watt
I want to hopefully connect the dots for many to help convince you of the ultimate importance of a well defined and protected interface.
by Issam Lahlali
Let’s discover all these metrics and how they could be very useful to improve the design of applications.
by Adrian Alexander
Confining object/relational mapping logic to a clearly demarcated Data Access Layer (DAL) within your application facilitates the creation of a single, coherent, object-oriented Domain Model to represent your application’s business objects.
by Eric Z (Jing)
Evaluation order matters!
by sayem.bd
Using delegation, you can change the behaviors of objects at run-time. A lots of Design Patterns make use of this technique.
by Andy Point
Android Material Design: Working with Floating Label EditText
by Shivprasad koirala
Anemic data Models (RDM) VS Rich Data Models ( RDM) in C#
by Dev Leader
Don't forget about the non-public API
by Phil Sweeney
Applying MVC architecture to Titanium mobile apps
by Gerd Wagner
Architectures for the Web of Things
by Isaac RF
ASO – App Store Optimization for Beginners
by Salmanzz
In this post, I will explain you how I have embedded JavaScript, images and stylesheet to my previous article.
by Manoj.Kumar12
Authentication against CRM contact using custom STS
by Zhuyun Dai
I summarized some best practice rules in writing a COM-visible assembly according to my recent work.
by Afzaal Ahmad Zeeshan
In this post, I am talking about methods used to build custom documentation builders for .NET projects using Reflection APIs.
by Zac Gery
The internet brought about a new age of consumerism. With this new approach, a new foundation for purchasing goods and services was developed. The online cart and secure payments are two examples. As the internet expanded, a growing need for validation of products/services developed.
by Pragmateek
How to scope your global state changes with IDisposable and the using statement
by Dinesh K Mandal
Exploring the CacheItemRemovedCallback delegate provided by ASP.NET
by Steve Wellens
A user had a problem calling a Web Service from a web page asynchronously. I tried his code on my machine and was able to reproduce the problem. I was able to solve his problem, but only after taking the long scenic route through some of the more perplexing nuances of Web Services and Proxies.
by Morshed Anwar
Code analyzing and NDepend
by Arthur Minduca
Cohesion and coupling: Principles of orthogonal, scalable design
by Ahmed_Said
Colorful Microsoft Windows Forms Controls
by Rion Williams
Common approaches to responsive design
by Afzaal Ahmad Zeeshan
In this article, I cover the most widely faced problems in Xamarin installation and setup for Android application development.
by Mojtaba_Sarooghi
"HAS-A can be better than an IS-A relationship" What do you think about this sentence? Recently, I came across this topic quite a lot and we were discussing that in our team.
by Alexandr Savinov
In this post, we describe one aspect of the concept-oriented model (COM).
by Himanshu DS
SOLID - Object oriented programming principles.
by Paulo Zemek
What if C# evolved differently?
by Minh Danh Nguyen (ToughDev)
How to convert OFT to .NET Windows Form in VS
by Steve Wellens
CSS 4? Really? CSS 3 isn't fully released yet! What on earth is going on here?It all started when I was fooling around with GIMP, the extremely powerful free graphics editor. I took a public domain image, re-sized it, gave it a transparent background and then added a perspective shadow.
by Afzaal Ahmad Zeeshan
This is part 1 of the articles that I want to write for ASP.NET beginners, who want to build their own personal web sites, that mimic characteristics of blog. It covers the ASP.NET web application part.
by Steve Wellens
CSS3 box-shadow and Visual Studio features.
by Zac Gery
The time has come for Apple to embrace the idea of custom widgets on iOS.  It should be a a no-brainer but currently there are only three static widgets on iOS; they are Stock, Weather, and Share.
by Shivprasad koirala
In this article we will explain about Data Transfer Object Design pattern in C#
by User 8984948
Decorator design pattern in Delphi - Multiple decorations
by User 8984948
Decorator design pattern in Delphi - Single decoration
by Dinesh K Mandal
Decorator Design Pattern in .NET
by Dev Leader
About dependency injected singletons
by Shivprasad koirala
Dependency Injection (DI) vs. Inversion of Control (IOC).
by Paulo Zemek
Design and implementation mistakes - mostly .NET
by zenwalker1985
Design patterns presentation Part 1
by User 9557924
Design Patterns: Strategy
by Qwertie
Dependency Injection aids loose coupling. But there are some services that are pervasive, services that you would have to pass to a hundred different constructors if you want to use DI "properly". Is there an alternative?
by Mohit1110
In this blog, we will explore how does a browser comes to know which version of HTML has been used in a Web Page. How Quirks mode & Standard mode affect the page rendering.
by Gediminas Geigalas
This article provides some insights into implementation of Domain Event handlers that contain non-transactional behavior.
by James Treworgy
Dragging and dropping onto HTML Image Maps
by Patrick Cunningham
This article uses 8 steps to create example of how to read and write from HTML to a SQL database in a .NET web application using jQuery, JSON, and XML.
by Ernest Poletaev
How to load and use custom font, embedded in assembly resources
by Sabarinathan A
Enterprise architect automation - save/export all diagrams as pictures
by User 6619207
Entity Framework Code First and WCF Data Services
by Minh Danh Nguyen (ToughDev)
Solution for ‘Your layout should make use of the available space on tablets’ when uploading APK to Google Play
by jmix90
Execute a command on a specified control when clicking on a button
by Afzaal Ahmad Zeeshan
This post talks about the most important improvements to the C# language in its 7th version, provides some IL overview, as well as my own personal opinions on the features and improvements.
by Ernest Poletaev
How to use ICSharpCode.TextEditor, free, easy to use, extendable and good quality syntax highlighting control for .NET program.
by Dev Leader
A beginner's guide to Façade pattern
by Shivprasad koirala
Humans are lazy and programmers are humans J . We like things which are simplified and clean. So if you see the evolution of programming, we initially started with functional programming, and evolved towards object oriented programming.So as functional programmers where we used to remember methods a
by Dev Leader
Creating a tabbed Android User Interface.
by Afzaal Ahmad Zeeshan
JSON format of data interchange and its use with C#
by James Kolpack
Rainbow spirograph using HTML5 and CoffeeScript.
by User 6619207
The article describes how you can implement the chain of responsility pattern with a generic chain builder method in .net
by WebBiscuit
Looking at a simple MIDI handle wrapping class
by Rion Williams
This post will cover how to get yourself up and running using SignalR within Visual Studio 2010 in a jiffy.
by Cyborgx37
LINQ is syntactical sugar for extension methods and lamda expressions. To understand LINQ, it is important to first grapple with these concepts.To begin, let's look at a simple and somewhat common scenario.
by zenwalker1985
Good practice in method design
by Allen C. Copeland Jr
Grokking the CLI - Part 1: Meta Mayhem
by Afzaal Ahmad Zeeshan
This short post is about the project files that are created when a new project is created using a template provided in MonoDevelop.
by Mark Vinod Sinnathamby
This post is a tutorial that is complimentary to the session I did, demonstrating the steps of how a simple holographic application can be built and deployed in the HoloLens emulator.
by Dev Leader
How to structure your Singletons.
by atverma
Criteria behind choosing IDisposable, IComponent, Component, MarshalByValueComponent and base Control classes(System.Windows.Form.Control and System.Web.UI.Control) while implementing a Class
by jmix90
The expander control can be used in a lot of situations but the one proposed by default is quite "rigid".
by Salmanzz
How to create a Date Picker Composite Control in ASP.NET (C#)
by Zac Gery
Learning, experiencing, and becoming an expert at web development is not difficult.
by Shivprasad koirala
In this article, we will explain about Immutable in C#.
by kiran dangar
How to implement jQuery Model Popup plug-in and playing FLV file in a model popup
by Paul M Watt
How to improve code clarity with Typedef
by Kunal Chowdhury «IN»
How to improve productivity using Visual Studio 2012 default browser switcher
by webdev_hb
Have you ever created a WebControl in MVC and though “Gee, it sure would be nice if I could add a stylesheet/script to the header of my page.” It’s not as easy as it used to be. This post goes over some code that can help you bridge that gap.
by deostroll
A trivial demonstration of Interface Usage
by PRANAV SINGH
An introduction to design patterns
by SneakyPeet
Introduction To Practical Domain Driven Design
by John Atten
This post is a re-examination of some topics I discuss in an older post.
by John Atten
Checked exceptions in Java.
by Tharaka MTR
JavaScript frameworks and resources
by Gerd Wagner
The four types of basic data structures supported by JavaScript are: array lists, maps, records and JSON tables.
by Steve Wellens
I've always appreciated these tools: Expresso and XPath Builder. They make designing regular expressions and XPath selectors almost fun! Did I say fun? I meant less painful.
by Nathan Gloyn
A discussion about how Kanban can be used for support
by Dev Leader
Ever since I can remember, I've always been told to keep fields private.
by webdev_hb
IIS can be a bully to your poor web application and when you're in a hosted environment you have even less control. In this post we discuss how we can keep your website from being recycled and do it without needing external code!
by AlexTatiyants
There is a big difference between figuring out what to do and why to do something.
by Ernest Poletaev
How to load and use font, not installed in the system?
by Dinesh K Mandal
Today we will explore the way of loading ASP.Net user control at run time using jQuery. jQuery has one method load(fn) that will help here. This load(fn) method has following definition.
by Md. Rashim Uddin
How to log and trace WCF Soap messages?
by Mahmudul Haque Azad
Magic of JQuery in ASP.NET, simplifying AJAX
by Simon Jackson
True speech interaction is something we do not see very often in gaming. Sure, you have recorded audio for NPCs and a few non-silent protagonists, but it is very rare for the player to interact with speech themselves. Check out this awesome opportunity for games
by Issam Lahlali
MemCache++ is a light-weight, type-safe, simple to use and full-featured Memcache client. It was developed by Dean Michael Berris who is a C++ fanatic, loves working on network libraries (cpp-netlib.github.com), and currently works at Google Australia.
by Rion Williams
How to merge smarter with Semantic Merge.
by Trần_Tuấn_Anh
In software development, adhering to design principles can significantly impact the maintainability and scalability of your code. One such principle is the Open/Closed Principle (OCP), which states that "software entities should be open for extension but closed for modification.
by Won Dong
Mobile website expansion offers business unlimited potential
by Kunal Chowdhury «IN»
Learn about Multi Column Text support in Silverlight 5 with a simple example
by johnniealan
ArcNet Protocol basics
by WebBiscuit
A hidden danger of wrapping using RAII rears its head when we start copying the object around. Let's look at why and what we can do.
by Zac Gery
All other things being equal, the simplest solution is the best.
by Pragmateek
Introduction If you've already developed COM APIs with .Net, typically in C# with VBA as the consuming language, you've probably leveraged two powerful features: by-reference parameter passing that allows the API to change the input object itself, not only its ... Continue reading ...
by JasonShort
ADO.NET is a set of libraries included in the .NET Framework to facilitate the communication of applications with various data storage mechanisms. These libraries form the basis for all third parties to provide database access.
by Afzaal Ahmad Zeeshan
This article provides an overview of the DateTime object in ASP.NET website, and a source code and example of a few scenarios in which using DateTime would be easy and simple, but tricky.
by hoonzis
Pex is a tool which helps generate inputs for unit test. Moles is a stub framework used to isolate the unit tests from code which is not being tested. In this post, I will try to describe an attempt to use Pex and Moles to test a typical business layer.
by Jeremy Likness
The pipeline pattern (sometimes also referred to as pipes and filters) has many useful applications. C# makes implementation even easier with the yield keyword.
by Afzaal Ahmad Zeeshan
This is an introductory post for Mac developers to get started using C# programming language on Mac environments using Mono Project!
by johnniealan
This article describes about adding progress bar in cell.
by Zac Gery
The core tenants of Agile provide a sound foundation for effectiveness.
by Dev Leader
Python, Visual Studio, and C#
by Philipp Sumi
Here are some quick and dirty tooltips - revisited and interactive
by zenwalker1985
Refactoring Hooking and Unhooking Events TIP
by adityaswami89
This blog post discusses the Repository Pattern
by tranthanhtu.vn
In "REST - Overview" article, I were introduced the basic rules in RESTful, Can you show me how to implement in WebApi?Ok, in this article, we will learn how to implement those rules in WebApi using C#.Where could I get sourcode was used in this article?Please checkout the code at https://github.com
by Sky Sanders
salient.Delegate is a class that enables the implementation of numerous software design patterns that can accelerate design and development and improve the architecture of your JavaScript code by enabling reliable loose coupling of JavaScript code.
by Giorgio Bozio
Separating layers and components with constructor injection and Unity
by hans.hinnekint
How to serialize and encrypt an Object using C#
by Illya Reznykov
How to update EmailMessage properties that don't have public setters
by Artem Smirnov
The advantages of using TDD
by Jeremy Likness
Use the Managed Extensibility Framework to export dictionary resources using custom ExportProvider in Silverlight
by Jeremy Likness
A simple Silverlight control that creates an image button with zoom and reflection
by Dev Leader
I'd like to share the pattern I commonly use when creating threads in C# and discuss some of the highlights.
by Dev Leader
In this post, I’m going to focus on why singletons are “bad”, because for me it means acknowledging one of the two main perspectives–that they are the best thing since cat videos met The Internet or they are the worst thing since Justin Bieber.
by Leom Burke
An approach to skinning in WPF using Merged Resource Dictionaries
by Jeremy Likness
First part of 2 part series on the SOLID and DRY acronyms: Don't Repeat Yourself, Single Responsibility, Open/Closed, and Liskov Substitution in this part.
by Jeremy Likness
Second part of 2-part article about the SOLID and DRY acronyms for software development. This part covers Interface Segregation and Dependency Injection.
by Zhuyun Dai
How to solve "Could not load type 'System.ServiceModel.Activation.HttpModule’ IIS 8 error
by Dinesh K Mandal
Some Hidden Facts about Stored Procedure and Its Optimization
by Bryan O'Connell
This post discusses some simple tools for Rapid Mobile development
by Andriy Buday
State
by Salmanzz
State Design Pattern
by Gediminas Geigalas
This article reviews how my opinion on Stored Procedures changed over time and what disadvantages they bring into your application.
by nirman b doshi
Strategy Design Pattern - Explained with a real world example (C#)
by zenwalker1985
Structural Design Pattern (Part 2)
by zenwalker1985
Structural Design Pattern (Part 3)
by zenwalker1985
Structural design pattern
by User 8984948
A working example of the Template Method design pattern in Delphi
by Dinesh K Mandal
Template Method Design Pattern in .NET
by Vladimir Khorikov
Test-induced design damage or why TDD is so painful
by Petru Faurescu
Is there an easy way to succinctly and unambiguously communicate the architecture of a software system? Something that could highlight the requirements, and still be brief?
by Keyhole Software
The motivation behind the DAL, the design principles that define a theoretically “good” DAL, and the relationship between the DAL and modern persistence technologies.
by Garry Pilkington
The divide between designer (Digital Barn) and developer (DevDevDev).
by WebBiscuit
So far we have concentrated on the 'AII!' part of RAII, so now let's look at the important bit, the R, the Resource.
by Zac Gery
The contour bias only works on objects which are emotionally neutral. Objects which already have an emotional association are not easily swayed.
by Dev Leader
Why do we have two different things to accomplish the same end result?
by Kunal Chowdhury «IN»
In this small tip, I will guide you through changing the Style of Caret of a Silverlight TextBox control.
by Kunal Chowdhury «IN»
How to format Silverlight TextBlock control
by Arindam Sinha
SOAP Request/Response XML can be logged with TraceExtension
by Abhishek Sur
Some of both Documented and Undocumented Keywords that we dont use often like Check, StackAlloc, Fixed,default,@variables,Nullables, __arglist,__reftype etc are explained with simple examples
by Afzaal Ahmad Zeeshan
This article provides a brief description and overview of ASP.NET's MVC framework, and how developers can covert their real-world objects into MVC framework, to create web applications.
by Trần_Tuấn_Anh
In object-oriented programming (OOP), understanding the relationships between classes is crucial for designing robust and maintainable systems. The three fundamental types of relationships are Association, Aggregation, and Composition.
by John Atten
A quick overview of Windows Azure Blob Storage
by adityaswami89
This article will guide you if you want to create your own custom ORM or a wrapper over the ORM. This is only for demo towards the Unit of work pattern with Repository and a singleton Session class.
by Arindam Sinha
Saving user preferences while closing the application and loading that while opening next time - implemented through Application Settings
by jmix90
In this post, we'll discover how to access the template children by using the FindName method even on UserControl.
by Afzaal Ahmad Zeeshan
This post is about C# 6 usage in ASP.NET 5 web applications to fine tune applications for more readability and better performance.
by Joe Rattz
Using LINQ To Filter By Object Type and Then Quantify
by webdev_hb
This post continues the WebControls In MVC series. In this post we finally get some code that can be downloaded and tested. This post explains how to use the MvcWebForms methods to add WebControls to your Mvc Views -- and make them talk to your Controllers!
by Zhuyun Dai
In this serial of articles, I will share some knowledge I learnt recently in using WebSocket in .NET 4.5.
by atverma
This utility generates Word documents from templates using Content controls.
by kiran dangar
Using CSS3 selectors to design optimized HTML form
by Shivprasad koirala
In this blog, we will understand how to implement Value object design pattern in C#.
by Rion Williams
When MVC came along however, the water became a bit muddled and developers had a major choice to make when starting up a new project: Web Forms or MVC?
by Trần_Tuấn_Anh
In the world of concurrent programming, ensuring data consistency and thread safety is crucial. Java provides a special class known as Atomic to help developers manage these aspects efficiently. But what exactly is an atomic variable in Java, and how does it differ from a regular primitive type?
by Kunal Chowdhury «IN»
What is Character spacing in Silverlight 5 controls
by Trần_Tuấn_Anh
Exception propagation is a fundamental concept in Java programming that determines how exceptions are handled and passed through different levels of a program. This mechanism is crucial for ensuring that errors are managed effectively and that your code remains robust and maintainable.
by Trần_Tuấn_Anh
The Fork/Join Framework is an essential tool in Java for optimizing parallel processing tasks. It is designed to take full advantage of multi-core processors by breaking down large tasks into smaller subtasks, executing them in parallel, and then combining the results.
by Trần_Tuấn_Anh
When developing web applications with Spring MVC, understanding the differences between @Controller and @RestController is crucial. This article will guide you through these two annotations, showcasing their distinctions, use cases, and examples to solidify your understanding.
by Dev Leader
A post about what makes a good API
by Afzaal Ahmad Zeeshan
What Windows runtime can teach .NET developers
by Zac Gery
The article decsribes two design principles at the core of design and interaction.
by Gerd Wagner
Why are associations so difficult to understand, not just for developers?
by Dev Leader
Flexibility
by Gaston Verelst
Why you would use Common Table Expressions