Chapter 4. Writing an application and design patterns with IronPython

This chapter covers

  • Duck typing in Python

  • The Model-View-Controller pattern

  • The Command pattern

  • Integrating new commands into MultiDoc

Python as a language goes out of its way to encourage a good clear programming style. It certainly doesn’t enforce it, though; you’re just as free to write obscure and unmaintainable code with Python as you are with any other programming language. When talking to programmers who haven’t used Python, I’m sometimes surprised by their perception that it’s harder to write well-structured programs with Python because it’s a dynamically typed language. In fact, by making it easy to express your intentions and reducing the amount of code you need to write, ...

Get IronPython in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.