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

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.

主站蜘蛛池模板: 谢通门县| 博兴县| 科尔| 青神县| 新竹县| 阳曲县| 根河市| 南昌县| 阿尔山市| 荆州市| 雷波县| 建湖县| 云阳县| 萍乡市| 昔阳县| 荔波县| 营口市| 伊宁市| 湘阴县| 潞城市| 怀化市| 乌鲁木齐县| 北海市| 保亭| 民勤县| 白银市| 高陵县| 平远县| 无为县| 广平县| 仁怀市| 永安市| 如东县| 长寿区| 吉安市| 霍州市| 晋宁县| 土默特左旗| 娄烦县| 内乡县| 个旧市|