We’re back for a new year of .NET! For this first week of 2016, we’re off to a great start with two packages and lots of interesting posts.
To read last week’s post, see The week in .NET – 12/29/2015.
This week on our On.NET live YouTube show, we’ll speak with Mads Torgersen, probably mostly about C#. Please feel free to send me questions in advance, or to attend the show live and ask Mads questions directly on the chat.
Package of the week #1: ReactiveUI
ReactiveUI uses Reactive Extensions for .NET to create testable UI that are compatible with Xamarin (iOS, Android, and Mac), WPF, Windows Forms, UWP, etc.
Here’s an example that illustrates how Reactive programming is very appropriate for UI, by showing how to throttle change events on a search textbox before sending queries to a search service:
You can see this sample code in context on the ReactiveUI site.
Package of the week #2: TypedRouting
If you think declaring ASP.NET MVC routes involves too many “magic strings”, you’re going to love TypedRouting.
Here’s how you would declare a
GET route to
In this example, both the controller name and the action method names are checked at compile-time. Even the signature of the method can be checked during compilation, and will be flagged as an error if it changes and becomes incompatible with its usage.
The library doesn’t stop at adding routes, and also provides a range of utilities to use the routes. For example, you can get a link using the route defined above:
User group of the week: New England Microsoft Developers
- Fast shared array, buffer, and ring buffer for .NET IPC with memory mapped files by Justin Stenning.
- Having a look at the dotnet CLI tool and .NET Native compilation in Linux by Tugberk Ugurlu.
- Introducing NBench – an automated performance testing framework by Petabridge.
- Do one thing and do it well by Mark Rendle.
- Complex custom tag helpers in MVC 6 by Dave Paquette.
- How to unit test ASP.NET MVC 6 ModelState, and Fast ASP.NET Integration by Armen Shimoon.
Start your New Year off right with the epic conclusion of the 2015 F# Advent Calendar in English:
- Welcome to 2016 – A Call to Action, by The F# Software Foundation.
- Visualizing F# Advent Calendar Contributors, by Pierre Irrmann.
- Implementing API Gateway in F# Using Rx and Suave, by Tamizh Vendan.
- Happy New Year 2016 Around the World, by Tomas Petricek.
Check out F# Weekly for more great content from the F# community.
And this is it for this week!
Contribute to the week in .NET
As always, this weekly post couldn’t exist without community contributions, and I’d like to thank all those who sent links and tips. You can participate too. Did you write a great blog post, or just read one? Do you want everyone to know about an amazing new contribution or a useful library? We’d love to hear from you, and feature your contributions on future posts:
- Send an email to beleroy at Microsoft,
- comment on this gist
- Leave us a pointer in the comments section below.