Mobile Python: Rapid Prototyping of Applications on the Mobile Platform
by Jürgen Scheible, Ville Tuulos
Chapter 10. Effective Python for S60
In the previous chapters we have deliberately avoided some advanced programming techniques to focus on the functionalities of the mobile platform. Many of the examples could be made shorter and more elegant with techniques that are in this chapter.
Section 10.1 presents some powerful constructs of the Python language that we omitted in the earlier chapters. In Section 10.2, we describe how you can avoid clumsy static constructs by deciding what to do with run-time introspection.
Techniques presented in Section 10.3 really put the word rapid into rapid development. These methods, related to modularization, extensibility and updating of PyS60 programs, have proven to be immensely useful not only during the development process, but also for deployment and maintenance.
Section 10.4 shows another viewpoint of the examples in this book. We summarize notable recurring patterns in the structure of PyS60 programs, which help you to generalize the examples of this book to practically any real-world setting. Finally, in Section 10.5, we present seven crystallized thoughts about PyS60 programming.
All in all, be prepared for a serious productivity boost!
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access