Logo

Bottom-up Programming and Differs from Top-down Programming

(toc) #title=(Table of Content)
Bottom-up Programming and Differs from Top-down Programming Points : what is meant by bottom-up programming? how does it differs from top-down programming, advantages of bottom-up programming Bottom-up Programming Bottom-up programming is the opposite of top-down programming. It refers to a style of programming where an application is constructed starting with existing primitives of the programming language and construction gradually more and more complicated features, until all of the application has been written. Advantages of Bottom-up ProgrammingBottom-up programming has several advantages over top-down programming. Testing is simplified since no stubs are needed. While it might be necessary to write test functions, these are simpler to write than stubs and sometimes not necessary at all in particular if one uses an interactive programming environment such as common lisp or GDB.

Pieces of command written in bottom up tend to be more general, and thus more reusable then pieces of programs written in top down. Infect one can argue that the purpose bottom up programming is to create an application specific language such a language is suitable for implementing an entire class of applications not only that is to be written. This fact greatly simplifies maintenance in particular adding new features to the application. It also make it possible to delay the final decision concerning the exact functionality of the application being able to delay this decision makes it less likely that the client has changes his or her mind between the establishment of the specifications of the application and its implementation.
Top-down” Programming In a language such as C or Java, bottom-up programming takes the form of constructing abstracted data types of primitives of the language or from existing abstract data types.

In common Lisp, in addition to constructing abstract data types, it is common to build functions bottom-up programming from simpler functions and to use macros to construct new special forms from simpler ones. One may a why it is not possible to construct functions and special forms bottom-up in other language than common lisp. Constructing functions bottom-up requires a way of passing complicated arguments between functions. Common lisp uses lists for such argument passing. Lists are flexible standardized data structures in the language. In other language, data structure would have to be defined for such parameter passing only making it more Like an abstract data type, than just a function with respect to special forms only the two level syntax of common lisp allows a flexible enough macro facility for bottom-up programming of special forms.
Tags

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !