Criticism and Best Practice
Event-driven programming is widely used in graphical user interfaces because it has been adopted by most commercial widget toolkits as the model for interaction. The design of those toolkits has been criticized for promoting an over-simplified model of event-action, leading programmers to create error prone, difficult to extend and excessively complex application code:
Such an approach is fertile ground for bugs for at least two reasons:
- It can lead to writing code within the event handler for each possible value of various values in the program, making the source code hard to understand.
- In places where the event code changes variables shared throughout the program, it can require the programmer to write convoluted algorithms to avoid unwanted ripple effects.
Read more about this topic: Event-driven Programming
Famous quotes containing the words criticism and/or practice:
“I consider criticism merely a preliminary excitement, a statement of things a writer has to clear up in his own head sometime or other, probably antecedent to writing; of no value unless it come to fruit in the created work later.”
—Ezra Pound (18851972)
“Abused as we abuse it at present, dramatic art is in no sense cathartic; it is merely a form of emotional masturbation.... It is the rarest thing to find a player who has not had his character affected for the worse by the practice of his profession. Nobody can make a habit of self-exhibition, nobody can exploit his personality for the sake of exercising a kind of hypnotic power over others, and remain untouched by the process.”
—Aldous Huxley (18941963)