Pular para o conteúdo

Conheça Walt Disney World

'''Flow-driven programming''' is a computer Programming_paradigm used by traditional programs, which follow their own control flow pattern, only sometimes changing course at branch points (in this, it is markedly similar to Procedural_programming). Many common programs will fall under this paradigm, for example, Wget would seem to fall under it, as the flow of the program is not based on outside events, but rather on the operations as structured in the program being performed. This is in contrast to Event-driven_programming, which is especially common in applications which are asynchronous, such as a text editor, a kernel, or a GUI application. The direct opposite to flow-driven programming is Event-driven_programming; in this paradigm, the program is not in control of when it receives input - it merely processes the data received through a Callback or similar and takes the needed course of action. Due to the prerequisite state constraints, event-driven programming tends to be favoured by Purely_functional languages, whereas flow-driven programming is embodied better in Imperative_programming languages. However, monads have proven powerful enough to use an imperative style in a purely functional language with a small amount of purely syntactical (ie, no semantic, only providing a nicer way of writing what could be written before) sugar, allowing a more flow-driven approach. In fact, it is possible to view Monadic_binding itself as a flow mechanism, so that monadic programming and flow-driven programming coincide is no great surprise. {{compu-sci-stub}} Category:Programming_paradigms