The Promise of Functional Programming

The lecture is quite straightforward and talks about a topic we have talked about during these couple of weeks which is Functional Programming. Now one of the points of this article is on how functional programming differs on traditional programming. To start with we have a change of paradigm which is the use of variables.This is a major change for anyone who has programmed for a while and this is because usually we use variables for anything. Now in this case we will use immutable which is a value that it will never change. Then the second thing that shocks any programmer are loops. In functional programming we only depend on recursion which is a topic that any  programmer knows but is afraid of. The possibility of creating an infinite loop is always present and without practice is easy to make mistakes and making programs extremely inefficient. Yet with the right optimization and using it in the adequate moments the program can be extremely fast in some cases. Now these two topics are the main thing that any person will see at the beginning when learning any new functional programming language. Yet one of the main advantages is the part of calling functions inside functions (INCEPTION!!!). Now functions in classical programming it would be consider a routine and sometimes and input would return a different output. Yet a function as in mathematics if we introduce the same value to the same function we know the output would be the same. Therefore that is why functional programming is such a good tool for anything related to mathematics and of course we can see why it's origin was mathematics.

Comments

Popular posts from this blog