- TypeScript
- Decorators
- Type Inference
- Metaprogramming
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
Business as Usual | Systematic Improvements | ||
---|---|---|---|
== Impact == | |||
Immediate impact | Usual | Usually none | |
Changes in code quality | Slow | Can be fast | |
Risk of results | Usual | High (usually uncertain) | |
Leverage | None-to-low | Potentially high | |
Available | Always | During calm times | |
== Nature == | |||
Typical Tasks | Features, bugs, maintenance | Research, devenv, architecture, various | |
Uncertainty / risk of estimations | Usual (low for established teams) | High |
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
import { interval, Observable, Subject } from 'rxjs'; | |
import { filter, mapTo, pairwise, takeUntil } from 'rxjs/operators'; | |
export class ProgressGenerator { | |
// I prefer explicit `destroyed$` over `untilDestroyed(this)` solutions | |
private readonly destroyed$ = new Subject<void>(); | |
private readonly startEnded$: Observable<void>; | |
// This will be consumed externally. | |
readonly progress$ = new Subject<number>(); |