async function aF() { return 89; } function aF() { return Promise.resolve(89); } aF().then(r => r === 89); #async functions #javascript
Remember, "this" refers to the object that the method is called on. #javascript
a covered query is where the query itself can be satisfied entirely with an index and hence, zero documents needs to be inspected. #mongodb
"if you can satisfy a query entirely from the index, that's going to make the query much faster" #mongodb #coveredqueries #javascript
1
why 'controllerAs' when the deault is the '$ctrl'? it won't collide with anything #javascript #angularjs #controllerAs syntax is death
an index becomes "multikey" when the first document gets added and has as its value for one of the keys and array #mongodb #indexing #nosql
_id is always presents when you get indexes and you can't delete it #mongodb #indexes #indexing #javascript #nosql
1
1
if your function operates on outside variables, return a copy instead of the original - @_ericelliott god damn it #javascript #functions
in # javascript # objects are #arrays, they're associative arrays, basically being a list of key-value pairs
1
<img src="{{imageUrl}}" /> //interpolation <img [src]="imageUrl" /> // property binding #angular2 #javascript
1
Rx.Observable.fromEvent(div, 'click') .filter(c => c.clientX > window.innerWidth / 2) .take(10) .subscribe(c => log(c.clientX)) #rxjs
If an action has impact outside of the scope where it happens, we call this a "side effect". #javascript #reactiveprogramming #rxjs
3
4
Аневризма retweeted
Use the Webpack Dashboard to Monitor Webpack Operations - #JavaScript lesson by @mykola #free #new bit.ly/2by0g7R
1
27
51
most of your logic should exist outside your #react component #reactjs #testing #javascript
1
the $and operator allows us to specify multiple constraints on the same field #mongodb #nosql
2
1
#monitoring is the action of observing and checking the behavior and outputs of a system and its components over time. #javascript
Аневризма retweeted
Beyond Memory Leaks in #JavaScript — Medium buff.ly/2biyLyZ
2
2