那些代码的坏味道:Duplicated code :最常见的复制黏贴综合征。人们会自然而然的会想到抽取方法。Long Method:这个也太常见。今天还在帮助一个小朋友重构她的python代码,一个函数写了100多行。她最痛苦的就是调试太痛苦了。其实最痛苦的还在后面。人们不愿意拆分功能,新写程序的人...
分类:
其他好文 时间:
2015-04-03 01:25:36
阅读次数:
131
The content and code of this article is referenced from book Pro C#5.0 and the .NET 4.5 Framework by Apress. The intention of the writing is to review...
分类:
其他好文 时间:
2015-04-02 22:19:34
阅读次数:
130
1 题目:Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1...
分类:
其他好文 时间:
2015-04-02 22:06:17
阅读次数:
166
1 题目You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stoppin...
分类:
其他好文 时间:
2015-04-02 20:46:19
阅读次数:
131
20 Best Code Review Tools for DevelopersApr 02, 2015by vikas in TOOLS A programmer always faces the pressure of deadlines and with many delays the sof...
分类:
其他好文 时间:
2015-04-02 20:41:40
阅读次数:
226
.globl _start //不占内存_start:b start_code //占4字节内存ldrpc, _undefined_instruction //占4字节内存ldrpc, _software_interrupt //占4字节内存ldrpc, _prefetch_abort //占4字节...
分类:
数据库 时间:
2015-04-02 20:40:32
阅读次数:
133
前言:当我们在android中的使用JNI下编译的.so库时,很有可能底层编译好的native method出现异常,而且底层并没有对这个异常进行捕捉,这样在我们APK上就是表现为退出程序,查看打印信息,出现的提示是:A/libc(2730): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 3661 (ervice.Executo...
分类:
数据库 时间:
2015-04-02 18:57:37
阅读次数:
300
Spring rest 可以返回自定义http code...
分类:
编程语言 时间:
2015-04-02 18:53:01
阅读次数:
378
1、IE中不兼容ajax中data最后一个参数加逗号,其余chrome Firefox均支持。code: 1 $("document ").ready(function() { 2 $(".btn_fbpl").click(function...
分类:
编程语言 时间:
2015-04-02 18:41:01
阅读次数:
153
key code- (void)webViewDidFinishLoad:(UIWebView *)aWebView{ CGRect frame = aWebView.frame; frame.size.height = 1; aWebView.frame = frame; ...
分类:
Web程序 时间:
2015-04-02 18:36:26
阅读次数:
192