Guava Learning By logan 发表于 2016-03-16 #Guava 整理学习 wiki:https://github.com/google/guava/wiki ##Guava 函数式编程 在FunctionalExplained一节,guava上来就比较了函数式和常规式的写法,并且指出了函数式 Even using static imports, even if the Function and the Predicate declarations are moved to a different file, the first implementation is less concise, less readable, and less efficient. 除非你能绝对确保以下两点: Use of functional idioms will result in net savings of lines of code for your entire project. In the example above, the "functional" version used 11 lines, the imperative version 6. Moving the definition of a function to another file, or a constant, does not help. For efficiency, you need a lazily computed view of the transformed collection and cannot settle for an explicitly computed collection. Additionally, you have read and reread Effective Java, item 55, and besides following those instructions, you have actually done benchmarking to prove that this version is faster, and can cite numbers to prove it. 最后再次强调: Please be sure, when using Guava's functional utilities, that the traditional imperative way of doing things isn't more readable. Try writing it out. Was that so bad? Was that more readable than the preposterously awkward functional approach you were about to try? Read More
如何使用 Jacman 主题 By logan 发表于 2015-09-20 ##主题介绍 Jekyll-Jacman 是为 Jekyll 设计的一款清新且具有响应式的主题,拥有更丰富的特性并支持了很多的国内服务。Jacman 始于 Jacman 移植而来。 Read More
Hello World By logan 发表于 2015-04-20 hello World jekyll relevant : https://pages.github.com/ Learn how to set up jekyll: https://jekyllrb.com/docs/quickstart/ http://jekyllthemes.org/ kramdown syntax: http://kramdown.gettalong.org/syntax.html markdown syntax: http://wowubuntu.com/markdown/ Read More