Structured programming language and types of structured programming language
What is the structured programming language?
Structured programming language refers to a programming strategy that en-compresses a number of methodologies to produce good quality design and code which can be easily understood, tested debugged, modified and maintained in future.
In structure programming design, programs are broken into different functions. These functions are also known as modules, subprogram, subroutines and procedures.
Each function is design to do specific task with its own data and logic. Information can be passed from one function to another function through parameters. A function can have local data that cannot be accessed outside the functions scope. the result of this process is that all the other different functions are synthesized in an another function. This function is known as main function. Many of the high level language supported structure programming.
Structured program gives clarity, quality and development time of a computer program by making extensive use of structured control flow constructs of selection (if/else) and repetition(while/ for ) ,block structure and subroutines in contrast to using simple tests and jumps such as the go to statement. Which can lead to “Spaghetti code” that is potentially difficult to follow and maintain
This structure programming language sometimes also known as modular programming. It is a programming paradigm that facilitates the creation of programs with readable code and reusable components. All the modern programming languages support structured programming language.
There are three principals of structured programming language -
1. Programming design using top down on bottom up approach.
2. Decomposition of program into components .
3. Structuring of a control flow.
Structured programming is a logical programming method that is considered a precursor to object-oriented programming. In Structured programming language a system is divided into compositional subsystem.
Structured programming is a procedural programming subset that reduces the need for “go to” statements.
Types of structured programming language
Procedural programming
It defines modules as “Procedures ” or “functions” that are called with a set of parameters to perform a task. A procedural language will begin a process, which is then given data. It is also the most common category and has recently been subdivided into the following
- Service oriented programming — simply defined reusable modules as “services” with advertised interfaces.
- Micro-service programming — Focus on creating modules that do not store data internally and so are scalable and resilient in cloud deployment .
- Functional programming — Technically ,means that modules are written form functions and that these functions output are derived only from their inputs.
Object oriented programming
Defines a program as a set of object or resources to which commands are sent. An object oriented language will define a data resource and send it to process commands.
Model based programming
The most common example of model based programming language is database, query. In this database programming units of code are associated with steps in database access and update or run when those steps occur.