• Spotlight: AI in Enterprise
  • Videos
  • Newsletters
  • Resources

About

  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Newsletters
  • Reprints

Policies

  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights

Our Network

  • CIO
  • Computerworld
  • CSO
  • Network World

More

  • Blogs
  • BrandPosts
  • Events
  • Videos
  • Enterprise Buyer’s Guides
  • Analytics
  • Artificial Intelligence
  • Generative AI
  • Careers
  • Cloud Computing
  • Data Management
  • Databases
  • Emerging Technology
  • Technology Industry
  • Security
  • Software Development
  • Microsoft .NET
  • Development Tools
  • Devops
  • Open Source
  • Programming Languages
  • Java
  • JavaScript
  • Python
  • Enterprise Buyer’s Guides
Popular Topics
  • Artificial Intelligence
  • Cloud Computing
  • Data Management
  • Software Development
  • Spotlight: AI in Enterprise
  • Videos
  • Newsletters
  • Resources

Topics

  • Analytics
  • Artificial Intelligence
  • Generative AI
  • Careers
  • Cloud Computing
  • Data Management
  • Databases
  • Emerging Technology
  • Technology Industry
  • Security
  • Software Development
  • Microsoft .NET
  • Development Tools
  • Devops
  • Open Source
  • Programming Languages
  • Java
  • JavaScript
  • Python
  • Enterprise Buyer’s Guides

About

  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Newsletters
  • Reprints

Policies

  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights

Our Network

  • CIO
  • Computerworld
  • CSO
  • Network World

More

  • Blogs
  • BrandPosts
  • Events
  • Videos
  • Enterprise Buyer’s Guides
HomeBlogs.NET ProgrammingPage 8

.NET Programming

Filter by
Analysis
BrandPost
Feature
How-To
Interview
News
News Analysis
Opinion
Reviews
Tip
opinion

How to work with the Visitor design pattern

The Visitor design pattern provides flexibility in your designs by enabling you to define a new operation without needing to change the types of the elements on which it would operate

By Joydip Kanjilal
Mar 13, 2017 4 mins
Software Development
opinion

Compressing Web API responses to reduce payload

The abundance and easy availability of CPU at the expense of network bandwidth can be a good reason to use content compression in Web API for faster responses and improved performance

By Joydip Kanjilal
Feb 27, 2017 5 mins
Software Development
how-to

How to enable CORS on your Web API

Cross-Origin Resource Sharing in ASP.NET Web API allows cross-domain access to your Web API methods.

By Joydip Kanjilal
Feb 24, 2017 4 mins
C# Microsoft .NET Web Development
opinion

Implementing the Composite design pattern in C#

This pattern represents part-whole hierarchies of objects such that the consumers or the clients can treat the objects and also the compositions of objects in a uniform manner

By Joydip Kanjilal
Feb 22, 2017 4 mins
C# Software Development
opinion

My two cents on task continuation in .Net

Create continuations using the Task Parallel Library that can run immediately after the execution of the antecedent is complete or to chain tasks as continuations

By Joydip Kanjilal
Feb 17, 2017 4 mins
Software Development
opinion

How to work with xUnit.Net framework

xUnit.Net is an open source unit testing tool for the .Net Framework that provides an easy way to work with data driven unit tests

By Joydip Kanjilal
Feb 10, 2017 4 mins
Software Development
opinion

How to work with ConcurrentBag and ConcurrentDictionary in .Net

The ConcurrentDictionary and ConcurrentBag classes provide lock-free, thread-safe implementations to work with collections in .Net

By Joydip Kanjilal
Jan 31, 2017 4 mins
Software Development
opinion

Implementing the Observer design pattern in C#

The observer design pattern defines one-to-many relationship between objects so that changes to one object can be notified to the other dependent objects

By Joydip Kanjilal
Jan 30, 2017 4 mins
Software Development
opinion

My two cents on unit testing asynchronous code

Understand how asynchrony works in .Net and adhere to the recommended practices when writing unit tests to test asynchronous code

By Joydip Kanjilal
Jan 26, 2017 4 mins
Software Development
opinion

Decouple abstraction from its implementation using bridge design pattern

The bridge design pattern can be used to decouple an abstraction from its implementation so that both can be changed independent of each other

By Joydip Kanjilal
Jan 19, 2017 4 mins
Software Development
how-to

How to use the prototype design pattern in .NET

The prototype design pattern enables you to create new instances by copying existing instances to avoid the overhead involved in creating objects that can consume more resources

By Joydip Kanjilal
Jan 12, 2017 4 mins
Microsoft .NET C# Software Development
how-to

When to use Task.WaitAll vs. Task.WhenAll in .NET

Understand the differences between Task.WaitAll and Task.WhenAll methods and when to use which in your application.

By Joydip Kanjilal
Dec 23, 2016 4 mins
Microsoft .NET C# Development Libraries and Frameworks
opinion

How to manage and configure application pools in IIS

Application pools isolate applications even if they are running on the same server for better reliability, security and improved performance

