2013-05-26 Zhang zhengzheng
《编程珠玑》这本书读完感觉很诡异,在读的过程中感觉很有收获,但是却说不清从书中获得了什么,好像什么也没读懂。说实话,很难对这本书归类,有时它告诉你的是实际操作的性能问题,有时又在讲算法或者数据结构。不过确切的说,它告诉我们的是一种无招胜有招的境界。无论是实际操作、算法还是数据结构都是在为项目服务的,我们的目的只有一个,那就是完成项目。 一个项目与一个科研课题的区别就是它需要被实践,需要一种行之有效的解决方案。在一个系统被部署到实际环境中时,有时可能需要它无比精准,有时是快速运行,有时是超低成本,或者也有可能是兼而有之的权衡。此时工程师就需要调整一切可以调整的东西去满足这些需求,这些东西自然就是硬件环境、算法、数据结构了。作者Jon 继续阅读 »
2015-10-16 Jason Liao
Table of Content First Class Functions Pure Functions What can pure functions do Curry 继续阅读 »
2014-03-15 Kun Ren
In R, function may not be as special as it is in other programming languages; it is regarded as one of the many types and can be passed as an argument to some other function. The way we deal with other objects such list and data.frame definitely applies to function. Here is a simple example in which we define two funct 继续阅读 »
2015-01-22 KasperDeng
|Map | Java | Python | Go | |:--------|:-----------------------|:----------|:----------| |type | Map, HashMap, etc | dict | Map | |package | import Map | primitive | primitive | |mutable | Y | Y | Y | 继续阅读 »
2015-01-02 KasperDeng
Type determination java interface query: interfaceDemo instanceof InterfaceDemo subClassInstance instanceof ParentClass python isinstance golang interface query: value, ok := element.(T) element is interface var, T is base type switch value := element.(type) 继续阅读 »
2015-02-08 KasperDeng
== Java == What The constant pool contains the constants associated with the class or interface defined by the file. Constants are stored in the constant pool. literal strings final variable values fully qualified names of classes and interfaces field names and descriptors method names and descriptors Symbolic refer 继续阅读 »
2015-01-08 KasperDeng
| Item | Java | Python | Go | Javascript | |:-----------------|:-----------------|:------------|:--------------------|:-----------| |type | String | str/unicode | string | N/A | |package | import String | primitive | 继续阅读 »
2015-01-29 KasperDeng
|Set | Java | Python | Go | |:--------|:-----------------------|:----------|:----------| |type | Set, HashSet, etc | set | N/A | |package | import Set | primitive | N/A | |mutable | Y | Y | N/A | 继续阅读 »
2015-01-15 KasperDeng
Data structure stores a sequence of items in a list |List | Java | Python | Go | |:------------|:---------------------------------|:----------|:--------------------| |type | List, Arraylist, LinkedList | list | List | |package | im 继续阅读 »
2015-02-01 KasperDeng
|Operator | Java | Go | Python | Javascript | |:-----------------------|:---------------------------|:-------------------------:|:------------:|:-----------------| |++, -- | statement | not statement, expression | 继续阅读 »