Tags
Language
Tags
April 2024
Su Mo Tu We Th Fr Sa
31 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 1 2 3 4

Object-oriented vs. functional programming

Posted By: igor_lv
Object-oriented vs. functional programming

Object-oriented vs. functional programming By Richard Warburton
English | 2016 | ISBN: 1491933429 | PDF | 50 pages | 1.5 Mb
Programming

Functional programming is about a thought process. It's not necessarily the case that you need a new language in order to program in a functional style. Some language features often help though. The introduction of lambda expressions in Java 8 makes it a language more suited to functional programming.
Other languages such as Scala or Haskell take functional ideas further. Scala offers a mix of both functional and object-oriented programming facilities, whilst Haskell focuses purely on functional programming. It's well worth exploring these languages and seeing what set of language features you find useful in your problem domain. However, there's no need to necessarily move to Scala or Haskell thinking that they're the only way to program in a functional style.