?Fight RepetitionNiclas NilssonARE youR dEvElopERS performing recurring tasks that need little think- ing? Can you find recurring patterns in the code? Can you spot code that’s been written copy-paste-...
分类:
其他好文 时间:
2015-08-19 09:27:43
阅读次数:
118
S01E02 Rendering performance渲染性能问题渲染性能问题是app开发的最常见问题。系统每隔大约16ms(1/60秒)尝试绘制Activity,如果无法每隔16ms成功绘制出新的图,则会出现掉帧的现象。也就是说,APP每16ms要运行结束所有刷新屏幕的逻辑,屏幕才能达到每秒60...
分类:
移动开发 时间:
2015-08-19 00:30:05
阅读次数:
234
Milk Patterns
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 12128
Accepted: 5387
Case Time Limit: 2000MS
Description
Farmer John has noticed that th...
分类:
编程语言 时间:
2015-08-18 19:18:24
阅读次数:
132
milk【转载】This is the code that I use for my research projects.
分类:
其他好文 时间:
2015-08-18 13:40:08
阅读次数:
93
S01E02 Rendering performance渲染性能问题渲染性能问题是app开发的最常见问题。系统每隔大约16ms(1/60秒)尝试绘制Activity,如果无法每隔16ms成功绘制出新的图,则会出现掉帧的现象。也就是说,APP每16ms要运行结束所有刷新屏幕的逻辑,屏幕才能达到每秒60...
分类:
移动开发 时间:
2015-08-18 00:59:10
阅读次数:
181
装饰者模式: 能够动态地往一个类中添加新的行为。相比继承是在编译时添加行为,装饰模式是在运行时添加行为。星巴克咖啡是讲述装饰者模式的一个很好的例子。 假设现在有两种咖啡:HouseBlend、DarkRoast,同时有两种调料:Milk、Mocha。那么此时我们可以给顾客提供以下咖啡:House.....
分类:
其他好文 时间:
2015-08-17 21:31:00
阅读次数:
145
Comparing Two High-Performance I/O Design Patterns
by Alexander Libman with Vladimir Gilbourd
Reactor and Proactor: two I/O multiplexing approaches
In general, I/O multiplexing mechanisms r...
分类:
其他好文 时间:
2015-08-17 01:07:12
阅读次数:
219
咖啡馆订单系统项目 1)咖啡种类:Espresso、ShortBlack、LongBlack、Decaf 2)调料:Milk、Soy、Chocolate 3)扩展性好、方便改动、方便维护 单品的咖啡通过调料混合成卖品。 OO设计方案 定义一个抽象的超类,D...
分类:
其他好文 时间:
2015-08-15 16:45:21
阅读次数:
111
1071. Speech Patterns (25)People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may ...
分类:
其他好文 时间:
2015-08-14 21:13:08
阅读次数:
201
在做到编辑部分时,想到的办法是在编辑上跳转到页面时给他一个包含唯一标识id的url,然后通过这个url中的id去查询出该条数据,将数据内容显示在编辑页面。1.编辑按钮编辑2.URL配置,用()括起来的部分就是参数,如果有多个参数,使用多个()urlpatterns = patterns('', .....
分类:
Web程序 时间:
2015-08-14 20:58:33
阅读次数:
590