What the Flux?! Let’s Redux. | &yet Blog

https://blog.andyet.com/2015/08/06/what-the-flux-lets-redux?utm_source=javascriptweekly&utm_medium=email

It doesn’t help you render stuff, it doesn’t tell you how to do routing, etc. It’s just about maintaining application state.

Everything that happens in your app is an “action”. These can be caused by users, browser events, or server events. Doesn’t matter. Everything that changes something in your app does it via an “action”.

You have one giant state object that represents all the state in your app. These are not special Models, or Collections, it’s just friggin’ objects, arrays, and primitives. No magic.

But a reduce function gets a starting state, the current value and returns the new state. That’s exactly what we want to do in response to actions. We get the starting state, the current action, and we return the new state.

You can re-produce exact current state of the app at any point, by having the starting state, and re-playing the actions that occurred.

io.js/CHANGELOG.md at master · nodejs/io.js

https://github.com/nodejs/io.js/blob/master/CHANGELOG.md

Reimplement Buffer on top of V8's Uint8Array
What is Buffer?

JavaScript is Unicode friendly but not nice to binary data. When dealing with TCP streams or the file system, it's necessary to handle octet streams.

A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.

const util = require('internal/util')
util.printDeprecationMessage('freelist module is deprecated.');

exports.xxx = function(a, b) {
  return exports._xxx(...);
};
exports._xxx = function(a, b) {

http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml

Computed property names

var a = {
  ["foo" + ++i]: i,
  ["foo" + ++i]: i,
  ["foo" + ++i]: i
};

A Visual Introduction to Machine Learning

http://www.r2d3.us/visual-intro-to-machine-learning-part-1/?utm_source=codrops

In machine learning, computers apply statistical learning techniques to automatically identify patterns in data.

categorizing data = classification

Dimensions in a data set are called features, predictors, or variables.

Trello CSS Guide

https://gist.github.com/bobbygrace/9e961e8982f42eb91b80?utm_source=html5weekly&utm_medium=email

Trello uses just imports, variables and vendor-prefix-mixins.
Nesting just for states (:hover)

Encapsulate components by namespacing .component-descendant-descendant

Pros: low specificity, refactoring

Use classes for selectors, not IDs or element selectors.

.mod- prefix for modifiers. _We use ._big_
special modifiers for state .is-xxx

Components shouldn’t know anything about each other.

DON'T
<div class="member-list">
  <div class="member-list-item">
    <p class="member-list-item-name">Pat</p>
    <a href="#" class="member-list-item-button button">Add</a>
  </div>
</div>
DO
<div class="member-list">
  <div class="member-list-item">
    <p class="member-list-item-name">Gumby</p>
    <div class="member-list-item-action">
      <a href="#" class="button mod-small">Add</a>
    </div>
  </div>
</div>