- Modularity: "Do one thing and do it well." Feature creep is the death of software.
- Simplicity: Complexity is the mother of all evil. Cleverness is not wisdom, it's a shortsighted indulgence.
- Clarity: Writing code is easy, reading code is hard. Easily grokked code is beautiful.
- Testability: Untested code is broken code. Never assume otherwise.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 { |
NewerOlder