摘要: 参考链接: http://www.digpage.com/lock.html http://blog.csdn.net/hongchangfirst/article/details/26004335 乐观锁 (Optimistic Lock) 顾名思义,就是很乐观,假设数据一般情况下不会造成冲突,只 阅读全文
posted @ 2017-11-16 10:43 yfdream 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 参考链接: https://www.cnblogs.com/lenther2002/p/4487123.html http://www.jianshu.com/p/d8bc0a843dd0 http://blog.csdn.net/qq_36074150/article/details/769027 阅读全文
posted @ 2017-11-16 10:08 yfdream 阅读(2137) 评论(0) 推荐(0) 编辑
摘要: 先来张target跟目录的文件结构 conf文件夹中存放的是properties文件, lib文件夹中存放的是各种jar文件, start.bat是windows命令行的启动文件。 来张properties文件的内容 1. 创建配置文件相关的配置类,每个properties文件对应一个配置类 这里使 阅读全文
posted @ 2017-01-20 10:40 yfdream 阅读(11870) 评论(0) 推荐(0) 编辑
摘要: 最近在学习安卓APP的开发,用到了toolbar这个控件, 最开始使用时include layout这种方法,不过感觉封装性不好,就又改成了自定义组合控件的方式。 使用的工具为android studio 2.2,简称AS吧 1.首先创建一个新的自定义控件,如下图。AS会创建3个文件, 一个java 阅读全文
posted @ 2016-12-29 11:41 yfdream 阅读(5444) 评论(0) 推荐(0) 编辑
摘要: http://agiledon.github.io/blog/2013/04/17/thoughtworks-developer-reading-radar/#rd?sukey=f64bfa68330f696aa05077dbb740f367870988360956e818b4f7074c49ab4... 阅读全文
posted @ 2014-05-09 16:36 yfdream 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Bridge Pattern, Composite Pattern, Decorator Pattern, Facade Pattern, COR Pattern, Proxy Pattern, template Pattern, MVC.Updated with the explanation of Composite pattern, Decorator Pattern and Template Pattern.Design Pattern Interview Question - Part 4Introduction(A) Can you explain bridge pattern?( 阅读全文
posted @ 2014-01-08 19:03 yfdream 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Interpeter , Iterator , Mediator , Memento and Observer design patterns.(I) what is Interpreter pattern?(B) Can you explain iterator pattern?(A) Can you explain mediator pattern?(I) Can you explain memento pattern?(B) Can you explain observer pattern?Other Interview question PDF'sIntroductionAga 阅读全文
posted @ 2014-01-08 19:01 yfdream 阅读(165) 评论(0) 推荐(0) 编辑
摘要: State, Stratergy, Visitor Adapter and fly weight design pattern from interview perspective.(I) Can you explain state pattern?(I) Can you explain strategy pattern?(A) Can you explain visitor pattern?(A) What the difference between visitor and strategy pattern?(A) Can you explain adapter pattern?(I) W 阅读全文
posted @ 2014-01-08 18:59 yfdream 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Factory, Abstract factory, prototype pattern(B) What are design patterns?(A) Can you explain factory pattern?(I) Can you explain abstract factory pattern?(I)Can you explain builder pattern?(I) Can you explain prototype pattern?(A) Can you explain shallow copy and deep copy in prototype patterns?(B) 阅读全文
posted @ 2014-01-08 18:57 yfdream 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 导读:Cate 是一位加拿大的软件工程师,目前就职于 Google 。本文是他在 2010 年在 Google 面试后分享的文章。 也许你可能没有参加过谷歌面试(或者没能答出面试中的一些问题),这里我会分享一下上周我的面试经历。我个人感觉良好——至少已经全力以赴了,无论结果如何都会对我有很大的帮助。 由于已经签了保密协议,因此我不会写出面试的问题。然而,我会写一下我是如何得到这个面试机会以及准备面试的过程。 首先,面试的是谷歌。如果没有在 Google 工作的朋友和我谈起并推荐我,我是不会应聘的。因为我“离得比较近”,因而没有参加电话面试,直接进行了在线面试。我并不认为渥太华和滑铁卢... 阅读全文
posted @ 2012-06-04 13:42 yfdream 阅读(163) 评论(0) 推荐(0) 编辑