The rules of ownership are as follows: 1) The owner of a value is a variable 2) At any time, only a single owner is allowed 3) The value is lost once the owner goes out of scope #rust #ownership #rs
function monadConstructor() { return function unit(value) { let monad = Object.create(null); monad.bind = function (fn) { return fn(value); }; return monad; } } #javascript #monad #functionalprogramming #react #vue #inferno
1
Promises are an easily repeatable mechanism for encapsulating and composing future values #javascript #node #deno
3
2
A constant is not a value that doesn’t change, it is a variable that cannot be reassigned #javascript #node #deno
1
1
each iteration of the event-loop is called a "tick." For each tick, if an event is waiting on the queue, it's taken off and executed. These events are your function callbacks #javascript #nodejs #deno
2
Writing the test first is fun because you’re writing something that doesn’t work and then you make it work #javascript #testdrivendevelopment #tdd #react #vue #inferno
Es6 class will be mandatory for making #vuejs components? The object api isn’t going to be the “standard” way anymore? @evanyou @vuejs #javascript #doesntneedclasses Без «классов» !!!!
1
<img srcset=“...” /> NO!!! <picture> <source media=“...” srcset=“...” /> <img src=“...” /> </picture> YES!!! #javacript #html #picture
Аневризма retweeted
This is one the most important DX improvements for Vue to date. Thanks @octref for the stellar work!
Vetur 0.16.0 is available with template interpolation completion and child component tag/attribute completion for #vuejs. Read the changelog for details: github.com/vuejs/vetur/blob/…
8
86
474
Don’t use the “width” property on your flex-items, you are gonna use flex-basis #css #flex #flexbox
For some reason, I’ve stopped using #webstorm in favor of #vscode Just started playing with it until I’ve been playing every day 🤣🤣 #javascript #vuejs #reactjs
1
async function aFn() { try { await otherAsyncFn(); } catch(err) { // some error } } === function aFn() { return otherAsyncFn() .catch(err => { //some error}); } #javacript #asyncfunction #asyncawait
The more code you refactor, the more senior you become #javascript
2
Аневризма retweeted
Maybe it's time you #DeleteFacebook? Contrary to their privacy policy jargon, "if you use [Facebook] at all, you don't have much control over what FB itself sees about you." @inafried explains the disturbing where, how & why they collect your data. axios.com/facebook-personal-…
56
379
755