1 think before codingcode incrementally2sentinel valuesentinel-controlled loop3 输入输出重定向 > = 1;i--){ sum += 1d/i; }System.out.println(sum);//11.3970039...
分类:
编程语言 时间:
2014-12-27 13:51:12
阅读次数:
208
Inspire. Just the word itself causes us to pause and think. We may remember our own personal heroes like Martin Luther King or Mother Theresa or a tea...
分类:
其他好文 时间:
2014-12-26 20:07:47
阅读次数:
235
thinkPHP带了一个扩展的RBAC模型,模型和think一样的奇葩,不走寻常路,但凡学习过其他框架童鞋,都会被绕晕倒的,PHP的debug不太会用,导致thinkPHP常常出现不显示内容,也没有错误提示,用记事本编辑的童鞋真的...
分类:
Web程序 时间:
2014-12-25 22:17:32
阅读次数:
344
Openstack can not delete instance from dashboard
up vote
1
down vote
favorite
There are 66 instances in Openstack Havana. I think these instances are zombies instance. Da...
分类:
系统相关 时间:
2014-12-25 08:44:07
阅读次数:
246
1. 区分重载方法:参数顺序的不同可以区分两个方法,不过,一般情况下千万别这么做,因为这会使代码难以维护不能通过返回值类型来区分重载方法:因为如果我直接调用f(), 此时java不知道应该调用那一个public void f(){ }public int f(){return 1;}2. 只有当需....
分类:
编程语言 时间:
2014-12-22 21:18:15
阅读次数:
268
1. 区分重载方法:
参数顺序的不同可以区分两个方法,不过,一般情况下千万别这么做,因为这会使代码难以维护不能通过返回值类型来区分重载方法:因为如果我直接调用f(), 此时java不知道应该调用那一个
public void f(){
}
public int f(){
return 1;
}
2. 只有当需要明确指出对当前对象的引用时, 才需要使用this关键字,例如,...
分类:
编程语言 时间:
2014-12-22 16:22:06
阅读次数:
255
7Approaches for AOP in .NetAOP在 .NET中的七种实现方法Here are all the ways that I can think of to add AOPto your application. This mostly focus on the intercep...
分类:
Web程序 时间:
2014-12-22 14:15:45
阅读次数:
156
今天在看《think in java》时,有个问题没搞懂:在调用一个静态函数时,该类的构造函数是否会被调用。在网上并未找到相关内容,不如动手来试试结果。 1 public class test { 2 public test() { 3 System.out.println(...
分类:
编程语言 时间:
2014-12-21 23:25:14
阅读次数:
286
微软近期Open的职位:Job Description:Are you a Linux, UNIX or FreeBSD ninja?   Think that those skills have no value at a company like Microsoft?   Thi...
分类:
其他好文 时间:
2014-12-20 00:40:13
阅读次数:
261
In many ways, I think being a front end engineer is one of the most complicated jobs in computer science. Most traditional programming concepts don’t ...
分类:
其他好文 时间:
2014-12-18 18:10:45
阅读次数:
181