閱畢日期:2016/3
這本書在新北市圖書館還蠻熱門的,蠻多人在排隊,記得我是去年年底排的,今年終於排到了。
裏面介紹不少 AWS 的服務與技巧,是蠻實用的一本書,但是內容有點過時了,建議在使用這本書的時候,要對照目前最新的 console 與文件。在看這本書之前看了不少 AWS 提供的文件,但是仍然有些技巧或限制是沒注意到或沒看到的,看這本書真的讓我受益良多。
閱畢日期:2016/3
這本書在新北市圖書館還蠻熱門的,蠻多人在排隊,記得我是去年年底排的,今年終於排到了。
裏面介紹不少 AWS 的服務與技巧,是蠻實用的一本書,但是內容有點過時了,建議在使用這本書的時候,要對照目前最新的 console 與文件。在看這本書之前看了不少 AWS 提供的文件,但是仍然有些技巧或限制是沒注意到或沒看到的,看這本書真的讓我受益良多。
npm install -g express-generator
npm install --save express
express -c stylus -e your_project
var assert = require('assert');
var expected, current;
before(function() {
expected = ['a', 'b', 'c'];
});
describe('String#split', function() {
beforeEach(function() {
current = 'a,b,c'.split(',');
});
it('should return an array', function() {
assert(Array.isArray(current));
});
it('should return the same array', function() {
assert.equal(expected.length, current.length, 'array have equal length');
for(var i=0; i<expected.length; i++) {
assert.equal(expected[i], current[i], i+'element is equal');
}
});
});
var expect = require('expect.js');
var expected, current;
before(function() {
expected = ['a', 'b', 'c'];
});
describe('String#split', function() {
beforeEach(function() {
current = 'a,b,c'.split(',');
});
it('should return an array', function() {
expect(Array.isArray(current)).to.be.true;
});
it('should return the same array', function() {
expect(expected.length).equal(current.length);
for(var i=0; i<expected.length; i++) {
expect(expected[i]).equal(current[i]);
}
});
});
node --debug-brk your_program.js
node --debug your_program.js