Document Databases in a Big Data Environment
The Evolution of Deployment Models in the Big Data Era
RDBMSs in a Big Data Environment

Functional vs. Procedural Programming Models for Big Data

When people talk of map and reduce in big data, they do so as operations within a functional programming model. Functional programming is one of the two ways that software developers create programs to address business problems. The other model is procedural programming. Take a quick look to understand the differences and to see when it's best to use one or the other model.

Procedural programs are highly structured and provide step-by-step instructions on what to do with input data. The order of the execution is important, and the input data is changed as it progresses through each step of the program. Examples of procedural languages include FORTRAN, COBOL, C, and C++.

The best uses for procedural programs are those where it is okay to change the values of the input data or where you need to compare computed values in one of the steps to determine whether you need to continue processing or exit the program and deliver the result.

In contrast, functional programs do not change the input data. They look at all the data for specific patterns and then apply rules to identify the important elements and then assemble them into lists. The order of the processing is not important because each operation is independent of another. Examples of functional languages include LISP, Scheme, Prolog, and R.

Functional programs do not change the input data and are most often used when it is necessary to look at the data again and again for different patterns. For example, you could look through a list of all the counties in the United States that voted Republican in the last election and then go through the list for all Democratic counties. This will produce two distinct output lists.

  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus
Performance Matters in Big Data Architectural Management
Characteristics of a Big Data Analysis Framework
Modify Business Intelligence Products to Handle Big Data
Identify the Data You Need for Your Big Data
Big Data Virtualization Basics