Different Programming Approaches (With Advantages and Disadvantages)

0
651
Different Programming Approaches
Different Programming Approaches

Programmingy.com is back with another General Programming related article. Here we will talk about different Programming Approaches that every programmer should know. This article is also important for computer science students, as the question “Explain Different Programming Approaches with Advantages and Disadvantages of each” is commonly asked. So guys let’s quickly start this article. (And it’s a request that if you like this article, then kindly give it a thought to share our work on your Google+ or Facebook. Thanks)

Monolithic programming:

They consist of global data and sequential code. In this type of programming, jump statements are used for flow control. example: assembly language.

Disadvantages:

  • Size of program is lengthy
  • difficult to debug
  • impossible to design large application.

Advantages:

  • very fast execution
  • can be used to control hardware.

 

Old Programming Approach: Procedural language:

Programs are organized in the form of sub-routines and all the sub-routine share the global data. example: COBOL language.

Disadvantages:

  • Still, the local data is missing from the sub-routines/functions
  • security is the major concern as the data is global in nature.

Advantages:

  • with sub-routines, it is possible to design modular programs that can be used for middle-level projects
  • The functionality of the software can be divided into sub-routines which makes easy development and debugging process.
You can Learn C Programming on Programmingy.com | 
We are working on Tutorials in C Programming Languages. Save our website or 
join our Newsletter now so that you get notifications.

Different Programming Approaches: Structured programming

In this separately compiled modules is used. Each module has their own local data and processing logic. The concept of user-defined data types is also introduced. Example: c and Pascal language.

Advantages:

  • data security with the use of local data inside the modules
  • Suitable for large applications
  • it is possible to design complete modular programs.

Disadvantages:

  • The program size is still large as code re-usability is not provided
  • Still, applications which require real-time response and representation of data in the form of entities is not possible to develop in structured programming.

Find More: Programming Tutorials

 

Object-Oriented Programming

Object Oriented is one of the most popular ones in the list of Different programming approaches, the features of encapsulation, polymorphism and code re-usability were introduced, which makes programming very easy and can be done using the concept of entities(user-defined data type classes), where a class can store both data and functions inside a single structure.

Advantages:

  • code re-usability: A single piece of code can be used in different modules by using the concept of inheritance.
  • Persistence: The data can be stored permanently in the database(especially relational database) for the future use.

Disadvantages:

  •  It has no security since the concepts of the pointer, global variable and friend function is used in oops.
  • web applications are complex and difficult to debug.
  • The complexity of program increases as the size of program increases.
  • does not have support for garbage collection.

Thanks, Guys. This is it in “Different Programming Approaches” articles. Hope you understood all approaches well and learnt the advantages and disadvantages of each programming paradigm.

LEAVE A REPLY

Please enter your comment!
Please enter your name here