Volume 31 Number 5
May 2016 Code Downloads
|.NET Compiler Platform - Maximize your Model-View-ViewModel Experience with Roslyn
Learn how to simplify the implementation of the Model-View-ViewModel pattern with custom Roslyn refactorings. Del Sole shows you how to take advantage of the Roslyn APIs to automate the generation of common objects in MVVM, starting with plain text analysis and moving on to creating new syntax nodes.
|ASP.NET - Writing Clean Code in ASP.NET Core with Dependency Injection
Dependency Injection (DI) is a technique that allows applications to be constructed from loosely coupled modules. ASP.NET Core has built-in support for DI and uses it to provide services to applications built on it. Learn how to use DI to access ASP.NET services as well as your own application services.
|Data Points - Dapper, Entity Framework and Hybrid Apps
A popular micro-ORM called Dapper can help solve performance issues, and you don’t have to give up Entity Framework to take advantage of it. Julie Lerman explains how hybrid apps may be just what you need.
|Test Run - The Multi-Armed Bandit Problem
James McCaffrey provides an implementation of the multi-armed bandit problem, which is not only interesting in its own right, it also serves as a good introduction to an active area of economics and machine learning research.
|Windows PowerShell - Writing Windows Services in PowerShell
This article presents a novel and easy way to create Windows services, by writing them in the PowerShell scripting language rather than C# or C++. No more compilation, just a quick edit/test cycle that can be done on any system.