Template for TypeScript, Handlebars and Webpack architecture

by dotnetnerd 5. October 2017 12:05

I recently started a new project, based on my own medicine of not using a framework, but building a simple architecture, that can grow and change freely based on needs as they arise. It is coming along very nicely, and has allowed us to have a pretty clean architecture.

For this project we chose to base the solution on TypeScript, and use handlebars for views along with a few other small libraries. As a clientside build tool we wanted to use webpack, because it is fast, has a lot of plugins that we can use, and is well suited for working with css modules. More...

TypeScript 2 – full speed ahead!

by DotNetNerd 1. May 2017 10:30

I have been happy working with TypeScript for quite a while now, and I am happy to say that things are moving ahead with the language quite well. It is not that long ago that TypeScript version 2.0 was realeased, and with steady releases we are now at version 2.3.

One of the big things that came to TypeScript in version 2.0 was discriminated union types and the option to do strict null checks, which combine quite nicely. Discriminated unions are simply done using the pipe operator, and the compiler will do strict null checks if you use the --strictNullChecks switch. More...

ASP.NET Core and Node together: JavaScript Services

by DotNetNerd 6. January 2017 10:08

A while ago I heard about some JavaScript Services that Steve Sanderson was working on for .NET core. The central idea was to provide services that could use NodeJS within an ASP.NET application, allowing us to consume all the awesome modules that are written for node. This can allow us to do a number of things, like prerendering and better integration between client and server that can run the same code.

Recently I ran into a new article about the work they are doing on JavaScript Services, and it seems to be far enough along now, that I think it is really worth trying out.
The documentation is really well written, so I won't write step by step instructions, but simply point out that it can be found on github and that it is pretty easy to get going.

More...

2016 review

by dotnetnerd 19. December 2016 10:24

What a year this has been, and now is the time for my yearly review. Work wise my business has been very simple to run and very stable, because I have continued to extend my contract with DI. This may sound boring initially, but the reason this has worked for me is that I get to dive into a lot of technologies especilly around Azure and Visual Studio Team Services. I have been building a greenfield self-service application, for one of the biggest and most influential organisations in the country, while having the hands on the wheel with reguard to tech and design. So although I have not been moving on to new projects as much as I expected I am loving it.

More...

Azure Webjobs – good stuff, with a gotcha

by DotNetNerd 26. May 2016 11:27

imageOne of the really nice things about Azure Webapps is the support for running Webjobs. Most large webapplications will at some point need some data or media processed by a background process, and for that Webjobs are a perfect fit.

More...

Backup with Azure Cool Blob Storage

by dotnetnerd 11. May 2016 12:49

azure-storage-blob-logoA few weeks ago Microsoft introduced the concept of "Cool" Blob Storage on Azure, which means that you get REALLY cheap storage for data that you don't access very often - backup being an obvious usecase. In my case I have used Dropbox for backups for a while, and although it works fine for a certain amount of data, it is not really a good fit for backing up that family photos and videos once a year from the home NAS.

More...

Azure Resource Management Templates

by DotNetNerd 29. March 2016 12:59

image11A core value that Azure brings to modern projects, is to enable developers to take control of the deployment process, and make it fast and painless. Sure scalability is nice, when and if you need it, but the speed and flexibility in setting up an entire environment for your application is always valuable - so for me this is a more important feature of Azure. Gone are the days of waiting at best days, most likely weeks and maybe even months for the IT department to create a new development or test environment.

More...

A few thoughts on Visual Studio Team Services

by dotnetnerd 11. February 2016 14:08

VSTS-2015Visual Studio Online was recently renamed Visual Studio Team Services, which more accurately tells you what it is about. Sure, you can still browse and edit code, but it is just one feature, and not really a core one at that. On my current project I have had the chance to dive in a little deeper, and have a look at some of the features that VSTS has to offer. Although I have often been critical of these kinds of products, VSTS has been mostly a pleasent acquaintance.

More...

2015 debriefing

by DotNetNerd 21. December 2015 14:11

So it's that time again. Another year has past, and like so many others I want to take a little time to look back at how I have spent my nerdy hours. Most importantly it has been my second years as an independent consultant, and I am still enjoying the freedom and the chance to work on projects that are very different. More...

ASP.NET 5 news - Tag Helpers

by DotNetNerd 11. December 2015 11:17

Xplat has been the big topic around ASP.NET 5, but to be honest it does not matter that much for many of us. Sure it is always nice to have options, but if you work in a Microsoft shop or at an enterprise who see them selves as based on Microsoft technologies, then that is not likely to change - and why should it? The good news is that taking the framework and tooling apart to enable these options also brings a more aligned and flexible architecture, that solves some of the issues with eg. build setups that we have today. With that said, xplat is not all that ASP.NET 5 is about.

More...

Who am I?

My name is Christian Holm Diget, and I work as an independent consultant, in Denmark, where I write code, give advice on architecture and help with training. On the side I get to do a bit of speaking and help with miscellaneous community events.

Some of my primary focus areas are code quality, programming languages and using new technologies to provide value.

Microsoft Certified Professional Developer

Microsoft Most Valuable Professional

Month List