Most software today is built using Object Oriented Programming, because this paradigm makes it easy to organize large amounts of code. With that said, the more paradigms you know, the better.
One particular paradigm of interest is functional. While pure functional programming isn't used very often in industry programming, a lot of the ideas are currently spilling over to Object Oriented languages like Java and C# (like the concept of first class functions, and avoiding mutation). Once you learn new paradigms, it'll change (and often improve) the way you program in other, more common or popular programming paradigms.
发布评论
评论(1)
当今大多数软件都是使用面向对象编程构建的,因为这种范例可以轻松组织大量代码。话虽如此,您了解的范式越多越好。
一种令人感兴趣的特定范式是功能性的。虽然纯函数式编程在行业编程中并不经常使用,但许多想法目前已扩展到 Java 和 C# 等面向对象语言(如一等函数的概念和避免突变)。一旦您学习了新的范例,它将改变(并且通常会改进)您在其他更常见或流行的编程范例中进行编程的方式。
Most software today is built using Object Oriented Programming, because this paradigm makes it easy to organize large amounts of code. With that said, the more paradigms you know, the better.
One particular paradigm of interest is functional. While pure functional programming isn't used very often in industry programming, a lot of the ideas are currently spilling over to Object Oriented languages like Java and C# (like the concept of first class functions, and avoiding mutation). Once you learn new paradigms, it'll change (and often improve) the way you program in other, more common or popular programming paradigms.