The main reason modular (or structured) programming is important is that it avoids the increased possibility of data corruption. Of course modular elements still have that risk but that is usually down to the user (passing by Ref instead of by Val etc.). However by using non-modular programming you can easily corrupt data without even knowing it.
Non-Modular code is normally referred to as spaghetti code. Spaghetti code is typically code that uses lots of "GOTO" which although supported by VB should be avoided.
One bad point of GOTO statements other than the fact they jump around unpredictably is their reliance on line numbers. If u add a line in the wrong place it can literally destroy your code.
This is because the GOTO command is basically a one way link so somewhere else in the code. At the end of that code will be a GOTO to get back, this is considered very messy as it leaves a virtual "trail" that can not only make it hard for other programmers to understand but also jeopardise the reliability of data via unknown lines of code changing/interacting with the stored data.
It also means the programmer needs to make sure the GOTO's are in the right place which adds a greater chance of user related mistakes.
"Structured Programming" is a idea that Modularity is closely associated with. It is the idea that structuring the program makes it easier for us to understand and therefore easier for teams of developers to work simultaneously on the same program. One advantage of structured programming is reduced complexity. Modularity allows the programmer to tackle problems in a logical fashion. Also, using logical structures ensures that the flow is clear. It is also a time saver, without modularity, code that is used multiple times needs to be written every time it is used whereas all you have to do is call a function with that code in to get the same result in a structured program.
C is a structured programming language. PHP, COBOL is also a structured programming language. These languages follow a top down approach.
goto is a statement, not a programming style.
Structured programming is not at all related to inheritance. Structured programming is a paradigm that allows, amongst many other things, one to write code in a manner that nests decisions and processing in a logical, "structured" way. Inheritance, on the other hand, is an aspect of Object Oriented Design and Programming.
Object oriented programming and structured programming.
Structured programming is a programming paradigm. Prior to structured programming, code was typically written with intertwining jumps or gotos producing "spaghetti" code which is difficult to both read and maintain. Structured programming primarily added subroutines and loop control statements and was later extended by procedural programming which primarily added function calls (not to be confused with functional programming) and which also made exception handling that much easier to maintain. This then led to object-oriented programming.
David Roger Parkes has written: 'A design tool for Jackson structured programming'
No. Structured programming came before object-oriented programming. Most OOP languages make use of structured programming, but only because they were already using structured principals, not because they now use OOP principals.
actually oop concept have some disadvantage when compared to structured programming
By itself, structured programming does not support the notion of a function call. This is achieved through an extension of structured programming known as procedural programming. Object-oriented programming extends procedural programming such that data and the functions that operate upon the data can be encapsulated within an object.
C is a structured programming language. PHP, COBOL is also a structured programming language. These languages follow a top down approach.
In Structured Programming also known as Modular Programming Each Method(function) is structured itself. Such logical structure make programming more efficient and easy to understand. it employs Top-Down design model.
Keith LaBudde has written: 'Structured programming concepts' -- subject(s): Structured programming
R. Schneyer has written: 'Modern structured programming' -- subject(s): Structured programming
K. A. Arjani has written: 'Structured programming flow charts' -- subject(s): Structured programming
Wade Ellis has written: 'Structured programming using Turbo BASIC' -- subject(s): BASIC (Computer program language), Structured programming, Turbo BASIC (Computer file) 'Structured programming using True BASIC' -- subject(s): Structured programming, True BASIC (Computer program language)
LOTTA
goto is a statement, not a programming style.