原題:BASE: An Acid Alternative 著者:Dan Pritchett, eBay 原文: BASE: AN ACID ALTERNATIVE - ACM Queue (PDF Version)
This article is translated by @ono_matope. Please contact me if any problem.
原題:BASE: An Acid Alternative 著者:Dan Pritchett, eBay 原文: BASE: AN ACID ALTERNATIVE - ACM Queue (PDF Version)
This article is translated by @ono_matope. Please contact me if any problem.
# Since CoffeeScript wraps everything in a closure by default, the module | |
# definition function pattern that Marionette normally uses is unnecessary. | |
# (And cumbersome with having to indent everything.) Instead, creating the | |
# module at the very begining makes it available to everything in the file, and | |
# the initializers and exported classes can be added at the end of the file. | |
# (This relies on things like the App and Backbone being on window, but they | |
# already have to be for CoffeeScript-based code to work.) | |
# Create the module. | |
Foo = App.module 'Foo' |
サイズがあまりに大きくなってしまったので、gist ではなくて github 上で管理するようにしました。
https://github.com/Shinpeim/process-book
URL 変わっちゃうの申し訳ないんだけど、一覧性が高くなるのと pull req が受け取れるメリットのほうを取ります。せっかく読みにきてくれたのにひと手間かかっちゃってすみません。
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
// Generated on 2013-07-30 using generator-webapp 0.2.6 | |
'use strict'; | |
var LIVERELOAD_PORT = 35729; | |
var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT}); | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
// # Globbing | |
// for performance reasons we're only matching one level down: |
// buildSrc/src/main/groovy/JavaAptPlugin.groovy | |
class JavaAPT extends DefaultTask { | |
private File _destinationDir | |
def getDestinationDir(dir) { _destinationDir } | |
void setDestinationDir(dir) { | |
_destinationDir = dir | |
outputs.dir _destinationDir | |
} |
CoffeeScript 1.7 is shaping up to be a pretty kick-ass release with significant improvements. Here are the ones I'm most excited about, in order of my own excitement.
Years of being wished for, finally granted!
public class BitSet<T extends Enum<?>> { | |
private byte[] bytes; | |
@SafeVarargs | |
public BitSet(T... elements) { | |
bytes = new byte[elements.length / 8 + 1]; | |
} | |
private int bitMask(int ordinal) { |