Splitting Angular Forms with ControlValueAccessor

With Angular, it is easy to split things up into small manageable components. However, sometimes you have large forms that make your templates large and cumbersome. Let’s take a look at an example: This template is backed by a basic component: In this form, we have two distinct sets of data combined in a single… Read More »

Angular 4 *ngIf/Else

As you may know it wasn’t that many months ago that Angular 2 left RC and went Full Release(back in August). We are already upon the next big release of Angular with v4. Angular 4.0.0-rc.1 was released in late February with rc.2 hot on it’s heels 6 days later, today, March 2nd. There are lots… Read More »

ISS-Tracking in Angular2

So a while back I created little app, while learning Angular 1.x, that tracked the International Space Station in near-real-time. I have since updated this to use Angular2. Due to Github now running HTTPS, in Google Chrome you may have to click the button in the address bar to ‘Load unsafe scripts’ because the API… Read More »

List Shuffle in Elm

Since I started working with Elm a couple weeks ago I’ve been impressed with the language as a whole and especially the tooling. Now I’m new to the functional programming arena and one of the areas that tripped me up besides the JSON decoding is randomness. Generating randomness in a functional language can be quite… Read More »

Category: Elm

Decoding JSON in Elm

I recently starting looking at Elm. If you’ve never used Elm, it is a great front-end functional language with fantastic tooling. I highly recommend looking into it. However, if you come from an object-oriented, imperative language such as C# (then your JavaScript is most likely written in a similar manner), working in a language like… Read More »

Log4Net and PostgreSQL

In this short tutorial, we will look at how to create a custom appender to work with Log4Net and PostgreSQL. Log4Net is a great tool for handling logging in .NET applications and PostgreSQL is a great open source database. The built in AdoNetAppender in Log4Net can handle many types of databases, but if your like… Read More »

Design Patterns: Decorator Pattern

The Decorator Pattern enables us to dynamically add functionality to a class without modifying the class. We extend or decorate a class with other classes that essentially acts as a wrapper. A class can have as many decorators as necessary that wrap additional functionality onto a class. An argument could be made, why not include… Read More »

Design Patterns: Observer Pattern

In our look at Design Patterns, our next pattern is the Observer Pattern. The Observer Pattern creates a one-to-many relationship between the Observable and the Observers. This enables one part of your code to update or notify another part of code that something has happened. There are a few different ways to go about setting… Read More »

Design Patterns: Strategy Pattern

Design Patterns are simply that, patterns used to solve common problems in designing software and provide us a with the answers to hard lessons learned by developers before us. Not only this, but design patterns also enable us to communicate succinctly with other developers on the strategy used to accomplish tasks. It is much easier… Read More »

C# Asynchronous Programming Part3

In the last two posts we took a look at asynchronous programming in C# using both async/await for asynchronous, but single threaded, programming and using Task.Run as shorthand for Task.Factory.StartNew for multi-threaded programming. Today we are going to briefly look at a few other methods of writing asynchronous code. Parallel.ForEach Parallel.ForEach is an easy method… Read More »