Better Python Code: A Guide for Aspiring Experts (Final)
- Добавил: literator
- Дата: 17-11-2023, 15:39
- Комментариев: 0
![](/uploads/posts/2023-11/thumbs/1700224786_better-python-code.jpg)
Автор: David Mertz
Издательство: Addison-Wesley Professional/Pearson Education
Год: 2024
Страниц: 510
Язык: английский
Формат: epub
Размер: 23.8 MB
Python is one of the most widely used programming languages in the world. It is used everywhere from primary school education to workaday web development, to the most advanced scientific research institutes of the world. However, like all programming languages, Python has a collection of "Pythonic" ways of accomplishing tasks that are easy to overlook, especially when habits are borrowed wholesale from work in other programming languages.
Better Python Code is a guide to Pythonic programming. The book presents common mistakes that Python developers make--even Python developers who have used the language for years--often because Python sometimes presents "attractive nuisances." Throughout, the book is a guide to better programming in the core Python language.
Each section shows a concrete but concise example of some misunderstanding or bad habit in action. Each section contains a description of what is wrong with the sample code and a suggestion for one or more better ways to code equivalent functionality without the initial pitfall. Every pitfall addressed in this book reflects foibles, errors, and misunderstandings that the author as seen in concrete, widely used code bases written by experienced developers, over his 25 years of writing Python.
The sections of this book each present some mistake, pitfall, or foible that developers can easily fall into, and are accompanied by descriptions of ways to avoid making them. At times those solutions simply involve a minor change in “spelling,” but in most cases they require a nuance of thought and design in your code. Many of the discussions do something else as well…
I do not hope only to show you something you did not know, but in a great many cases I hope to show you something about which you did not know there was something to know. I believe that the most effective writing and teaching conveys to readers or students not only information, but also good ways of thinking about problems and reasoning about their particular solutions. The info boxes, footnotes, and silly digressions within this book all hope to allow you to think deeper about a particular domain, or a particular task, or a particular style of programming.
There is no need to read this book from cover to cover (but I believe that readers who do so will benefit). Each chapter addresses a related cluster of concepts, but stands alone. Moreover, each section within a chapter is also self-contained. Each can be read independently of the others, and most readers will learn something interesting in each one. Some of the sections are more advanced than others, but even in those that seem introductory, I think you will find nuances you did not know. And even in those that seem advanced, I hope you will find the discussions accessible and enlightening.
Both beginners and developers with decades of experience will learn to correct limitations in the code they write after reflecting on these discussions.
Скачать Better Python Code: A Guide for Aspiring Experts (Final)
![](/templates/LitmyL/images/LitMyru.png)
[related-news] [/related-news]
Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.