Inversion of Control is another way of thinking about the
interaction of a certain flow of actions of a piece of software are not always
controlled or not necessary in control of the programmer, in which case the
program acts in some cases by itself doing things without human intervention.
These automatic behaviours are often defined by another piece
of software, a clear example by this can be a framework, in which the
instructions and set of pre charged modules of the framework will determine the
actions and the moment in which certain instructions will be called and take
the role of controlling the applications activity and behaviour in an automatic
way.
This, in a simple sense is a king of artificial intelligence,
some pieces of software work by themselves without the need of human or the programmer’s
intervention.
There is another very important concept mentioned in the
article, which is Ioc, this concept is fundamental to understand how it is
possible that a framework can act by itself and make decisions on its own, in
order to determine when to take action an execute certain sections of our
program. It makes clear, which is the difference between a framework and a
library, and explains that a framework is capable of calling code from a
certain source, and a library is simply the definition of any needed functions
in order to make a piece of software work by extending certain functions and classes.
The Ioc method becomes quite useful when we involve the
template method pattern, in the situation where a super class defines the flow
of events and controls how a program will behave in a given scenario.
Some things are meant to be done in an automatic way and
this king of tools become very useful, when quick and automatic decision making
is crucial.
No hay comentarios:
Publicar un comentario