miércoles, 2 de marzo de 2016

The Promises of Functional Programming

This article talked of a topic that already had some prior knowledge, or at least to me it was a bit familiar because it has been mentioned in several articles and podcast. First, we must remember that when we schedule, we declare certain variables that will be useful throughout the program, these variables are retrieved by the processor from  the memory to later write the result back in a memory cell.

Functional programming is a paradigm that allows us to create programs, as close to reality, unlike imperative programming, which is used by most languages. Imperative programming refers to one in which the developer writes code that describes in detail the steps the team must perform to achieve the objective, focuses to the procedure.

One difference between the two types of programming is that imperative programming is easier to compile in machines that are sufficiently efficient, however, functional programming allows you to make easier and faster tests. Mathematica is a software that was developed using functional programming and is a very efficient software and used by many users.

Functional programming has no variables, the reason for this is explained in the article; when we talk about functions, we refer to a procedure that always returns the same value, however this is not always true in programming. For this reason the functions are not the indicated to change the values of variables that are recieved, this is the main reason why variables are not used in functional programing.

From my point of view not to use variables is something that can be a bit complicated for those who we are used to other languages where variables are used all the time, but once you realize the power of a functional programming, you can start to change your mind, leave the variables aside, at least for a moment.




No hay comentarios:

Publicar un comentario