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


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


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) {


Computed property names

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

A Visual Introduction to Machine Learning


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


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.

<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 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>