- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
显然,Alexander Stepanov在interview中声明了以下内容:
“I find OOP [object-oriented programming] technically unsound. It attempts to decompose the world in terms of interfaces that vary on a single type. To deal with the real problems you need multisorted algebras - families of interfaces that span multiple types.” [Emphasis added.]
最佳答案
我相信他是在谈论泛型编程(he coined the term),无论是在此有关STL的讨论中,还是在某种意义上说“总体上”:
reduce
,一堆功能语言的fold
)仅在您应用缩减功能的顺序无关紧要(+
,x
,min
, and
有效,但设置差异无效)。如果您有“配备了关联运算的类型”的概念,那么您将可以对其进行并行化简。 For the mathematically inclined, the relation that defines the natural ordering on a given class C is:
{(x, y) such that x.compareTo((Object)y) <= 0}.
The quotient for this total order is:
{(x, y) such that x.compareTo((Object)y) == 0}.
It follows immediately from the contract for compareTo that the quotient is an equivalence relation on C, > and that the natural ordering is a total order on C.
public static <T extends Comparable<T>> T min (T x, T y) {
if (x.compare(y) < 0) x; else y;
}
关于algebra - 什么是 “multisorted algebra”,如何使用它来解决 “real problems”?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3753444/
我正在使用 mulisortable jquery 插件 (github.com/shvetsgroup/jquery.multisortable) 和 mcustomscrollbar 插件 (ma
显然,Alexander Stepanov在interview中声明了以下内容: “I find OOP [object-oriented programming] technically unsou
clears multisort meta during pagination 中的惰性 ="true"
我刚刚在“DataTable - Lazy Loading”的展示代码中启用了多重排序 datatableLazy.xhtml CarDataTable
我是一名优秀的程序员,十分优秀!