Object-Oriented Paradigms – Best Practices for UI Programming

object-orientedparadigms

This is a more specific question (or actually two, but they are related) coming from the comments of OOP technology death where someone stated that OOP is not the right paradigm for GUI programming.

Reading the comments there and here I still have the feeling there are things to learn: which programming paradigms are considered good fits and why are they better than others (perhaps with examples to illustrate?)

I removed the tk-example from the title and question

Best Answer

I'm not normally a proponent of OOP, but I would say that GUI programming presents some of the best opportunities to use the strong points of OOP. Implementing various widgets is made a lot easier by using OOP's polymorphism and inheritance. PLT Racket's GUI library is a good example.