Latest posts

Injecting settings into an ASP.NET Core application

Injecting settings into an ASP.NET Core application

I had previously struggled to work out how to deal with injected dependencies that required some data. For example, if you are injecting a mail service, it is going to need the server settings. That's fine when the service is a class in your own project, but when you want to wrap it up into a reusable Nuget package, it doesn't work quite so easily.

I finally discovered how easy it is to inject the service with the required settings, so blogged about it before I forgot!

Accessing Google Drive from an ASP.NET application

Accessing Google Drive from an ASP.NET application

Accessing Google Drive from an ASP.NET application looked easy until I tried it, and discovered that pretty much all the information out there is either misleading or plain wrong.

This blog post explains the three approaches I tried, and why the first two didn't work. There are also plenty of links to the only reliable source of information I could find.

Comparing Lisp to C# (and F#)

Comparing Lisp to C# (and F#)

OK, so the title is really misleading, as you can't really compare two such different languages, but it's interesting to try to anyway.

Anyway, being a rank beginner, I had to start with everyone's favourite recursive function, the factorial. This is a good one, as it's so simple, but quickly generates numbers so big that it's pretty useless unless you do something more than the basic coding. The results were surprising.