Functional Programming

The functional programming is a programming style characterised by avoidance of shared state, immutability, elimination of side effects[1]. Programming languages that were designed to support this style are called "functional programming languages". If the language enforces the functional style, it is called "pure functional language"[2]. One of the notable languages in this family is, of course, Haskell[3]. The languages supporting functional style are called "impure" and pretty much all general-purpose programming languages that are in active use today are "impure functional languages".

It is hard to say how popular the functional programming is. The share of functional languages in TIOBE index is between 0.5% (only pure languages, like Haskell) and 7% ("traditionally" functional languages, like Lisp, Scala, F#, etc). The similar proportion can be found in job trends [4]. However, the applying modern popular concepts, like SOLID, makes the code look more "functional"[5]. C++ templates[6], C# LINQ[7], JS LoDash[8] and many other techniques and libraries for modern programming languages bring elements of functional programming to codebase. Many best practices like "immutable function parameters", "no global variables (state)", "separation of concerns" either maps to the concepts of functional programming or can be derived from them.

The functional programming is taught in many universities all over the world as part of the computer science disciplines. Stanford[9], Cambridge[10], Moscow[11], Hong-Kong[12] universities have functional programming courses. Big online learning platforms provide the specialised functional programming courses in Scala[13], Erlang[14], OCaml[15], Haskell[16], F#[17] and courses about functional programming in general[18] for free. Paid options are also available[19].

The community aspect of the functional programming is also important. People sharing the passion about the functional programming participating in academic conferences and technology-specific user groups (F#[20], Scala[21], Haskell[22]) worldwide. There are FP-related meetups in Greater London almost every week[23]. The StackOverflow community answered so far 145 thousands questions related to functional programming[24].

The functional programming is definitely an important part of the computer science and programming body of knowledge, something that you learn once, use every day and never have enough :-)

  1. Functional programming, ↩︎

  2. Functional languages, in List of programming languages, ↩︎

  3. TIOBE Index for May 2017, ↩︎

  4. java and scala job trends, ↩︎

  5. SOLID: the next step is Functional, ↩︎

  6. Functional Programming Using C++ Templates, ↩︎

  7. Thinking in LINQ. Harnessing the Power of Functional Programming in .NET Applications, ↩︎

  8. FP Guide, LoDash, ↩︎

  9. CS95: Functional Programming in Clojure, ↩︎

  10. Advanced Functional Programming, University of Cambridge, ↩︎

  11. Department of Mathematical Cybernetics, Lomonosov Moscow State University, ↩︎

  12. COMP3258 Functional Programming, ↩︎

  13. Functional Programming Principles in Scala, ↩︎

  14. Functional Programming in Erlang, ↩︎

  15. Introduction to Functional Programming in OCaml, ↩︎

  16. Functional Programming in Haskell: Supercharge Your Coding, ↩︎

  17. Beta: Start Programming With F# Today, ↩︎

  18. Introduction to Functional Programming, ↩︎

  19. Introduction to F#, ↩︎

  20. F# User Groups, ↩︎

  21. Scala Community, ↩︎

  22. Haskel User groups, ↩︎

  23. Functional programming meetups in Greater London, ↩︎

  24. Stackoverflow questions tagged lisp, clojure, erlang, f#, haskell, elm, scala, ocaml or functional-programming, ↩︎