The best way to learn design in any field is to study examples, and some of the best examples of software design come from the tools programmers use in their own work. Software Design by Example: A Tool-Based Introduction with Python therefore builds small versions of the things programmers use in order to demystify them and give some insights into how experienced programmers think. From a file backup system and a testing framework to a regular expression matcher, a browser layout engine, and a very small compiler, we explore common design patterns, show how making code easier to test also makes it easier to reuse, and help readers understand how debuggers, profilers, package managers, and version control systems work so that they can use them more effectively.This material can be used for self-paced study, in an undergraduate course on software design, or as the core of an intensive weeklong workshop for working programmers. Each chapter has a set of exercises ranging in size and difficulty from half a dozen lines to a full day’s work. Readers should be familiar with the basics of modern Python, but the more advanced features of the language are explained and illustrated as they are introduced.All the written material in this project can be freely reused under the terms of the Creative Commons - Attribution license, while all of the software is made available under the terms of the Hippocratic License. All proceeds from sale of this book will go to support the Red Door Family Shelter in Toronto.Features:Teaches software design by showing programmers how to build the tools they use every dayEach chapter includes exercises to help readers check and deepen their understandingAll the example code can be downloaded, re-used, and modified under an open license
Les mer
Software Design by Example: A Tool-Based Introduction with Python builds small versions of the things programmers use in order to give some insights into how experienced programmers think. This material can be used for self-paced study, in an undergraduate course on software design, or as an intensive workshop for programmers.
Les mer
1 Introduction2 Objects and Classes3 Finding Duplicate Files 4 Matching Patterns 5 Parsing Text 6 Running Tests7 An Interpreter8 Functions and Closures9 Protocols10 A File Archiver11 An HTML Validator12 A Template Expander13 A Code Linter14 Page Layout15 Performance Profiling16 Object Persistence17 Binary Data18 A Database19 A Build Manager20 A Package Manager21 Transferring Files22 Serving Web Pages23 A File Viewer24 Undo and Redo 25 A Virtual Machine 26 A Debugger 27 Conclusion A Bibliography B Bonus Material C SyllabusD LicenseE Code of ConductF ContributingG GlossaryH CreditsIndex
Les mer

Produktdetaljer

ISBN
9781032725215
Publisert
2024-04-05
Utgiver
Vendor
Chapman & Hall/CRC
Vekt
453 gr
Høyde
254 mm
Bredde
178 mm
Aldersnivå
P, 06
Språk
Product language
Engelsk
Format
Product format
Heftet
Antall sider
330

Forfatter

Biographical note

Dr. Greg Wilson is a programmer, author, and educator based in Toronto. He co-founded and was the first Executive Director of Software Carpentry, which has taught basic software skills to tens of thousands of researchers worldwide, and has authored or edited over a dozen books (including two for children). Greg is a member of the Python Software Foundation and a recipient of ACM SIGSOFT's Influential Educator of the Year award.