Follow me on GitHub Follow me on Twitter

工作学习周总结#9

     

  本周工作背景:工作的第十一周,平稳而又紧张的工作周,公司最近因为接到了很大的项目而周六加班,Sprint的时间由两周改为了一周。

  最近比较大的问题是没有技术博客产出,原因是时间的匮乏,工作之外很多时间用在维护自己的的业余工程了。

  公司在前端方面转型为AngularJS架构,于是最近在工余时间也补充了一些AngularJS的知识。

  不同人所选择的学习方法不同,对于程序开发方面的知识,我选择的方法是:先上Stack Overflow
  


  看一看是否有推荐的书籍,如果没有的话就去Amazon上找一找。
  然后下载该书的电子版。。。(囊中羞涩)
  再配合一些Youtube上的教学视频,进行系统化的学习。

  选择了《Pro AngularJS》
  过掉了前两章,这两章并没有深入说一些AngularJS的知识,而是主要讲一个入门例子。
  近期会把前三章的东西串联起来做一个自己的例子。
 
  

      

  

  


  本周另外做的事就是进一步了解Unit Test.
  在此稍作总结:
  1.很多人不喜欢单元测试,很大程度上是因为他们在不应该修改或删除单元测试做了以上两种行为。
  2.Unit Test 三个原则: Making it trust worthy, Creating maintainable test,Creating Readble test.
  3.How to making it trustworthy: even the simplest code can have test, those test can have bug.
                     do not duplicated the logic.
  4.How to making it maintainable: avoid multiple assert.
avoid logic in test.
test only public stuff.
  5.How to making it readble: use const but not magic number. 
  
  

 

 

 

 
posted @ 2015-02-02 00:00  官文祥  阅读(173)  评论(1)    收藏  举报