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 am opposed to writing about the private lives of living authors and psychoanalyzing them while they are alive. Criticism is getting all mixed up with a combination of the Junior F.B.I.- men, discards from Freud and Jung and a sort of Columnist peep- hole and missing laundry list school.... Every young English professor sees gold in them dirty sheets now. Imagine what they can do with the soiled sheets of four legal beds by the same writer and you can see why their tongues are slavering.”
—Ernest Hemingway (18991961)
“The practice of S/M is the creation of pleasure.... And thats why S/M is really a subculture. Its a process of invention. S/M is the use of a strategic relationship as a source of pleasure.”
—Michel Foucault (19261984)