Debugging windows services

csharp-logo

I’ve written a post before about how I debug windows service (i.e. run them from within Visual Studio without having to use “Attach to process”). I’ve come up with a new easier approach. First of all, I’ve moved all logic from the service class. Instead I use a second class to control what should be started or not. So my ...

Read More »

MVVM and Threading

software-development-2-logo

The Model-View-ViewModel pattern is a very powerful design pattern when building WPF applications, even if I’m not sure everyone interprets it the same way. However, it’s never been clear to me how to easily manage multi-threaded WPF applications: writing multi-threaded code is hard and there seems to be no real support baked into WPF or the idea of MVVM to make multi-threaded code easier ...

Read More »

On Collections

csharp-logo

Today I would like to talk a bit (though looking at my notes, probably more than a bit) about collections, collections as in lists of things. Specifically, I would like to discuss the implementation of such collections in games, and some problems that occur due to the requirements of game development. I will go through some of the solutions I ...

Read More »

I’m a software developer – not a lawyer

agile-logo

A long time ago not that far away I’ve been hired by Uber-Corp to work on the new and shiny product. We had talent, budget and cool technology on our side, and that project was going to crash and burn (and ultimately cancelled) in less than a year. Nobody’s perfect – we had our share of problems, some technical and ...

Read More »

C# Tricks: Slimming down your controllers

asp-dot-net-logo

This blog post is dedicated to my colleague Seminda who has been experimenting with how to create simple and powerful web applications. Thank you for showing me your ideas and discussing improvements with me, Seminda. I find many C# applications have much unnecessary code. This is especially true as the weight of the business logic of many applications are shifting ...

Read More »

Easier error handling in ASP.NET MVC5

asp-dot-net-logo

I’ve written a few posts about error handling in ASP.NET MVC. It’s not easy to get it right since the MVC pipeline uses a different error handling method than ASP.NET itself. With our client library you can get a fully working implementation for free, without having to using the rest of our service. OneTrueError injects itself both in the ASP.NET ...

Read More »

Experimenting with HTTP services – UrlEcho and UrlReq

asp-dot-net-logo

Interesting, especially the reasoning behind them: UrlEcho permits the requestor to completely define the response it wants to receive, thus giving it the ability to “host” static HTTP resources within URLs themselves. Why is this cool/useful? #               You don’t need a Web server to host a simple resource — you just construct a ...

Read More »

Using Azure Resource Manager

microsoft-azure-logo

In the new Azure Portal you create all your resources in Resource Groups, there is also as part of the Azure SDK‘s a module called AzureResourceManager  by default the module loaded for the Azure SDK is AzureServiceManagement. A blurb from one of the Azure documentation page reads “The Azure and Azure Resource Manager modules are not designed to be used ...

Read More »

Invoke Command/queries in the browser, execute them in your app

csharp-logo

I’ve created a small sample project which demonstrates how you can invoke a query using javascript (and execute them in your server). The sample uses authentication, authorization, an inversion of control container and jQuery. The cool thing (imho) is that this technique obsoletes ASP.NET MVC/WebApi and similar. That is, if you combine command/queries over ajax/websockets you only need static HTML ...

Read More »