What is Functional Programming? [Dev Concepts #4]

Share on facebook
Share on twitter
Share on linkedin
What is "functional programming", "pure function", "functional language", "lambda function" and "higher-order function" and how these concepts work in modern programming?

Functional programming is a programming paradigm where programs are constructed by applying and composing functions. Functional programming is declarative rather than imperative, and the application state flows through pure functions. Functional code tends to be more predictable and easier to test than imperative or object-oriented code — but if you’re unfamiliar with it and the common patterns associated with it, functional code can also seem a lot denser. Learn which of the programming languages are functional. 

Functional Programming (FP) is programming based on composing pure functions while avoiding shared state, mutable data, and side effects.

  • Functional Programming is a declarative programming approach instead of imperative. Instead of building an algorithm on how to do something step by step, functional developers describe the result by functions and composition of functions.
  • Pure Functions – These functions return value only determined by their input without any side effects. Pure Functions are the “heart” of functional programming. Using pure functions means maintaining consistent results.

 

If you are new to programming, make sure to watch our Free Full Java Basics course! It will give you the necessary foundation to build upon and become a successful software engineer!

Lesson Topics

In this video we review the following topics:
  • What is Functional Programming? 
  • Functional Programming Languages
  • Lambda Functions 
  • Higher-Order Functions

Remember that coding is a skill, which should be practiced. To learn to code, you should write code, every day, for a long time. Watching tutorials is not enough. You should code! 

We would love to hear from you, so leave a comment below saying what topics you would like to see next. 

Leave a Comment

Scroll to Top
small_c_popup.png

Sign in

Don’t have an account? Register with us to join the community.