DDD South West 8

I attended DDD South West at the weekend in Bristol. As usual, it was a great event.

Here are the sketchnotes I took of the talks I attended.

Outside-In TDD

by Ian Russell

Outside-In TDD by Ian Russell

Give It A REST - Tips For Designing And Consuming Public APIs

by Liam Westley

Give It A REST - Tips For Designing And Consuming Public APIs by Liam Westley

Kubernetes For .Net Developers

by Shahid Iqbal

Kubernetes For .Net Developers by Shahid Iqbal

Teaching An Old Dog New Tricks

by Ismail Mayat

Teaching An Old Dog New Tricks by Ismail Mayat

Patterns And Practices For Building A Better Web API Architecture

by Joseph Woodward

Patterns And Practices For Building A Better Web API Architecture by Joseph Woodward


Cambridge Alexa Devs Meetup

I recently attended the inaugural meetup of the Cambridge Alexa Developers Group held at Amazon’s Cambridge office. The group was set up by Bob Harris and Rich Merrett, who both gave talks on building Alexa skills and SSML.

David Low, Amazon’s Head of Solutions Architects, also gave a talk about how to best create a skill by working out its user value:

Working Backwards by David Low

One particlarly interesting thing covered was a formula for working out whether a skill will be a “killer skill”:

Cusomter value × Contexts × Frequency × Multipliers
Complexity × Friction

The higher the output of this formula, the higher the likelihood that a skill will be succesful.

While this talk wasn’t recorded, he has given a similar talk before that was.


NDC London 2018

Last week I attended NDC London. It’s not the first time that I’ve been, but it is the first time I’ve done the workshops that run alongside the main conference.

I attended the “Identity & Access Control for modern Applications and APIs using ASP.NET Core 2” workshop hosted by Dominick Baier and Brock Allen. This was a two day workshop consisting of a mixture of presentation, discussion, and hands-on labs. It dived deep into the security aspects of modern ASP.Net applications, specifically the application itself and its APIs. The first day focused on how external authentication (via OAuth 2.0 and OpenID Connect) could be used to save having to implement authentication yourself in your application. The second day took this further and focused on how to secure an API that you may have in an application so that you can call it server-to-server, from mobile applications, or from JavaScript applications.

The remaining three days of the conference was in the form of talks. Like I’ve done before, I sketchnoted many of the sessions that I attended.

What Is Programming Anyway?

by Felienne Hermans

What Is Programming Anyway? by Felienne Hermans

The Power Of Technical Decisions

by Jake Ginnivan

The Power Of Technical Decisions by Jake Ginnivan

You Build It, You Run It

by Chris O’Dell

You Build It, You Run It by Chris O'Dell

An Introduction To Kotlin

by Dmitry Kandalov

An Introduction To Kotlin by Dmitry Kandalov

Composite UIs: The Microservices Last Mile

by Jimmy Bogard

Composite UIs: The Microservices Last Mile by Jimmy Bogard

Designing For Speech

by Jessice Engström

Designing For Speech by Jessica Engström

Jewelbots: How To Get More Girls Coding

by Jennifer Wadella

Jewelbots: How To Get More Girls Coding by Jennifer Wadella

Who Needs Dashboards?

by Jessica White

Who Needs Dashboards? by Jessica White

Pilot Decision Management

by Clifford Agius

Pilot Decision Management by Clifford Agius

A Developer’s Guide To Machine Learning

by Tess Ferrandez-Norlander

A Developer's Guide To Machine Learning by Tess Ferrandez

CSP XXP STS PKP CAA ETC…

by Scott Helme

CSP XXP STS PKP CAA ETC... by Scott Hulme

Web Apps Can’t Do That, Can They?

by Steve Sanderson

Web Apps Can't Do That, Can They? by Steve Sanderson

These are the other talks I attended but didn’t sketchnote:

C# 7.0

by Jon Skeet

C# 7.1 and 7.2: The Releases You Didn’t Know You Had

by Bill Wagner

The Psychology Of Social Engineering

by Niall Merrigan

The Modern Cloud

by Scott Guthrie

The Hello World Show Live

hosted by Heather Downing and Spencer Schneidenbach

Tips And Tricks With Azure

by Scott Guthrie

Why I’m Not Leaving .Net

by Mark Rendle


DDD North 7

I recently attended DDD North 7 in Bradford. I’ve been wanting to take up sketchnoting for a while now, but have never gotten round to doing it, so when Ian Johnson (go check out his sketchnotes - they are great) prompted me to take my sketchbook and pens with me, I reluctantly obliged. I’m so glad I did though as I really enjoyed doing them, and I feel it had the effect of me being able to recall much more of the content of each talk. I tweeted the sketchnotes after each session and got a great response from both the speakers and attendees.

Here are the sketchnotes I did during the day.

Microservices: What I’ve Learned After A Year Of Building A System

by Nathan Gloyn

Microservices: What I've Learned After A Year Of Building A System by Nathan Gloyn

Spot The Difference: Automating Visual Regression Testing

by Viv Richards

Spot The Difference: Automating Visual Regression Testing by Viv Richards

Married To The Mob (Programming)

by Derek Graham

Married To The Mob (Programming) by Derek Graham

How To Parse A File

by Matt Ellis

How To Parse A File by Matt Ellis

Alexa, Open Sneezaroo…

by Zinat Wali

Alexa, Open Sneezaroo... by Zinat Wali


Setting a culture for all threads in an application

If you do any kind of globalisation in your applications, you will probably already be familiar with the Thread.CurrentCulture and Thread.CurrentUICulture properties that can be used to set a culture on the thread so that .Net knows to load the correct resources and to format numbers and dates properly.

A big downside to using approach this is that the culture is only set on the current thread, meaning that any new threads created will be using the default culture for the application (which is tied to the regional settings of the operation system). This wasn’t too much of a problem years ago when multi-threading was not used widely, but in modern application development it is virtually impossible to avoid using multiple threads (e.g. Task Parallel Library), especially when trying to make use of modern multi-core hardware. You would have to manually set the culture when spawning new threads to ensure that the correct culture was being used - a real pain and a common cause of bugs.

.Net 4.5 comes to the rescue with the introduction of two new properties:

CultureInfo.DefaultThreadCurrentCulture
CultureInfo.DefaultThreadCurrentUICulture

A culture can be set using properties that will then be used for all threads in the whole application domain, meaning that you can set the correct culture at application start up and all threads will use that culture. By default, these properties are set to null meaning that the pre-4.5 behaviour will still hold and that the system culture will be used by default.

The MSDN docs for CultureInfo.DefaultThreadCurrentCulture and CultureInfo.DefaultThreadCurrentUICulture provide more details.