By Joydip Kanjilal
Dec 20, 2016 4 mins
Software Development
opinion

New features in C# 7

C# 7 focuses on better developer productivity and enhanced performance

By Joydip Kanjilal
Dec 19, 2016 4 mins
Software Development
opinion

More guidelines and best practices on asynchronous programming

Follow the recommended practices when working with asynchronous programming to achieve scalability and performance benefits

By Joydip Kanjilal
Dec 13, 2016 4 mins
Software Development
how-to

How to work with NLog in .NET

NLog can log your app data and create logs regardless of the size and complexity of your application.

By Joydip Kanjilal
Nov 28, 2016 3 mins
Microsoft .NET Software Development
opinion

My two cents on fakes, stubs, mocks, and shims

Learn what stubs, mocks, and shims are, their differences, and why they are needed and used to write efficient unit tests

By Joydip Kanjilal
Nov 18, 2016 4 mins
Software Development
opinion

How to pass multiple parameters to Web API controller methods

Learn how to pass multiple complex objects as parameters to Web API controller methods.

By Joydip Kanjilal
Oct 31, 2016 6 mins
APIs Software Development
opinion

Demystifying the Law of Demeter principle

The Law of Demeter principle reduces dependencies and helps build components that are loose coupled for code reuse, easier maintenance, and testability

By Joydip Kanjilal
Oct 27, 2016 4 mins
Software Development
opinion

Advanced operations using Dapper.Net

This article is a continuation of the series of articles on Dapper. In the earlier article on Dapper, we have had a brief introduction on Dapper and to get started using in and perform CRUD operations. In this post, I’ll present a discussion on....

By Joydip Kanjilal
Oct 19, 2016 5 mins
Software Development
opinion

How to work with extension methods in C#

Extension methods can be used to inject new functionality to a type without needing to modify, derive, or recompile the original type

By Joydip Kanjilal
Oct 12, 2016 4 mins
Software Development
opinion

Best practices in .Net asynchronous programming

When working with asynchronous code in your applications, follow the recommended best practices to avoid potential pitfalls

By Joydip Kanjilal
Sep 30, 2016 4 mins
Software Development
opinion

How to work with jagged arrays in C#

Jagged arrays are a special type of arrays that can be used to store rows of data of varying lengths to improve performance when working with multi-dimensional arrays

By Joydip Kanjilal
Sep 22, 2016 4 mins
Software Development
opinion

My two cents on the yield keyword in C#

The yield keyword performs custom and stateful iteration and returns each element of a collection one at a time sans the need of creating temporary collections

By Joydip Kanjilal
Sep 21, 2016 4 mins
Software Development
how-to

How to work with log4net in C#

Log4net is an easy to use, reliable, fast, popular, extensible, and open source library for logging data to various configured log targets

By Joydip Kanjilal
Sep 16, 2016 5 mins
Microsoft .NET C# Software Development
opinion

How to handle null references using the NULL Object Pattern in .Net

Take advantage of the NULL Object pattern to avoid writing too much boilerplate code in your application when checking for null values

By Joydip Kanjilal
Sep 12, 2016 4 mins
Software Development
opinion

Design patterns that I often avoid: Repository pattern

Learn the potential pitfalls of using the repository pattern, including adding an extra layer of abstraction when it's not needed in your software designs

By Joydip Kanjilal
Sep 08, 2016 4 mins
Software Development
opinion

Working with the Unity Application Block

Unity Application Block, a lightweight dependency injection container, can build loosely coupled applications that are extensible and easier to test and maintain

By Joydip Kanjilal
Aug 31, 2016 4 mins
Software Development
opinion

Working with thread safe collections: ConcurrentStack and ConcurrentQueue

The ConcurrentStack and ConcurrentQueue classes, lock-free and thread-safe implementations of the Stack and Queue classes, build thread safe collections in .Net

By Joydip Kanjilal
Aug 26, 2016 4 mins
Software Development
opinion

Design patterns that I often avoid: Singleton

Learn the drawbacks of using the Singleton design pattern, one of the most widely used design patterns, and the alternatives to avoid its potential pitfalls

By Joydip Kanjilal
Aug 24, 2016 4 mins
Software Development
opinion

My two cents on Deep copy vs Shallow copy in .Net

Microsoft .Net provides support for cloning objects -- an ability to create an exact copy of an object (also known as a clone). Cloning can be of two types: shallow copy and deep copy.

By Joydip Kanjilal
Aug 19, 2016 4 mins
Software Development
opinion

How to implement the Repository design pattern in C#

The Repository pattern implements separation of concerns by abstracting the data persistence logic in your applications

By Joydip Kanjilal
Aug 12, 2016 4 mins
Software Development
opinion

My two cents on the Thread.Abort and Thread.Interrupt methods

Proper synchronization constructs, structured and deterministic code flow will help you avoid Thread.Abort or Thread.Interrupt methods and terminate threads gracefully

By Joydip Kanjilal
Aug 10, 2016 4 mins
Software Development
opinion

How to implement the ServiceLocator design pattern

