昨晚在歌手最新一季里面,毛毛演唱了一首“一荤一素”,用来献给他因癌症去世的母亲。整首歌用很简单的词,诉说着自己对母亲的思念,柔美的调子里面寄托着回忆和哀伤,让听者动容。这首歌我听说过,但没完整的听过,第一次听心里先是一震,再多听几次,眼泪就开始止不住的流。
珍惜
好久没写日记了,今天想起来写是因为一件让我很痛心的事,我的一个表弟因为癌症去世了。小时候经常一起玩,特别喜欢跟他开玩笑,一个非常善良呆萌的小男孩,但是自从我出来工作之后,我已经有很长一段时间没有见过他了,去年他得了癌症,医生告知他只有一年的时间,我得知后,心里一直堵着,他一直在坚持着,但是最后这一天还是到来了。
新西兰--一个被上帝眷顾的地方
想读的书单
技术:
The Phoenix project
Agile software development principle patterns and practice
Continuous delivery
Microsoft application architecture guide
Extreme programming
非技术:
明朝那些事
联想风云
围城
Redis Inside(1)
ElasticSearch Inside(1)
Java Collection 源码阅读2
Happen before
https://stackoverflow.com/questions/14329064/synchronized-and-the-scope-of-visibility
Atomic
http://www.jianshu.com/p/0f1b4ae625e5
Monitor/Condition
Object, wait, notify, notifiyAll (the last two must be called when we get the object lock)
ReentranceLock, Condition (the later one must be called when we get the reentrance lock). The condition use “LockSupport.park and unpark” to suspend thread and wakeup thread
Java Collection 源码阅读1
How fast-fail happened in non-synced collections
(why modCount is not volatile: http://www.jianshu.com/p/d9ee4b075d5a )
Differences between Iterator and ListIterator
Methods of Iterator (for list and set):
hasNext()
next()
remove()
Java 内存知识
Integer contains meta data, not only the int value. The size is usually 4 times of int. An array is bigger since it needs to store the length
HashSet is a wrapper of HashMap. An empty HashSet/HashMap already contains 16 objects (default size) and the size is more 100 bytes. Everytime we do “put”, it will create new object “Entry”.
HashTable is synchronized and HashMap is not. Vector (also Stack) is synchronized and ArrayList is not.
