Slides and code from NDC Oslo 2015Posted by Dylan Beattie on 19 June 2015 • permalink
I’m here at the Oslo Spektrum in Norway at NDC 2015, where I’ve been talking about the machine code of the web, SASS, TypeScript, CoffeeScript, bundle transformations, web optimisation in ASP.NET, ReST, hypermedia, resource expansion, API versioning, OAuth2, Apiary, NGrok, RunScope – and that’s just the stuff I actually managed to cover in my two talks. It’s been a really great few days, and huge thanks to the organisers for going to such great lengths to make sure everything has gone so smoothly.
A couple of non-software highlights that I really liked:
- The catering has been excellent, and having food available throughout the day is a great way to avoid the lunchtime rush. (And the free coffee at the Twilio stand is excellent!)
- The overflow area – where you can tune into any of the 9 talks currently in progress via a wireless headset, or just sit and channel-surf – is a great idea. (But remember it’s there if you’re doing live demos with audience participation – I’m pretty sure the “winner” of my NGrok demo was one of the people in the overflow area!)
- If you ever get the chance to see the Norwegian band LoveShack, do it. They played the conference after-party last night, and closed their set with a note-perfect 20-minute medley which went through (I think!) Jump, Celebrate, Girls! Girls! Girls!, Welcome to the Jungle, Paradise City, the theme from Baywatch, Livin’ on a Prayer, Radio Gaga and a half-dozen more before dropping back into Jump mid-guitar-solo without skipping a beat. They’re playing the John Dee bar in Oslo this evening, and I’m almost tempted to change my flight just to stick around and see them again…
Slides, Links and Code Samples
The slides and code samples for the talks I’ve given are up on GitHub: the repo is at https://github.com/dylanbeattie/ndc-oslo-2015 or if you want to download the slide decks directly, links are:
Front-End Fun with Sass and Coffee
- Front-End Fun with Sass and Coffee – my slide deck from NDC Oslo 2015
- The SASS Language site
- Bundle Transformer – a “modular extension for System.Web.Optimization” that is also probably my favourite NuGet package of all time, for the sheer elegance of the way it’ll give you all the power of Ruby and Sass in a way that works so harmoniously with the ASP.NET runtime
The Rest of ReST
- The Rest of REST – my slide deck from NDC Oslo 2015
- “Architectural Styles and the Design of Network-based Software Architectures” – Roy Fielding’s doctorate thesis, in which he outlines the constraints that define ReSTful architecture.
- “Your API Versioning is Wrong, which is why I decided to do it three different wrong ways” – Troy Hunt’s blog post about API versioning.
- apiary.io – rapid prototyping for HTTP+JSON APIs. Which MIGHT be ReSTful if you read Roy Fielding’s thesis before you start playing with it.
- NGrok – “secure tunnels to localhost”
- RunScope – monitoring, logging and debugging for HTTP APIs and services.
- HAL: Hypertext Application Language by Mike Kelly
I also want to follow up on one specific question somebody asked after my ReST talk this morning, which can be paraphrased as “are you comfortable recommending that people use HAL, seeing as it’s basically a dead specification?” An excellent question, and one that probably slightly more detailed answer than the one I gave on the spot. To put this in context, the HAL specification was submitted to the IETF as a draft-kelly-json-hal-06 in October 2013; that draft expired in 2014 and hasn’t been updated or ratified since, so I can see how you could argue that HAL is “dead”.
First – I’d disagree with that. Although the specification itself hasn’t changed in a while, the mailing list and community is still relatively active, and I’ve no doubt would still welcome engagement and contributions from anybody who wished to participate. Second – the spec still provides a perfectly valid approach. It’s a specification, not a tool or a framework, and in terms of delivering working software, if HAL helps you solve your problem then I say go go for it. Third – and I should have made this more obvious in this morning’s talk – HAL is just one of several approaches for delivering hypermedia over JSON. I used HAL in my examples because I think it’s the most readable, but that doesn’t mean it’s the best choice for your application. (Remember, one of my requirements for a hypermedia language in this context was “looks good on Powerpoint slides”.) If you’re interested, I would recommend also looking at JSONAPI, JSON-LD, Collection+JSON and SIREN. There is a great post by Kevin Sookocheff, which succintly summarises the difference between four of them – it doesn’t cover JsonAPI - and concludes “there is no clear winner. It depends on the constraints in place on your API”
Right. I’m going to watch Troy Hunt making hacking child’s play for an hour, and then head to the airport. Thank you, Oslo. It’s been a blast.