design patterns

A collection of 4 post

Handling .Net's model state with ValidationFilter attribute

In this article we explore creation of a C# method attribute to process your model objects and throw and return a 422 HTTP status code if the model validation fails. DRY.

Resolving AngularJS $http promises in services vs. controllers

Should you be resolving AngularJS $http promises in services or controllers? Which one is better?

Dynamically resolving function shared arguments in JavaScript

How to dynamically pass an arbitrary amount of function arguments to a JS function if we don't know in advance how many we'll have to pass?

Returning value from fragment into parent activity on Android

How to pass a value from a fragment back into the parent activity that initialized it in the first place?