Explaining functional programming to object-oriented programmers and less technical people

后端 未结 12 1437
小蘑菇
小蘑菇 2021-01-30 23:09

What are some good examples that I can use to explain functional programming?

The audience would be people with little programming experience, or people who only have ob

12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-31 00:06

    Try looking at this article called Functional Programming for the Rest of Us, below is an excerpt.

    In this article I will explain the most widely used ideas from functional languages using examples written in Java (yes, you could write functional programs in Java if you felt particularly masochistic). In the next couple of sections we'll take Java as is, and will make modifications to it to transform it into a useable functional language. Let's begin our quest.

提交回复
热议问题