---
layout: post
title: Weekly
category: Weekly
author: 东岳

---

# Weekly 11/26 - 12/02

周报第九期

- 催稿人:
  [@arrowrowe][gh-arrow]
- 交稿人:
  [@ComMouse][gh-cm]
  [@arrowrowe][gh-arrow]
  [@at15][gh-at15]
  [@LukeXuan][gh-luke]
  [@xsfour][gh-xsfour]

[gh-arrow]: https://github.com/arrowrowe
[gh-cm]: https://github.com/ComMouse
[gh-at15]: https://github.com/at15
[gh-luke]: https://github.com/LukeXuan
[gh-xsfour]: https://github.com/xsfour

## 阅读

- [RESTFUL API 安全设计指南](http://drops.wooyun.org/web/9737)
- [前端加密](http://www.cnblogs.com/index-html/p/4999897.html)
- [用canvas写h5画图](http://www.williammalone.com/articles/create-html5-canvas-javascript-drawing-app/), 这个人博客里有好几篇相关的文章.
- [前端移动开发收藏夹](https://github.com/hoosin/mobile-web-favorites)

## 项目

### 前端

- [Move.js](https://github.com/visionmedia/move.js), a CSS3 JavaScript animation framework.
- [AdminLTE](https://almsaeedstudio.com/): Admin dashboard & control panel theme based on Bootstrap 3.
- [一个 PHP 的 CMS](http://statamic.com/), 看 PHP7 的 hashtag 时无意看到的, 看上去不错, 支持文章的历史.

### 杂项

- [A Simulation In Emoji](http://ncase.me/emoji-prototype/). This (prototype) is a tool that lets you _simulate systems of the world_. In emoji.
- [bwapi](https://github.com/bwapi/bwapi), 星际争霸 AI.

## 工具

### Node-related

- [Updtr](https://github.com/peerigon/updtr) updates outdated npm modules with zero pain™.
- [Forkability](https://github.com/basicallydan/forkability), 检查你的repo可fork性如何.

### 其他

- [Docx to HTML](https://github.com/mwilliamson/python-mammoth), thanks to @gaocegege.

## 新闻

- [PHP7 正式发布](https://github.com/php/php-src/releases/tag/php-7.0.0)
- [PHP7 贡献者列表](http://devzone.zend.com/6956/php-7-core-contributors-thankyou/)

## 专题

### Identicon Generator

> Just like Gravatar.

- [Identicon generator for PHP](https://github.com/yzalis/Identicon)
- [RubyIdenticon](https://github.com/chrisbranson/ruby_identicon)
- [Blockies](https://github.com/download13/blockies)

### Editors

#### Atom

I use atom for most **script** and **text** editing. It features coffee-script and the active eco system. But it terrifies users with its **poor performance** in loading and editing large files.

> --[@LukeXuan][gh-luke]

See also [Atom packages in Weekly 2015/11/11](https://github.com/dyweb/web-stuff/blob/master/weekly/2015/1111.md#开发者工具).

#### Visual Studio Code

[Visual Studio Code](https://code.visualstudio.com/) is a multi-platform code editor for [various languages](https://code.visualstudio.com/docs/languages/overview). (Same as Atom and Sublime.)

It supports [extensions](https://code.visualstudio.com/docs/extensions/overview), though since not very long ago. As you can see, the download numbers in its [marketplace](https://marketplace.visualstudio.com/#VSCode) are low, compared to Atom's and Sublime's. The good news is, you can write your own extension instead of almost always finding someone else has done it for Atom or Sublime.

> --[@arrowrowe][gh-arrow]

I am using vscode for most of my text related work it has little different with sublime and atom, and it does not have spell check. But it works well with C# and is light weight.

> --[@at15][gh-at15]

#### Vim

- [VIM Adventures](http://vim-adventures.com/)

### [Introduction to Testing Node.js](https://www.youtube.com/watch?v=u2XCdkL4bWI)

> 油管上关于 Node 的测试的一个讲座, 时长半小时. 以下是部分内容.

#### Testing Patterns
- **Unit**: Small tests covering individual functions. 单个函数的输入输出.
- **Integration**: Integrated modules (combined functionality). 模块合作.
- **Functional**: Focused on end result of large actions. 规模较大的行为的最终输出.
- **Acceptance**: Typically client-side, end-to-end testing. 用户向.

> ~~讲完 Testing Patterns 之后似乎就是以 Mocha 为例的一些常规测试写法了...~~

> ~~原来 Mocha 发音是摩卡呀 - -... 一直念抹茶呢 - -......~~

> 主讲人刚开始 mock 时举的例子是改 `require.cache`, 后来讲了 rewire 和 sinon 等等.

> 最后的 Q&A 环节值得听.
