已发布 / Published 2017-04-28T05:41:46+08:00

千天计划之第948天——salvage

The future is just another name of our imagination. The goal is to improve your present actions.


一个人需要隐藏多少秘密
才能巧妙地度过一生


图片


这佛光闪闪的高原
三步两步便是天堂


却仍有那么多人
因心事过重
而走不动


——六世达赖喇嘛 仓央嘉措




 编 程 




开启读书模式


《了不起的Node.js——讲JavaScript进行到底》

Smarshing Node.js:JavaScript Everywhere


CHAPTER 4


Node中的JavaScript


Node.js除了提供和浏览器一样的基本语言之外,还在语言基础上提供了够坚强大网络应用所需的API。


global对象——浏览器中指window对象,以全局形式暴露,非常实用;


模块系统——Node内置了很多实用的模块作为基础的工具集来帮助构建现代应用;


暴露API——在默认情况下,每个模块都会暴露出一个空对象,要让模块暴露一个API成为require调用的返回值,就要依靠moduleexports这两个全局变量;


事件——Node.js中的基础API之一就是EventEmitter,无论是在Node还是在浏览器中,大量代码都依赖于所监听或者分发的事件,事件是Node非阻塞设计的重要体现,Node通常不会直接返回数据,而是采用分发事件来传递数据的方式;


buffer——除了模块之外,Node还弥补了语言另外一个不足之处,就是对二进制数据的处理。buffer是一个表示固定内存分配的全局对象,也就是说,要放到缓冲区中的字节数需要提前定下,它就好比是一个由八位字节元素组成的数组,可以有效地在JavaScript中表示二进制数据,作用是可以对数据进行编码转换。在Node.js中,绝大部分进行数据IO操作的API都用buffer来接收和返回数据。



小结


Node.js中JavaScript的一些用法、常用API、基础概念。



 英 语 




把正确的小事坚持下去


 

 

《英语写作手册——风格的要素:

   The Elements of Style》


第四章:《常被误用的单词和短语——

words and expressions commonly misused》



1. devide into

不要与composed  of 搞混


Plays are divided into acts.

Poems are composed of stanzas.


An apple, halved, is divided into sections.

An apple is composed of seeds, flesh and skin.



2. due to

在正确的用法中,与attributable to 同义

做状语,不严谨时,可替代through, because of, owning to



3. each and everyone

小摊贩的行话,除会话外避免使用


It should be a lesson to each and every one of us.


修正:


It should be a lesson to every one of us.



4. effect

作名词时,指结果,=result

作动词时,指带来,造成,完成, =bring about


作为名词,是随意用于对时尚、音乐、会话和其他艺术的马虎描述中


a Southwestern effect

effects in pale green

very delicate effects

subtle effects

a charming effect was produced


不要和affect混淆,= to influence



5. enormity

只应在表示极大的邪恶时使用

否则易引起误解



 #The Economsit#  #学个表达# 


Conventional wisdom says that in order to become world-class, we should only focus on one field. 
可以把the old saying换掉

Learning across multiple fields provides an information advantage (and therefore an innovation advantage) because most people focus on just one field.
论证观点

Counter to the conventional narrative that success of top performers can solely be explained by deliberate practice and specialization, 
让步状语

This thirst for knowledge allowed him to get exposed to a variety of subjects he had never necessarily learned about in school.
三个词:thirst, expose, allow


People ask themselves the following two questions in order to hone their skills: “What does this remind me of?” and “Why does it remind me of it?

By constantly looking at objects in your environment and material you read and asking yourself these two questions, you build the muscles in your brain that help you make connections across traditional boundaries.


这点可以运用在生活中——问题解剖刀


He shared it decades ago, but it’s just as relevant today:
对比



One fascinating study echoes this insight.
echo这个词很棒



Grow up. Focus on just one field.

Jack of all trades. Master of none.

两句俗语:劝人专注




 随 笔 




人生初体验


吐槽。


之前不是这样子的么,,,,,,


图片


图片


图片


怎么竟能这样。。。。。


图片


图片


配上昨天文章的图,很搞笑.......想起来就笑......哈哈哈哈哈


图片

图片

图片



不找了,历年考试周群里刷图......


可我真是发现每次自己复习都不是考的内容,往年试卷背的吐血,老师发的参考资料翻破,年年都是擦边做题,大部分课程都是记忆性知识,闭卷考试废话,每年出题都不一样,为什么我明明感觉你们考的不是重点好么。


可能是我没把课本读个三五遍吧......


但我更想说一直以来的缩写符号题哪里去了???


图片


我吭哧吭哧抄了好几遍......


好吧,多学点,没坏处。


貌似突然发现了接下来人生一年的理想——看课本,读英语。


不过,话说考前复习时,草地上旁边那几条小狗,真的很可爱:


图片

 



推荐阅读:http://www.jianshu.com/p/f1bbed8f7978


图片


上篇文章:千天计划之第949天——invariably