官术网_书友最值得收藏!

Object-oriented versus functional paradigms 

With its roots in the mathematics discipline, the functional programming paradigm is simple. It works on the theory of functions which produce values that are immutable. Immutable values mean they can't be modified later on directly. In the functional paradigm, all computations are performed by calling self/other functions. Functions are first-class citizens in the functional world. This opens up a new world of possibilities where all computations are driven by a certain need.

The object-oriented planet revolves around encapsulation and abstractions. The logical grouping of components makes maintenance of larger and complex programs easier. Data and models are encapsulated in objects. Information hiding is effective for containing an object's properties. Inheritance hierarchies, the concept of classes, and messaging between objects makes the whole model/pattern of object-oriented programming a partial success.

主站蜘蛛池模板: 汝州市| 大城县| 朝阳市| 和林格尔县| 永德县| 永年县| 当涂县| 绥中县| 临城县| 武强县| 清水河县| 江西省| 丹棱县| 大冶市| 友谊县| 杭锦旗| 阿瓦提县| 昌都县| 浦城县| 乌兰浩特市| 兰坪| 武陟县| 安图县| 迭部县| 临漳县| 定南县| 项城市| 西乡县| 许昌县| 加查县| 五原县| 淄博市| 万山特区| 泰兴市| 邛崃市| 澎湖县| 上栗县| 新野县| 万宁市| 神池县| 青州市|