How To


Exploiting Generics in TypeScript

Generic classes and functions are one way to create flexible, reusable classes and functions. But before you start creating your own generic functions, you should be clear on when they’re your best choice.

Performance Profiling Your Xamarin Apps

Learn to measure the performance of your apps and ensure a great UX.

Processing a File or Folder When It Changes in Your Desktop Apps or Windows Service

When you need to know when a file or folder appears, disappears or is renamed -- in fact, if almost anything at all happens in the file system -- you can have Windows notify your application so that you can take action.

Introduction to R for .NET Developers

C# developers who want to wring more meaningful info from large sets of data should get cozy with the statistical computing language known as R. Let's get familiar with R in this new series.

Opening a Dialog Box in an ASP.NET MVC Page

There are lots of benefits to gathering information by opening a dialog box instead of sending your user to another page. Fortunately, jQuery and ASP.NET MVC make it easy to do (and you don't have to worry about offending pop-up blockers).

Events and the Xamarin MessagingCenter

Application code needs to raise events and respond to them. The MessagingCenter makes this whole process much simpler than standard .NET events.

Leveraging Interfaces Instead of Inheritance

If you need to have objects look alike but don't have any code to share, you don't need inheritance -- you need an interface. Here's an example of how interfaces provide a more flexible way to deal with similar-but-different classes.

Overloading TypeScript Functions

TypeScript has some "interesting" limitations when it comes to overloading functions. But it also offers you some options when you need more flexibility in declaring functions, including both optional parameters and infinite parameter lists.

Cortana, How Do I Add You To My Windows Apps?

With the Universal Windows Platform, you can now build apps that truly interact with the new digital assistant for Windows. In this article, Nick Randolph walks through using Cortana to launch and interact with your application.

The Easiest Way to Share Code: NuGet

You want to use a DLL in multiple projects (it's even possible that other developers at your company might find your DLL helpful). The easiest way to distribute and deploy that DLL, or any other combination of files, is with NuGet. Really.

What's in iOS 9 for C# Developers?

A high-level look at some of the more interesting features of the newest Apple mobile OS that can trip up C# developers making apps for it.

Creating a True Value Object

You can dramatically simplify your code by using classes to define read-only/immutable objects … but to create classes that behave correctly requires a little bit of redirection.

Parameter Sweeps, or How I Took My Neural Network for a Test Drive

The short definition of a parameter sweep is that it's the process of trying different training parameter values in order to find a good set of neural network weight values.

Creating a Value Object that Developers Can Use

You can dramatically simplify your code by using value objects, but to create a value object that makes sense to the developer who uses it, you need to redefine what the equals sign means. Along the way, Peter points out some problems when you don't use classes to define your data.

Solving Sliding Tiles with Artificial Intelligence (and Some C#)

True artificial intelligence is years away. But we can demonstrate the challenges of AI decisionmaking using C# to derive solutions for the classic sliding tiles puzzle.

ASP.NET MVC 6 and Tag Helpers, Part 2

Now that you know how to create tag helpers, let's create a custom one that loads a bootstrap-select dropdown via a remote URI.

Implementing Strategy Pattern and Callbacks in TypeScript

The TypeScript datatyping support not only applies to simple variables, it also supports you when doing clever things with functions. Specifically, TypeScript ensures you create reliable code when implementing callback functions.

Using Predicates in Akka.NET Receive Actors

Create precise logic dictating which messages an actor will handle and how they will react to them.

Modelling Actor Behaviors in Akka.NET

Simplify conditional actor code and improve readability.

Hosting JavaScript in a Windows 10 App

An introduction to the Chakra JavaScript engine and how it can be used within a Windows 10 app to execute JavaScript.

A More Efficient Text Pattern Search Using a Trie Class in .NET

The trie data structure is one alternative method for searching text that can be more efficient than traditional search approaches. Here's a trie class you can create in C#.

Simplifying Applications by Implementing Eventual Consistency with Domain Events

Implementing Domain Events can dramatically simplify your application while also making it more scalable. Here are some of the implementation options available to you in the .NET environment.

Step Up To Recurrent Neural Networks

Recurrent neural networks can solve some types of problems that regular feed-forward networks cannot handle.

How To Consume a WebAPI with RestSharp

The open source library RestSharp is designed to make consuming APIs from .NET easy and work across platforms.

Creating a Genuine Value Object

Peter addresses reader's concerns by showing how to implement a read-only/immutable value object.

Subscribe on YouTube