Details

Good Habits for Great Coding


Good Habits for Great Coding

Improving Programming Skills with Examples in Python

von: Michael Stueben

22,99 €

Verlag: Apress
Format: PDF
Veröffentl.: 12.03.2018
ISBN/EAN: 9781484234594
Sprache: englisch

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

Improve your coding skills and learn how to write readable code. Rather than teach basic programming, this book presumes that readers understand the fundamentals, and offers time-honed best practices for style, design, documenting, testing, refactoring, and more. Taking an informal, conversational tone, author Michael Stueben offers programming stories, anecdotes, observations, advice, tricks, examples, and challenges based on his 38 years experience writing code and teaching programming classes. Trying to teach style to beginners is notoriously difficult and can easily appear pedantic. Instead, this book offers solutions and many examples to back up his ideas. Good Habits for Great Coding distills Stueben's three decades of analyzing his own mistakes, analyzing student mistakes, searching for problems that teach lessons, and searching for simple examples to illustrate complex ideas.  Having found that most learn by trying out challenging problems, and reflecting on them, each chapter includes quizzes and problems. The final chapter introduces dynamic programming to reduce complex problems to subcases, and illustrates many concepts discussed in the book. Code samples are provided in Python and designed to be understandable by readers familiar with any modern programming language. At the end of this book, you will have acquired a lifetime of good coding advice, the lessons the author wishes he had learned when he was a novice.What You'll LearnCreate readable code through examples of good and bad styleWrite difficult algorithms by comparing your code to the author's codeDerive and code difficult algorithms using dynamic programmingUnderstand the psychology of the coding processWho This Book Is ForStudents or novice programmers who have taken a beginning programming course and understand coding basics. Teachers will appreciate the author's road-tested ideas that they may apply to their own teaching.
Part 1: Not Learned in School1. A Coding Fantasy 2. Coding Tricks 3. Style4. More Coding TricksPart 2: Coding Advice5. Function Design 6. Self-Documenting Code 7. Step-wise refinement.8. Comments. 9. Stop Coding. 10. Testing 11. Defensive Programming12. Refactoring 13. Write the Tests First (Sometimes) 14. Expert AdvicePart 3: Perspective15. A Lesson in Design 16. Beware of OOP 17. The Evolution of a Function 18. Do Not Snub Inefficient Algorithms Part 4: Walk the Walk19. Problems Worth Solving 20. Problem Solving 21. Dynamic Programming
Michael Stueben started teaching Fortran at Fairfax High School in Virginia in 1977. Eventually the high school computer science curriculum changed from Fortran to BASIC, Pascal, C, C++, Java, and finally to Python. In the last five years, Stueben taught artificial intelligence at Thomas Jefferson High School for Science and Technology in Alexandria, VA. Along the way, he wrote a regular puzzle column for Discover Magazine, published articles in Mathematics Teacher and Mathematics Magazine, published a book on teaching high school mathematics: Twenty Years Before the Blackboard (Mathematical Association of America, 1998). In 2006 he received a Distinguished High School Mathematics Teaching / Edyth May Sliffe Award from the Mathematical Association of America.
Improve your coding skills and learn how to write readable code. Rather than teach basic programming, this book presumes that readers understand the fundamentals, and offers time-honed best practices for style, design, documenting, testing, refactoring, and more. Taking an informal, conversational tone, author Michael Stueben offers programming stories, anecdotes, observations, advice, tricks, examples, and challenges based on his 38 years experience writing code and teaching programming classes. Trying to teach style to beginners is notoriously difficult and can easily appear pedantic. Instead, this book offers solutions and many examples to back up his ideas.Good Habits for Great Coding distills Stueben's three decades of analyzing his own mistakes, analyzing student mistakes, searching for problems that teach lessons, and searching for simple examples to illustrate complex ideas.  Having found that most learn by trying out challenging problems, and reflecting on them, each chapter includes quizzes and problems in each chapter. The final chapter introduces dynamic programming to reduce complex problems to subcases, and illustrates many concepts discussed in the book. Code samples are provided in Python and designed to be understandable by readers familiar with any modern programming language. At the end of this book, you will have acquired a lifetime of good coding advice; the lessons the author wishes he had learned when he was a novice.
Distills a lifetime of lessons learned to provide advice, unique insights, and best practices to improve your coding skillsTeaches how to write code that is readable, with attention to good coding styleContains many code samples in Python which are accessible to beginning programmers in any language

Diese Produkte könnten Sie auch interessieren:

c't wissen Python-Projekte (2018)
c't wissen Python-Projekte (2018)
von: c't-Redaktion
PDF ebook
8,99 €
Python Graphics
Python Graphics
von: B.J. Korites
PDF ebook
29,99 €
Java EE 8 Recipes
Java EE 8 Recipes
von: Josh Juneau
PDF ebook
52,99 €