Matthew Adams's Blog

Avoid circular dependencies with AngularJS Directives

by Matthew Adams

A problem you may encounter if you try to implement my previous example in your own code, is that your implementation of templateRepository cannot (apparently) make use of $templateCache, because angular will throw a circular dependency error. To avoid this, you can inject the $injector service into the templateRepository, and defer the dependency resolution until […]


It is quite common in our applications to retrieve a resource via a link, and then find a view to render that resource, based on its content type. For example, we might have resources like this: And one view that binds to that first resource type And another that binds to that second resource type […]


Azure Weekly Newsletter

by Matthew Adams

Endjin have just released the new Azure Weekly newsletter – a weekly dose of all the news that you may have missed, tips, how-tos and useful resource in one handy newsletter. You can sign up here.


Bootstrap 3 At A Glance – Part One – Motivations

by Matthew Adams

In August 2013, Version 3 of the Bootstrap framework was released. The first version, developed by Mark Otto and Jacob Thornton at Twitter in 2011, was a pure CSS library. It was designed to provide a solid foundation for the most common user interface tasks that front-end developers faced every day, including grids and page […]


We’ve come a long way in the first ten instalments of our series. We’ve learned a bit about computer architecture – all the way up from the transistors that form the physical basis of modern digital computers, to more abstract concepts like data memory, instructions and I/O. We’ve looked at how we can encode information […]


We left off with a couple of exercises last time. Exercise 1: Remember the exercises in our first introduction to algorithms? Can you implement functions in F# for the sum of an arithmetic series and the sum of a geometric series? Remember that this is the formula for an arithmetic series: where is the difference […]


Last time, we saw how to define a function in F#. We’re going to build on that this time, so it might be a good idea to go over the key points: 1) A function takes exactly one input (parameter) and produces one output (result). We can write this as 2) We can bind a […]


In the last section we took a first look at logic, and started to build up some quite complex expressions. We noted that it would be useful if we could somehow bind those expressions to a shorthand so that we didn’t have to keep typing them all out every time we wanted to use them […]


Example of a full-width bleed using Bootstrap 3

by Matthew Adams

In my previous post, I listed some top tips for getting started with bootstrap, and then produced a basic example layout with box-outs, sidebars and bleeds. One of the most common questions that has come from that post is “how do I achieve a section with a full-width bleed (e.g. for a full-width background), part […]


We’ve already seen conditional statements like “if this statement is true then…” and “while this statement is true, do…” In this section, we’re going to look inside these kinds of statements, and focus on the bit that is just about truth and falsity. As usual, the approach will be to learn how to refine a […]


1 2 3 5