The main types (approaches) of programming are :
· Procedural - a set of instructions in order with functions/procedures used to divide code into useable pieces. This makes it easier to reuse code, reduce the amount of repetitive code, and manipulate data. Most early including Assembler, Basic, Pascal, C, Assembler are procedural. These languages (especially in the form of C are still in significant use today from Operating systems to applications.
· Object Oriented - an extension of procedural where functionality and data are deliberately grouped together. ocuses on the objects that developers want to manipulate rather than the logic required to manipulate them. This of programming is well suited for software that is large, complex and actively updated or maintained. This includes programs for manufacturing and design, as well as mobile applications. Heavily used today in everything from Operating Systems to data science - languages include C++, C#, Python
· Functional - applications are defined in the form of functions which transform data from one ‘value’ to another - very similar to mathematical functions A languages include Scheme, Lisp, Haskell. Used in application development and other spheres.
The principles of functional programming
1. Pure functions
2. Recursion
3. Referential transparency
4. Functions are First-Class and can be Higher-Order
5. Variables are Immutable
Pure functions are easier to understand because they don’t change any states and depend only on the input given to them. Whatever output they produce is the return value they give. Their function signature gives all the information about them i.e. their return type and their arguments.
· Declarative - characterized by statements which declare precisely the changes that need to be made - The key example here is SQL - used heavily in RDBMS - and applications with large data volumes.
Other types (approaches) include :
· Event driven - where a program is defined in terms of it’s responses to a number of different events - examples include Visual Basic and LSL (used in the Second-life Virtual World). Also many GUI toolkits will transform procedural or OOP languages applications into an event driven form.
Choose the right answer:
Choose the right answer:
Complete the sentence: Procedural one...
Complete the sentence: Object-oriented ...
Choose the right answer:
Choose the right answer: Functional type is very similar to mathematical functions.
Choose the right answer:
Choose the right answer:
Choose the right answer:
Choose the right answer: Functional type is used in RDBMS.
· Choose the right answer: Declarative type is connected with applications with large data volumes.
Choose the right answer: Event driven is not the main type of programming.
Choose the right answer: In event driven type a program is defined in passwords and codes of its responses to a number of different events
Choose the right answer: GUI and RDBMS are connected with additional (event driven) type.
Створюйте онлайн-тести
для контролю знань і залучення учнів
до активної роботи у класі та вдома