这题怎么用java我老还是自信满满的 其他咱就只能洗耳恭听了 deadline Feb 15, 2016 0:00am PST
d*e
3 楼
some thing like this: val validNumers = for (n take 1000 or some random generator yield n take 1000 forAll (validNumers) { (n: Int) => if isOverlap(n) n should be %7 =0 && n should be isEndofMonth() } 你要高级的我还可以给你搞Metamorphic testing. 不过你这也不是算法,就是高高web, mvc, database access 什么的。 上MT活着PT都是浪费。
in ruby and python, everything is an object, which is a very good concept. in java, js, etc, you have to deal with undefined or null.
l*n
7 楼
although the bound and unbound method in python is not as convenient as in ruby. in Ruby, Proc is very convenient, just like function in js, because you can switch context easily.
l*n
8 楼
although you can do everything with anonymous class in Java, it requires far more lines of code.
这题怎么用java我老还是自信满满的 其他咱就只能洗耳恭听了 deadline Feb 15, 2016 0:00am PST
d*e
11 楼
some thing like this: val validNumers = for (n take 1000 or some random generator yield n take 1000 forAll (validNumers) { (n: Int) => if isOverlap(n) n should be %7 =0 && n should be isEndofMonth() } 你要高级的我还可以给你搞Metamorphic testing. 不过你这也不是算法,就是高高web, mvc, database access 什么的。 上MT活着PT都是浪费。
in ruby and python, everything is an object, which is a very good concept. in java, js, etc, you have to deal with undefined or null.
l*n
15 楼
although the bound and unbound method in python is not as convenient as in ruby. in Ruby, Proc is very convenient, just like function in js, because you can switch context easily.
l*n
16 楼
although you can do everything with anonymous class in Java, it requires far more lines of code.