Andy Blog

Full-stack developer

Create Angular v2+ project (3) - forms

Introduction Angular Forms provide a framework support for two-way data binding, change tracking, validation and error handling. There are two approaches to build forms in Angular. template-dr...

Create Angular v2+ project (2) - typescript

Introduction check version New features Pick vs Partial Partial and Pick are mapped types. They are used to create a new type using part of original type. e.g. interface PartialTask { id: stri...

Create Angular v2+ project (1) - introduction

Introduction Angular is a framework for building client applications in HTML and either JavaScript or a language like TypeScript that compiles to JavaScript. The framework consists of several libr...

Best practices for designing RESTful API

Naming convention Avoid camel caps because urls are not case sentitive. e.g. api.service.com/helloWorld/userId/x api.service.com/helloworld/userid/x are forwarded to same address. The norm...

AngularJS v1 tutorial (1) - introduction

Download source Project configuration Create an empty project folder Install via npm Create package.json npm init Edit package.json { "name": "test", "version": "1.0.0", "description"...

Autofac Tutorial

Introduction Workflow add autofac package via nuget create an IOC container var builder = new ContainerBuilder(); var container = builder.Build(); register ...

Command & Rollback design pattern practice

Outline Introduction Mamonto pattern Workflow Benefits Implementation steps Sample code Command pattern Workflow Benefits Impleme...

ASP.NET authentication

Form authentication ASP.NET create a windows form project web.config <authentication mode="Forms"> <forms name=".ADAuthCookie" timeout="10" ...

Asynchronous programming tutorial in Angular

Introduction Asynchronous programming is an important technique to create web applications. It allows units of work to run separately from the primary application thread and makes main application ...

Moq mocking tutorial

Introduction Mocking technique is very useful for testing purpose. Moq is a third party framework that enables us to create the dummy class and dummy implementation. This is very useful in the scen...