Home » Archives for Jonas Gauffin

Author Archives: Jonas Gauffin

Using a SynchronizationContext in unit tests

We’ve started to use the Progress<T> class in our async application. However our tests started to fail because of that (when validating that our callbacks get invoked). This post will show you how to create a simple  SynchronizationContext to make sure that everything is invoked before the assert part is being run. If you google around you’ll see a couple of articles ...

Read More »

Working with views in Griffin.Yo

Griffin.Yo is a SPA library written in typescript. My goal is to create a simple library which is easy to get started with, but powerful enough to support building complex web applications. This post will show you how you can work with views in Griffin.Yo. Views are simple HTML pages. They do not contain or facilitate a template language. All ...

Read More »

The data mapper in Griffin Framework now includes a fluent api

The data mapper in Griffin.Framework have been updated to support fluent mapping and some other new features. Like in previous versions you do not need to do anything special in your mappings if the table matches the class. Just create an empty mapping class: public class MyMapper : CrudEntityMapper<MyEntity> { public MyMapper() : base("TableName") { } } It’s when you ...

Read More »

Griffin.Yo – Easy SPA library written in TypeScript

All SPA libraries that I’ve tried have long tutorials to show you have to use and configure them. It’s not unusual that they allow you to structure your application just as you like, which might be great for powerful users, but make it more confusing for newcomers. Here is an introduction to my own library which should be reasonable easy ...

Read More »

Griffin Editor – A Markdown editor written in TypeScript.

Griffin Editor is a markdown editor with support for keyboard shortcuts, syntax highlighting, theming, preview etc. My last check in for Griffin Editor was about three years ago. When I wrote the last version I barely knew how to write modular JavaScript libraries. I still don’t. That’s why TypeScript is so nice :) The editor is much easier to extend ...

Read More »

Stackoverflow integration in OneTrueError

I’ve created a nifty little javascript library in TypeScript that I use in OneTrueError. It allows our service to search StackOverflow for relevant questions and answers. Searching StackOverflows API is quite easy as it is pretty much straight forward. The challenge however, was to create something which can identify the correct StackOverflow tags. To do that we analyze the stack ...

Read More »

Debugging windows services

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 »