Nitter
Аневризма
@aneurysmjs
Joined December 2013
Tweets
2,267
Following
46
Followers
173
Likes
487
111 Photos and videos
111 Photos and videos
Tweets
Tweets & Replies
Media
Search
Load newest
Аневризма
@aneurysmjs
23 Mar 2017
the router is that 'thing' that parses the url and based on that assembles your application
#javascript
#routing
#angular2
#ng2router
Аневризма
@aneurysmjs
22 Mar 2017
let obj = { oddType: +this.match[`CompetitorsType${this.odd}`] || 'X' } // +this.. coerces to number, otherwise 'X',
#javascript
#es2015
1
2
Аневризма
@aneurysmjs
22 Mar 2017
"no component should be allowed to mutate any data that it doesn't own" -
@teropa
for the third time.
#javascript
#componentarchitecture
1
Аневризма
@aneurysmjs
21 Mar 2017
the key thing about declarative knowledge is it says that something is true, but doesn't tell you how to do it
#computerscience
#javascript
Аневризма
@aneurysmjs
21 Mar 2017
imports: [SomeModule] List of modules to import into. all from the imported modules is available to all of its declarations
#angular2
#ng2
Аневризма
@aneurysmjs
20 Mar 2017
Why
#inheritance
if you have
#decorators
?
#javascript
1
Аневризма
@aneurysmjs
20 Mar 2017
a
#decorator
is just a
#function
that 'decorates' a target for example, another function or class
#javascript
#typescript
#angular2
1
Аневризма retweeted
Eric Elliott
@ericelliott_
18 Mar 2017
Want to learn more about WebAssembly? I've got you covered:
medium.com/javascript-scene/…
medium.com/javascript-scene/…
#wasm
#JavaScript
What is WebAssembly? The Dawn of a New Era
Why the future of the web platform looks brighter than ever.
medium.com
21
58
Аневризма
@aneurysmjs
19 Mar 2017
migrating from
#angularjs
to
#angular2
is easy if you don't depend on external libraries, otherwise you going to suffer!!!
#javascript
Аневризма
@aneurysmjs
19 Mar 2017
#javascript
Functions can use objects to remember results of previous operations, making it possible to avoid unnecessary work - memoization
Аневризма
@aneurysmjs
18 Mar 2017
#javascript
#es2015
import creates
#immutable
bindings export let c = 0 export () => c += 1 /// import {c} from './c' c += 1 //SyntaxError
Аневризма
@aneurysmjs
17 Mar 2017
const f = tweet => { let newTweet = tweet; newTweet.id = blabla; //BUG! mutating both tweet and newTweet };
#javascript
#mutate
is wrong
Аневризма
@aneurysmjs
16 Mar 2017
angular1.6, typescript2 and webpack2 project starter
github.com/vsternbach/angula…
#javascript
#typescript
#webpack
2
Аневризма
@aneurysmjs
16 Mar 2017
or you might do something like getFullYear.bind (new Date)() //2017
Аневризма
@aneurysmjs
16 Mar 2017
#javascript
you can't destructure let {getFullYear} = new Date() getFullYear() //Uncaught TypeError
getFullYear.call
(new Date) //2017
1
1
Аневризма
@aneurysmjs
16 Mar 2017
A callback is a function passed as a parameter to another function that performs an asynchronous operation.
#javascript
#asyncishard
Аневризма
@aneurysmjs
15 Mar 2017
"Lambda calculus is all about function composition"
#javascript
#functions
#functionalprogramming
#reactjs
#react
#es2017
6
Аневризма
@aneurysmjs
15 Mar 2017
#Metadata
tells
#Angular
how to process a class.
#javascript
#angular2
#decorators
#es2017
Аневризма
@aneurysmjs
14 Mar 2017
fetch API isn't part of
#javascript
? It just part of the
#browser
?
#omfg
Аневризма
@aneurysmjs
14 Mar 2017
2 ** 3 === Math.pow(2, 3)
#javascript
#es2016
1
Load more