Life is like a Markov chain,
         your future only depends on what you are doing now,
                               and independent of your past.
摘要: Pull Request 是指开发者在本地对源代码进行更改后,向 GitHub中托管的 Git 仓库请求合并的功能。 GitHub 的 Pull Request 不但能轻松查看源代码的前后差别,还可以对指定的一行代码进行评论。 任务管理和 BUG 报告可以 通过 Issue 进行交互。如果想让特定用 阅读全文
posted @ 2018-03-18 18:26 Hu_Yan 阅读(800) 评论(0) 推荐(0) 编辑
摘要: 一个复杂的软件不但要有合理的软件架构(Software Architecture)、软件设计与实现(Software Design, Implementation and Debug),还要有各种文件和数据来描述各个程序文件之间的依赖关系、编译参数、链接参数,等等。 源代码管理——Source Co 阅读全文
posted @ 2018-03-18 16:05 Hu_Yan 阅读(230) 评论(0) 推荐(0) 编辑
摘要: A web browser lets a user request a resource. The web server gets the request, finds the resource, and returns something to the user. The browser's ot 阅读全文
posted @ 2018-03-14 23:29 Hu_Yan 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 单一继承的特点是单纯的树结构,继承关系单纯。 多重继承有以下两个优点: 很自然地做到了单一继承的扩展; 可以继承多个类的功能。 多重继承会导致下列 3 个问题。 结构复杂化 优先顺序模糊 功能冲突 因为多重继承有多个父类,所以当不同父类中有相同的方法时就会产生冲突。 从大的方面来看,编程语言可以分为 阅读全文
posted @ 2018-03-14 22:06 Hu_Yan 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 行为参数化,一个处理频繁改变需求的软件开发模式。原则:在编写类似代码之后,尝试将其抽象化。 方法1:为方法增加参数。 方法2:定义一族算法,把它们封装起来(称为"策略"),然后在运行时选择一个算法。 行为参数化:让方法接受多种行为(或战略)作为参数,并在内部使用,来完成不同的行为。 Strategy 阅读全文
posted @ 2018-03-11 23:25 Hu_Yan 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 流是一系列数据项,一次只生成一项。 Java 8新增的编程概念:流处理,通过API来传递代码,函数式编程。 ::语法:"把这个方法作为值"。 函数式编程风格:编写把函数作为一等值的程序。 谓词(Predicate):谓词接受一个参数值,并返回true或false。Predicate<T>是更标准的方 阅读全文
posted @ 2018-03-11 19:37 Hu_Yan 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Collections ArrayList——An indexed sequence that allows shrinks and grows dynamically. LinkedList——An ordered sequence that allows efficient insertion 阅读全文
posted @ 2018-03-11 15:21 Hu_Yan 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Mutable reduction: A mutable reduction operation accumulates input elements into a mutable result container, such as a Collection or StringBuilder, as 阅读全文
posted @ 2018-02-19 22:00 Hu_Yan 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 同理,可用于自动创建getter/setter(在第一步出现的下拉菜单中)。 输入psvm + Tab: 生成main方法。(public static void main) 各种输出快捷键: 生成 public static final int: 输入 psfi Try-with-Resource 阅读全文
posted @ 2018-02-08 23:14 Hu_Yan 阅读(421) 评论(0) 推荐(0) 编辑
摘要: Chapter 7 Exceptions, Assertions, and Logging 7.1 Dealing with Errors If an operation cannot be completed because of an error, the program ought to ei 阅读全文
posted @ 2018-02-01 05:06 Hu_Yan 阅读(320) 评论(1) 推荐(0) 编辑