How To


Neural Network Train-Validate-Test Stopping

The train-validate-test process is hard to sum up in a few words, but trust me that you'll want to know how it's done to avoid the issue of model overfitting when making predictions on new data.

Protect ASP.NET Applications Against CSRF Attacks

Protect your ASP.NET applications from Cross-Site Request Forgery attacks by leveraging ARMOR, a C# implementation of the Encrypted Token Pattern. Here's how.

Inject Custom Middleware into the ASP.NET Pipeline with OWIN

You can easily slide middleware and other custom code into the ASP.NET pipeline by taking advantage of the Microsoft implementation of the OWIN specification in the coming Visual Studio 2015.

The Danger of Received Wisdom (or, Stupid Things I've Said)

Peter reviews some of the more spectacularly incorrect things he's told other people and then draws some conclusions.

Bad Code in Any Language

Code audits seemed unnecessary to everyone except the auditor. Good thing the auditor finally had one sympathetic ear -- "Andrew" -- to hear him out.

Create a SharePoint Hosted App with Visual Studio

The hooks in SharePoint Apps allow developers to streamline the process of creating them without SharePoint getting in the way.

Managing Asynchronous Processes in TypeScript

Promises not only provides a simple, flexible interface for assembling chains of asynchronous operations in client-side code, it also makes it easier for you to manage parallel processing.

Leverage Azure When Building Enterprise Mobile Apps with Windows Phone

Building line-of-business mobile apps for Windows Phone that connect to Microsoft Azure for authentication, data storage and notifications isn't much different from on-premises apps. Here's what it takes.

Geek Talk: Are Strings Value Types or Reference Types?

Some things only matter to the true nerd. So, if you're looking for a genuinely useful article, this isn't it.

What's Fixie and Why Should C# Programmers Care?

It's what unit testing should be. Here's how to use it to test your apps.

A Simple Data Binding Trick for an iOS App

Display data to a user with Xamarin.iOS and this nifty class.

Speed Up Your Application with Stored Procedure and Temporary Tables

Stored procedures can speed up your code by reducing trips to your database -- even if you only have one SQL statement to execute. Here's how to speed up your application (and how to simplify your stored procedure code).

Coding Neural Network Back-Propagation Using C#

Back-Propagation is the most common algorithm for training neural networks. Here's how to implement it in C#.

Automatic Sorting for Your Collections

The .NET Framework has two collections that will guarantee your items are always sorted whenever you process the collection. Here's how to choose between the two and how to control the sort order (including supporting duplicate entries).

Asynchronous Processing with TypeScript and Generic Promises

Promises make asynchronous processing simple, consistent and easy to use. And, with TypeScript and Promises.TypeScript providing support for generic Promises, you get both type safety and IntelliSense support.

ConventionTests, Part 2: Creating Custom Conventions in ASP.NET

Now that you know how to use them (see Part 1 if you don't), it's time to create custom ones.

Everything You Didn't Know About Shared and Static Members

Peter's convinced you're not using Shared and static members enough, but then he's also convinced that none of you know about all the ways you can use those two keywords.

Retrieve and Update Entity Framework with Dynamic Queries

You don't have to give up on creating dynamic queries just because you're using Entity Framework. Entity SQL and ObjectQuery will let you generate queries at runtime and still let you update your data through Entity Framework.

Creating SharePoint 2013 Workflow Apps with Visual Studio

SharePoint 2013 workflows for automating common business processes can be deployed as SharePoint apps built using Visual Studio.  

Add Real-Time Diagnostics to Your Windows Phone 8.1 App with SignalR

Adding real-time diagnostics and communication to a Windows Phone 8.1 application is no challenge for SignalR.

How To Use Resilient Back Propagation To Train Neural Networks

It's more complex than back propagation, but Rprop has advantages in training speed and efficiency.

I Get XAML, You Get XAML, Everyone Gets XAML with Xamarin.Forms

Xamarin.Forms gives you the gift of XAML if you're looking to take the short route to building mobile interfaces.

How To Simplify the Dreaded Task of Documentation Publishing with GitHub Pages

You don't have to reinvent the Web site to publish some documentation for your project. Take advantage of GitHub Pages to build almost point-and-click doc sites.

Attain Code Management Nirvana via Test-Driven Development, Part 1

In this three-part series, we'll build an ASP.NET MVC application for managing a simple list of contacts, and in the process we'll show some of the direct benefits of test-driven development.

Creating a Simple Collection Class

Here's the simplest possible code for creating a custom collection class in the Microsoft .NET Framework that includes support for For…Each loops, an indexer method and initializing collections with {…}.

Subscribe on YouTube