New Flashcards

1
Q

Angular 4.2 - new

A

reusable animations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

invoke reusable animations via

A

the useAnimation() function ie useAnimation(fadeAnimation, { params: {} })

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

dynamic imports in TS 2.14 allows

A

an even deeper layer of lazy loading

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

taskr

A

a fast, concurrency-based task automation tool (JS) (26 contributors)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

await is like . . .

A

waiting for a promise (if successful will return value)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

async/await supported since

A

TypeScript 1.7 (ES6 only); TS 2.1: ES3/5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

an async function should always return

A

a Promise<>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what do you call generating code for older EC* versions

A

downleveling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what do you need to polyfill if targeting ES3/5

A

Promise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

example of a delay() function that can be await’ed

A

function delay(ms) { return new Promise(function (resolve) { setTimeout(resolve, ms); }); }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

example of staggering output in the console

A

async function asyncAwait() { console.log(“Knock, knock!”); await delay(1000); console.log(“Who’s there?”); await delay(1000); console.log(“async/await!”); }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

TS2 lets you specify ___ types

A

non-nullable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

for stricter null checking in TS2

A

you can enable the strictNullChecks compiler option

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

after turning on strict null checking

A

we need to explicitly opt into nullability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

how to opt in to nullability

A

construct a union type containing the null or undefined types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

If we make the lastName property optional by appending a ? to its name

A

the undefined type is automatically added to the union type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

TS compiler will now complain if . . .

A

you access a property or invoke a nullable function - you’ll have to use null guards

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Recomposer

A

can think of as lodash for React

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Loopback

A

node.js framework; makes it easy to build modern applications that require complex integrations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

axios

A

promise based HTTP client for the browser and node.js

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Normalizr

A

a utility that normalizes data with nested objects

22
Q

a saga is . . .

A

like a separate thread in your application that’s solely responsible for side effects

23
Q

redux-saga

A

a library that aims to make side effects (i.e. asynchronous things like data fetching and impure things like accessing the browser cache) in React/Redux applications easier

24
Q

interesting pattern-matching technique (lo-fi version is a switch statement)

A

interface NumberPattern { One: () => T; Two: () => T; Three: () => T; Other: (n: number) => T; } interface NumberMatcher { match(p: NumberPattern): T; }

25
a ViewContainerRef is
A DOM element (container) where I can put your newly component as a sibling to this element
26
a method on ViewContainerRef is
createEmbeddedView(tpl) where "tpl" is a in your current view
27
you can declare a named template on your component
@ViewChild('tpl') tpl; or @ViewChild('container', { read: ViewContainerRef }) \_vcr;
28
We can use the ViewChild decorator to
...grab any element in our view and read it as ViewContainerRef
29
You can inject a ___ and use its API
ChangeDetectorRef
30
the detach() method
detaches the change detector from the change detector tree
31
You can use the ___ decorator on a method in your component to listen for fine-grained parent changes
@HostListener('change', ['$event.target.checked']) change( checked ) { ...
32
ngrx/store
Has a very cool Chrome DevTools plugin
33
imports for ngrx
import { StoreDevtoolsModule } from '@ngrx/store-devtools'; import { StoreModule } from '@ngrx/store';
34
reducers are . . .
possible actions (in this case pure functions) for each property defined in the store
35
Doomfist ultimate
Meteor Strike
36
other new Doomfist stuff
Hand Cannon, Seismic Slam, Rising Uppercut, Rocket Punch
37
with tagged union types
With tagged union types, if you have a switch or if statement with branches for every possible value, you can make compiler to check that all cases are handled. For example, if you turn on --noImplicitReturns and remove case "circle" from area() function in this example, you get 'Not all code paths return a value' error
38
Pinned Down
red; neutral; cost 1; spot a vehicle to remove a die (like Flank)
39
Weapons Factory Alpha
battlefield; cost of first vehicle per turn is reduced by 1
40
slow deck
as in, vehicle decks are slow decks
41
Thermal Paint
yellow; hero; 2-cost weapon, no die - when activating, 1 damage to opponent character
42
LRIK Sonic Cannon
red; neutral; 5-cost; big guns (up to 6 for 3 resources); if exhaust a character. don't have to pay
43
Roll On
gray; neutral; 0-cost; reroll a die up to 3 times
44
Mace Windu
blue; hero; 16/22; lots of melee; action: remove this die to defeat an enemy character 2 or less HP
45
Ezra Bridger
force-sensitive thief; yellow; hero; 7/10; may play blue upgrades; special: take 1 resource from opponent
46
Master of the Council
blue hero upgrade; 4-cost; some big +-melees; special: "spend 2 to ready a character"
47
binder card
a card that is not that good
48
Thrawn
red villain; 12hp; 14/17; has a 2-resource; on activation, can mill your opponent's hand for a card costing a number that you choose. Great power! But expensive
49
Ruthless Tactics
red; villain; 0; resolve a die, increasing its value by the resource cost on it
50
The Day is Ours
red; neutral; 2-cost; claim the battlefield even if it's already claimed