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
Q

a ViewContainerRef is

A

A DOM element (container) where I can put your newly component as a sibling to this element

26
Q

a method on ViewContainerRef is

A

createEmbeddedView(tpl) where “tpl” is a in your current view

27
Q

you can declare a named template on your component

A

@ViewChild(‘tpl’) tpl; or @ViewChild(‘container’, { read: ViewContainerRef }) _vcr;

28
Q

We can use the ViewChild decorator to

A

…grab any element in our view and read it as ViewContainerRef

29
Q

You can inject a ___ and use its API

A

ChangeDetectorRef

30
Q

the detach() method

A

detaches the change detector from the change detector tree

31
Q

You can use the ___ decorator on a method in your component to listen for fine-grained parent changes

A

@HostListener(‘change’, [‘$event.target.checked’]) change( checked ) { …

32
Q

ngrx/store

A

Has a very cool Chrome DevTools plugin

33
Q

imports for ngrx

A

import { StoreDevtoolsModule } from ‘@ngrx/store-devtools’; import { StoreModule } from ‘@ngrx/store’;

34
Q

reducers are . . .

A

possible actions (in this case pure functions) for each property defined in the store

35
Q

Doomfist ultimate

A

Meteor Strike

36
Q

other new Doomfist stuff

A

Hand Cannon, Seismic Slam, Rising Uppercut, Rocket Punch

37
Q

with tagged union types

A

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
Q

Pinned Down

A

red; neutral; cost 1; spot a vehicle to remove a die (like Flank)

39
Q

Weapons Factory Alpha

A

battlefield; cost of first vehicle per turn is reduced by 1

40
Q

slow deck

A

as in, vehicle decks are slow decks

41
Q

Thermal Paint

A

yellow; hero; 2-cost weapon, no die - when activating, 1 damage to opponent character

42
Q

LRIK Sonic Cannon

A

red; neutral; 5-cost; big guns (up to 6 for 3 resources); if exhaust a character. don’t have to pay

43
Q

Roll On

A

gray; neutral; 0-cost; reroll a die up to 3 times

44
Q

Mace Windu

A

blue; hero; 16/22; lots of melee; action: remove this die to defeat an enemy character 2 or less HP

45
Q

Ezra Bridger

A

force-sensitive thief; yellow; hero; 7/10; may play blue upgrades; special: take 1 resource from opponent

46
Q

Master of the Council

A

blue hero upgrade; 4-cost; some big +-melees; special: “spend 2 to ready a character”

47
Q

binder card

A

a card that is not that good

48
Q

Thrawn

A

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
Q

Ruthless Tactics

A

red; villain; 0; resolve a die, increasing its value by the resource cost on it

50
Q

The Day is Ours

A

red; neutral; 2-cost; claim the battlefield even if it’s already claimed