The ServiceLocator design pattern builds loosely coupled modules that can be independently developed, tested, and deployed seamlessly

By Joydip Kanjilal
Aug 05, 2016 4 mins
Software Development
opinion

How does ADO.Net connection pooling work?

Connection pooling in ADO.Net lets you reuse database connections and improves data access performance

By Joydip Kanjilal
Aug 03, 2016 4 mins
Software Development
opinion

Getting Started with ASP.Net Core

ASP.Net Core is an open-source and cross-platform, lean and modular framework for building high-performance web applications

By Joydip Kanjilal
Jul 29, 2016 3 mins
Software Development
opinion

My two cents on GC.Collect method in C#

Refrain from calling the GC.Collect method explicitly to reclaim the memory occupied by the objects in your application unless there is a specific reason do so

By Joydip Kanjilal
Jul 22, 2016 4 mins
Software Development
opinion

How to analyze the cyclomatic complexity in your code

Cyclomatic complexity is a quantitative measure of the linearly independent paths in source code that can help you understand the complexity of your program and improve code coverage

By Joydip Kanjilal
Jul 19, 2016 4 mins
Software Development
opinion

How to work with a Tuple in C#

Tuples can be used to store a finite sequence of homogeneous or heterogeneous data of fixed sizes and can be used to return multiple values from a method

By Joydip Kanjilal
Jul 15, 2016 4 mins
Software Development
opinion

My two cents on SpinLock in .Net

SpinLock handles "busy wait" in scenarios where you have frequent contention but with reasonably short waiting times by avoiding context switches and improving performance

By Joydip Kanjilal
Jul 12, 2016 4 mins
Software Development
opinion

How to work with HTTPHandlers in ASP.Net

HTTPHandler is a low level request and response API in ASP.Net for injecting pre-processing logic to the pipeline based on file extensions and verbs

By Joydip Kanjilal
Jul 08, 2016 4 mins
Software Development
opinion

How to work with the Managed Extensibility Framework in C#

The Managed Extensibility Framework in .Net avoids fragile hard dependencies in your code and builds applications that are loosely coupled, lightweight, and extensible

By Joydip Kanjilal
Jul 07, 2016 4 mins
Software Development
how-to

How to work with HttpModules in ASP.NET

HTTP modules intercept incoming requests and inject pre-processing logic in the ASP.Net request processing pipeline

By Joydip Kanjilal
Jul 01, 2016 6 mins
Microsoft .NET C# Software Development
opinion

How to work with BlockingCollection in C#

The BlockingCollection class in .Net implements thread-safe collections efficiently

By Joydip Kanjilal
Jun 30, 2016 4 mins
Software Development
opinion

How to work with Web Sockets in .Net

WebSockets implement fast, secure, bi-directional, full duplex communication between a client and a server to support real-time, low-latency messaging

By Joydip Kanjilal
Jun 24, 2016 4 mins
Software Development
opinion

My two cents on Mutex and Semaphore in C#

Take advantage of Mutex for inter process synchronization and Semaphore to limit concurrent access to a shared resource in your application

By Joydip Kanjilal
Jun 23, 2016 4 mins
Software Development
opinion

How to handle concurrency conflicts in Entity Framework

Explore ways to handle concurrency conflicts to maintain data integrity and data consistency when working with Entity Framework

By Joydip Kanjilal
Jun 17, 2016 4 mins
Software Development
opinion

How to work with content negotiation in Web API

Content negotiation in Web API helps determine the best representation of a resource from among the various representations available

By Joydip Kanjilal
Jun 15, 2016 4 mins
Software Development
how-to

How to use covariance and contravariance in C#

You can use covariance and contravariance to provide polymorphic extension to delegates, arrays, and generics in C#. Here’s how.

By Joydip Kanjilal
Jun 10, 2016 4 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to implement an asynchronous socket in C#

You can increase the performance and scalability of your client-server applications by using asynchronous sockets. Here’s how.

By Joydip Kanjilal
Jun 09, 2016 4 mins
C# Microsoft .NET Web Development
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

Show me more

opinion

The dirty little secret of open source contributions

By Matt Asay
Nov 18, 20244 mins
Technology IndustryOpen Source
Image
feature

14 great preprocessors for developers who love to code

By Peter Wayner
Nov 18, 202410 mins
Development ToolsSoftware Development
Image
feature

Designing the APIs that accidentally power businesses

By Jean Yang
Nov 18, 20246 mins
APIsSoftware Development
Image
video

Building Python wheels to distribute your programs

Nov 15, 20246 mins
PythonSoftware Development
Image
video

Creating a pip install-able Python package

Nov 14, 20243 mins
PythonSoftware Development
Image
video

How to get better web requests in Python with httpx

Oct 07, 20244 mins
Python
Image
About
  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Reprints
  • Newsletters
  • BrandPosts
Policies
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights
  • Privacy Settings
Our Network
  • CIO
  • Computerworld
  • CSO
  • Network World
  • LinkedIn
  • X
  • Facebook
Copyright © 2024 IDG Communications, Inc.