Skip to content

Instantly share code, notes, and snippets.

View AustinMatherne's full-sized avatar

Austin Matherne AustinMatherne

  • Remote
View GitHub Profile
@AustinMatherne
AustinMatherne / string-enum-typed-actions.ts
Created September 29, 2017 04:57
String Enum Typed Actions
// counter.actions.ts
import { Action } from '@ngrx/store';
export const enum CounterTypes {
INCREMENT = '[Counter] Increment';
DECREMENT = '[Counter] Decrement';
RESET = '[Counter] Reset';
};
export class Increment implements Action {

Mighty Principles of Development

  1. Modularity: "Do one thing and do it well." Feature creep is the death of software.
  2. Simplicity: Complexity is the mother of all evil. Cleverness is not wisdom, it's a shortsighted indulgence.
  3. Clarity: Writing code is easy, reading code is hard. Easily grokked code is beautiful.
  4. Testability: Untested code is broken code. Never assume otherwise.