Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
Thinking in Python - Design Patterns and Problem-Solving Techniques

Thinking in Python - Design Patterns and Problem-Solving Techniques

Ratings: (0)|Views: 249 |Likes:
Published by iehudiel

More info:

Published by: iehudiel on Dec 23, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/20/2014

pdf

text

original

 
Thinking
in
Python
Design Patterns andProblem-SolvingTechniques
Bruce Eckel
President, MindView, Inc.
Please note that this document is in its initial form, and much remains to be done.
 
Contents
Preface 5
 
Introduction 7
 
The Y2K syndrome..............8
 
Context and composition....9
 
 A quick course in Python for programmers 11
 
Python overview.................11
 
Built-in containers........................12
 
Functions......................................13
 
Strings...........................................14
 
Classes...........................................16
 
The pattern concept 21
 
 What is a pattern?.............21
 
Pattern taxonomy..............23
 
Design Structures..............24
 
Design principles...............25
 
The Singleton.....................27
 
Classifying patterns...........32
 
The development challenge33
 
Exercises............................34
 
2: Unit Testing 34
 
 Write tests first..................36
 
Simple Python testing.......37
 
 A very simple framework..38
 
 Writing tests......................39
 
 White-box & black-box tests42
 
Running tests.....................44
 
 Automatically executing tests47
 
Exercises............................47
 
3: Building application frameworks 47
 
Template method..............48
 
Exercises............................49
 

Activity (4)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
rst13 liked this
starchei liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->