yifeiyuan.me
中介者模式 - 程序亦非猿的博客 | 程序亦非猿's Blog
http://yifeiyuan.me/2016/08/02/Mediator
Posted by 程序亦非猿 on 2016-08-02. 当有了中介者后,对象之间不需要认识,只需要跟中介者打交道,这样一来对象之间就被解耦了. 这让我想到了Android中的Activity,在Activity中包含了各种View以及Adapter等对象,Activity也包含了整个系统的控制逻辑,那么我想,Activity就是一个中介者吧! 想想Activity,如果职责一多,两三千行代码,就非常复杂了,缺点也显而易见了. Larr; Previous Post. Next Post →. UV: From(16.6.14).
yifeiyuan.me
责任链模式 - 程序亦非猿的博客 | 程序亦非猿's Blog
http://yifeiyuan.me/2016/08/01/Chain-of-Responsibility
Posted by 程序亦非猿 on 2016-08-01. 通过责任链模式,可以为某个请求创建一个对象链.每个对象依序检查此请求,并对其进行处理,或者将它传给链中的下一个对象. Larr; Previous Post. Next Post →. UV: From(16.6.14).
yifeiyuan.me
Retrofit是如何工作的? - 程序亦非猿的博客 | 程序亦非猿's Blog
http://yifeiyuan.me/2016/12/26/how-retrofit-works
Posted by 程序亦非猿 on 2016-12-26. 注 本文基于 Retrofit2.0版本,并配合 RxJava 来分析。 Comsquareup.retrofit2:retrofit:2.0.0. Comsquareup.retrofit2:converter-gson:2.0.0. Comsquareup.retrofit2:adapter-rxjava:2.0.0. Adapts a Java interface to HTTP calls by using annotations on the declared methods to how requests are made. 本文主要通过分析 Retrofit 与 RxJava 的合作流程. Retrofit 与 OkHttp 是怎么合作的. Retrofit 中的数据究竟是怎么处理的 它是怎么返回 RxJava.Observable 的. GankConfig.PAGE COUNT "/{page}". Retrofit retrofit = new. 123; service },. Map Method, ServiceMe...
yifeiyuan.me
访问者模式 - 程序亦非猿的博客 | 程序亦非猿's Blog
http://yifeiyuan.me/2016/08/03/Visitor
Posted by 程序亦非猿 on 2016-08-03. Larr; Previous Post. Next Post →. UV: From(16.6.14).
jayfeng.com
归档 | 杰风居
http://jayfeng.com/archives
可选类型Optional对比-java8,guava,kotlin,swift. 主题 - NexT.Pisces.
jayfeng.com
[团队分享]记一次小团队Git实践(下) | 杰风居
http://jayfeng.com/2015/07/27/记一次小团队Git实践(下)
Git config - global core.editor vim. Git config - global merge.tool vimdiff. Git config - global mergetool.prompt false. Git config - global color.ui true. Files for the dex VM. Local configuration file (sdk path, etc). Git commit - amend. 合并本地所有未提交的提交, 在弹出的交互界面, 保留一行的pick,把其他每行提交的pick改为fixup或者squuash. Git rebase -i origin/master. Git rebase -i HEAD 2. Git cherry-pick 5d1c8562 cd. Git bisect good 5d1c8562 cd. Git bisect good 或者git bisect bad. Comjayfeng.lesscode.core;. Android.content.Context;.
jayfeng.com
about | 杰风居
http://jayfeng.com/about
在实习公司继续工作半年,主做.net, 看好移动端发展,因买不起iphone,选择android,从此投入移动浪潮. Android, linux, vim, git, 架构, 设计模式. Less code, more efficient for android, 打造最好的android工具类,简化提速你的android开发. 主题 - NexT.Pisces.
SOCIAL ENGAGEMENT