2017年7月5日

JAVA - 工厂模式

摘要: 1. 简单工厂违背OCP(Open Close Principle)原则 , 即对增加开放,对修改关闭。如果要符合OCP原则,要针对接口编程。 2.下一种模式的工厂进一步优化了简单工厂,但有一个缺点就是依赖于工厂的实现类 3.为了解决第二种工厂模式的弊端,需要使用配置文件,然后通过反射获取工厂实例 阅读全文

posted @ 2017-07-05 22:22 dawangandy 阅读(90) 评论(0) 推荐(0)

JAVA - 可变参数

摘要: 使用可变参数来减少函数重载 阅读全文

posted @ 2017-07-05 22:21 dawangandy 阅读(128) 评论(0) 推荐(0)

Eclipse 快捷键和模板设置

摘要: 快捷键设置 菜单 Window --> Preferences General Keys Content Assist: 代码提示快捷键 模板设置 新建一个模板 在Insert Variable中选择变量 line_selection表示选择的代码 cursor 表示光标停留的位置 使用改模板 阅读全文

posted @ 2017-07-05 21:23 dawangandy 阅读(144) 评论(0) 推荐(0)

Machine Learning and Data Mining Lecture 1

摘要: Machine Learning and Data Mining Lecture 1 1. The learning problem - Outline 1.1 Example of machine learning Predicting how a viewer will rate a moive 阅读全文

posted @ 2017-07-05 11:40 dawangandy 阅读(168) 评论(0) 推荐(0)

English - Mosquitos

摘要: Smith's house is full of mosquitos. Every night they bite him. He can not sleep because the mosquitos constantly bite him. He calls his friend Daid. H 阅读全文

posted @ 2017-07-05 10:58 dawangandy 阅读(96) 评论(0) 推荐(0)

导航