The Art of Readable Code. Simple and Practical Techniques for Writing Better Code
- Autorzy:
- Dustin Boswell, Trevor Foucher
- Ocena:
- Bądź pierwszym, który oceni tę książkę
- Stron:
- 206
- Dostępne formaty:
-
ePubMobi
Opis ebooka: The Art of Readable Code. Simple and Practical Techniques for Writing Better Code
As programmers, we’ve all seen source code that’s so ugly and buggy it makes our brain ache. Over the past five years, authors Dustin Boswell and Trevor Foucher have analyzed hundreds of examples of "bad code" (much of it their own) to determine why they’re bad and how they could be improved. Their conclusion? You need to write code that minimizes the time it would take someone else to understand it—even if that someone else is you.
This book focuses on basic principles and practical techniques you can apply every time you write code. Using easy-to-digest code examples from different languages, each chapter dives into a different aspect of coding, and demonstrates how you can make your code easy to understand.
- Simplify naming, commenting, and formatting with tips that apply to every line of code
- Refine your program’s loops, logic, and variables to reduce complexity and confusion
- Attack problems at the function level, such as reorganizing blocks of code to do one task at a time
- Write effective test code that is thorough and concise—as well as readable
"Being aware of how the code you create affects those who look at it later is an important part of developing software. The authors did a great job in taking you through the different aspects of this challenge, explaining the details with instructive examples."
—Michael Hunger, passionate Software Developer
Wybrane bestsellery
-
To drugie, zaktualizowane wydanie przewodnika po systemie Prometheus. Znajdziesz w nim wyczerpujące wprowadzenie do tego oprogramowania, a także wskazówki dotyczące monitorowania aplikacji i infrastruktury, tworzenia wykresów, przekazywania ostrzeżeń, bezpośredniej instrumentacji kodu i pobierani...
Prometheus w pełnej gotowości. Jak monitorować pracę infrastruktury i wydajność działania aplikacji. Wydanie II Prometheus w pełnej gotowości. Jak monitorować pracę infrastruktury i wydajność działania aplikacji. Wydanie II
(57.85 zł najniższa cena z 30 dni)53.40 zł
89.00 zł(-40%) -
Odkryj moc Dockera i przekształć swój sposób pracy z aplikacjami i infrastrukturą! Ta książka to Twój bilet do świata, gdzie wdrożenia stają się szybsze, a aplikacje bardziej przenośne i bezpieczne. Oto, jak Docker może rewolucjonizować Twój workflow: Izolacja aplikacji: Każda aplikacja dzia...
Docker w 1 dzień. Docker od podstaw, po projektowanie i praktyczne zastosowania Docker w 1 dzień. Docker od podstaw, po projektowanie i praktyczne zastosowania
-
NGINX is one of the most widely used web servers available today, in part because of itscapabilities as a load balancer and reverse proxy server for HTTP and other network protocols. This revised cookbook provides easy-to-follow examples of real-world problems in application delivery. Practical r...(186.15 zł najniższa cena z 30 dni)
186.15 zł
219.00 zł(-15%) -
Kubernetes is the de facto standard for container orchestration and distributed applications management across a microservices framework. With this practical cookbook, you'll learn hands-on Kubernetes recipes for automating the deployment, scaling, and operations of application containers across ...(203.15 zł najniższa cena z 30 dni)
203.15 zł
249.00 zł(-18%) -
In this practical guide, four Kubernetes professionals with deep experience in distributed systems, enterprise application development, and open source will guide you through the process of building applications with this container orchestration system. They distill decades of experience from com...(203.15 zł najniższa cena z 30 dni)
203.15 zł
249.00 zł(-18%) -
Vulnerabilities in software and IT infrastructure pose a major threat to organizations. In response, the Cloud Native Computing Foundation (CNCF) developed the Certified Kubernetes Security Specialist (CKS) certification to verify an administrator's proficiency to protect Kubernetes clusters and ...
Certified Kubernetes Security Specialist (CKS) Study Guide Certified Kubernetes Security Specialist (CKS) Study Guide
(169.14 zł najniższa cena z 30 dni)177.65 zł
209.00 zł(-15%) -
Get up to speed with Prometheus, the metrics-based monitoring system used in production by tens of thousands of organizations. This updated second edition provides site reliability engineers, Kubernetes administrators, and software developers with a hands-on introduction to the most important asp...(203.15 zł najniższa cena z 30 dni)
203.15 zł
249.00 zł(-18%) -
Is Kubernetes ready for stateful workloads? This open source system has become the primary platform for deploying and managing cloud native applications. But because it was originally designed for stateless workloads, working with data on Kubernetes has been challenging. If you want to avoid the ...(211.65 zł najniższa cena z 30 dni)
220.15 zł
259.00 zł(-15%) -
Kubernetes has gained significant popularity over the past few years, with OpenShift as one of its most mature and prominent distributions. But while OpenShift provides several layers of abstraction over vanilla Kubernetes, this software can quickly become overwhelming because of its rich feature...(186.15 zł najniższa cena z 30 dni)
186.15 zł
219.00 zł(-15%) -
The way developers design, build, and run software has changed significantly with the evolution of microservices and containers. These modern architectures offer new distributed primitives that require a different set of practices than many developers, tech leads, and architects are accustomed to...(203.15 zł najniższa cena z 30 dni)
203.15 zł
249.00 zł(-18%)
Ebooka "The Art of Readable Code. Simple and Practical Techniques for Writing Better Code" przeczytasz na:
-
czytnikach Inkbook, Kindle, Pocketbook, Onyx Boox i innych
-
systemach Windows, MacOS i innych
-
systemach Windows, Android, iOS, HarmonyOS
-
na dowolnych urządzeniach i aplikacjach obsługujących formaty: PDF, EPub, Mobi
Masz pytania? Zajrzyj do zakładki Pomoc »
Audiobooka "The Art of Readable Code. Simple and Practical Techniques for Writing Better Code" posłuchasz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolnych urządzeniach i aplikacjach obsługujących format MP3 (pliki spakowane w ZIP)
Masz pytania? Zajrzyj do zakładki Pomoc »
Kurs Video "The Art of Readable Code. Simple and Practical Techniques for Writing Better Code" zobaczysz:
-
w aplikacjach Ebookpoint i Videopoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych z dostępem do najnowszej wersji Twojej przeglądarki internetowej
Szczegóły ebooka
- ISBN Ebooka:
- 978-14-493-1421-7, 9781449314217
- Data wydania ebooka:
- 2011-11-03 Data wydania ebooka często jest dniem wprowadzenia tytułu do sprzedaży i może nie być równoznaczna z datą wydania książki papierowej. Dodatkowe informacje możesz znaleźć w darmowym fragmencie. Jeśli masz wątpliwości skontaktuj się z nami sklep@ebookpoint.pl.
- Język publikacji:
- angielski
- Rozmiar pliku ePub:
- 7.1MB
- Rozmiar pliku Mobi:
- 14.7MB
Spis treści ebooka
- The Art of Readable Code
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Preface
- What This Book Is About
- How to Read This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- 1. Code Should Be Easy to Understand
- What Makes Code Better?
- The Fundamental Theorem of Readability
- Is Smaller Always Better?
- Does Time-Till-Understanding Conflict with Other Goals?
- The Hard Part
- I. Surface-Level Improvements
- 2. Packing Information into Names
- Choose Specific Words
- Finding More Colorful Words
- Choose Specific Words
- Avoid Generic Names Like tmp and retval
- tmp
- Loop Iterators
- The Verdict on Generic Names
- 2. Packing Information into Names
- Prefer Concrete Names over Abstract Names
- Example: DISALLOW_EVIL_CONSTRUCTORS
- Example: --run_locally
- Attaching Extra Information to a Name
- Values with Units
- Encoding Other Important Attributes
- How Long Should a Name Be?
- Shorter Names Are Okay for Shorter Scope
- Typing Long NamesNot a Problem Anymore
- Acronyms and Abbreviations
- Throwing Out Unneeded Words
- Use Name Formatting to Convey Meaning
- Other Formatting Conventions
- Summary
- 3. Names That Cant Be Misconstrued
- Example: Filter()
- Example: Clip(text, length)
- Prefer min and max for (Inclusive) Limits
- Prefer first and last for Inclusive Ranges
- Prefer begin and end for Inclusive/Exclusive Ranges
- Naming Booleans
- Matching Expectations of Users
- Example: get*()
- Example: list::size()
- Example: Evaluating Multiple Name Candidates
- Summary
- 4. Aesthetics
- Why Do Aesthetics Matter?
- Rearrange Line Breaks to Be Consistent and Compact
- Use Methods to Clean Up Irregularity
- Use Column Alignment When Helpful
- Should You Use Column Alignment?
- Pick a Meaningful Order, and Use It Consistently
- Organize Declarations into Blocks
- Break Code into Paragraphs
- Personal Style versus Consistency
- Summary
- 5. Knowing What to Comment
- What NOT to Comment
- Dont Comment Just for the Sake of Commenting
- Dont Comment Bad NamesFix the Names Instead
- What NOT to Comment
- Recording Your Thoughts
- Include Director Commentary
- Comment the Flaws in Your Code
- Comment on Your Constants
- Put Yourself in the Readers Shoes
- Anticipating Likely Questions
- Advertising Likely Pitfalls
- Big Picture Comments
- Summary Comments
- Final ThoughtsGetting Over Writers Block
- Summary
- 6. Making Comments Precise and Compact
- Keep Comments Compact
- Avoid Ambiguous Pronouns
- Polish Sloppy Sentences
- Describe Function Behavior Precisely
- Use Input/Output Examples That Illustrate Corner Cases
- State the Intent of Your Code
- Named Function Parameter Comments
- Use Information-Dense Words
- Summary
- II. Simplifying Loops and Logic
- 7. Making Control Flow Easy to Read
- The Order of Arguments in Conditionals
- The Order of if/else Blocks
- The ?: Conditional Expression (a.k.a. Ternary Operator)
- Avoid do/while Loops
- Returning Early from a Function
- The Infamous goto
- Minimize Nesting
- How Nesting Accumulates
- Removing Nesting by Returning Early
- Removing Nesting Inside Loops
- Can You Follow the Flow of Execution?
- Summary
- 7. Making Control Flow Easy to Read
- 8. Breaking Down Giant Expressions
- Explaining Variables
- Summary Variables
- Using De Morgans Laws
- Abusing Short-Circuit Logic
- Example: Wrestling with Complicated Logic
- Finding a More Elegant Approach
- Breaking Down Giant Statements
- Another Creative Way to Simplify Expressions
- Summary
- 9. Variables and Readability
- Eliminating Variables
- Useless Temporary Variables
- Eliminating Intermediate Results
- Eliminating Control Flow Variables
- Eliminating Variables
- Shrink the Scope of Your Variables
- if Statement Scope in C++
- Creating Private Variables in JavaScript
- JavaScript Global Scope
- No Nested Scope in Python and JavaScript
- Moving Definitions Down
- Prefer Write-Once Variables
- A Final Example
- Summary
- III. Reorganizing Your Code
- 10. Extracting Unrelated Subproblems
- Introductory Example: findClosestLocation()
- Pure Utility Code
- Other General-Purpose Code
- Unexpected Benefits
- Create a Lot of General-Purpose Code
- Project-Specific Functionality
- Simplifying an Existing Interface
- Reshaping an Interface to Your Needs
- Taking Things Too Far
- Summary
- 10. Extracting Unrelated Subproblems
- 11. One Task at a Time
- Tasks Can Be Small
- Extracting Values from an Object
- Applying One Task at a Time
- Another Approach
- A Larger Example
- Further Improvements
- Summary
- 12. Turning Thoughts into Code
- Describing Logic Clearly
- Knowing Your Libraries Helps
- Applying This Method to Larger Problems
- An English Description of the Solution
- Applying the Method Recursively
- Summary
- 13. Writing Less Code
- Dont Bother Implementing That FeatureYou Wont Need It
- Question and Break Down Your Requirements
- Example: A Store Locator
- Example: Adding a Cache
- Keeping Your Codebase Small
- Be Familiar with the Libraries Around You
- Example: Lists and Sets in Python
- Why Reusing Libraries Is Such a Win
- Example: Using Unix Tools Instead of Coding
- Summary
- IV. Selected Topics
- 14. Testing and Readability
- Make Tests Easy to Read and Maintain
- Whats Wrong with This Test?
- Making This Test More Readable
- Creating the Minimal Test Statement
- Implementing Custom Minilanguages
- Making Error Messages Readable
- Using Better Versions of assert()
- Hand-Crafted Error Messages
- 14. Testing and Readability
- Choosing Good Test Inputs
- Simplifying the Input Values
- Multiple Tests of Functionality
- Naming Test Functions
- What Was Wrong with That Test?
- Test-Friendly Development
- Going Too Far
- Summary
- 15. Designing and Implementing a Minute/Hour Counter
- The Problem
- Defining the Class Interface
- Improving the Names
- Improving the Comments
- Attempt 1: A Naive Solution
- Is the Code Easy to Understand?
- An Easier-to-Read Version
- Performance Problems
- Attempt 2: Conveyor Belt Design
- Implementing the Two-Stage Conveyor Belt Design
- Are We Done?
- Attempt 3: A Time-Bucketed Design
- Implementing the Time-Bucketed Design
- Implementing TrailingBucketCounter
- Implementing ConveyorQueue
- Comparing the Three Solutions
- Summary
- A. Further Reading
- Books on Writing High-Quality Code
- Books on Various Programming Topics
- Books of Historical Note
- Index
- About the Authors
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OReilly
O'Reilly Media - inne książki
-
JavaScript gives web developers great power to create rich interactive browser experiences, and much of that power is provided by the browser itself. Modern web APIs enable web-based applications to come to life like never before, supporting actions that once required browser plug-ins. Some are s...(177.65 zł najniższa cena z 30 dni)
186.15 zł
219.00 zł(-15%) -
How will software development and operations have to change to meet the sustainability and green needs of the planet? And what does that imply for development organizations? In this eye-opening book, sustainable software advocates Anne Currie, Sarah Hsu, and Sara Bergman provide a unique overview...(160.65 zł najniższa cena z 30 dni)
169.14 zł
199.00 zł(-15%) -
OpenTelemetry is a revolution in observability data. Instead of running multiple uncoordinated pipelines, OpenTelemetry provides users with a single integrated stream of data, providing multiple sources of high-quality telemetry data: tracing, metrics, logs, RUM, eBPF, and more. This practical gu...(143.65 zł najniższa cena z 30 dni)
143.65 zł
169.00 zł(-15%) -
What will you learn from this book?If you're a software developer looking for a quick on-ramp to software architecture, this handy guide is a great place to start. From the authors of Fundamentals of Software Architecture, Head First Software Architecture teaches you how to think architecturally ...(237.15 zł najniższa cena z 30 dni)
245.65 zł
289.00 zł(-15%) -
If you use Linux in your day-to-day work, then Linux Pocket Guide is the perfect on-the-job reference. This thoroughly updated 20th anniversary edition explains more than 200 Linux commands, including new commands for file handling, package management, version control, file format conversions, an...(92.65 zł najniższa cena z 30 dni)
92.65 zł
119.00 zł(-22%) -
Interested in developing embedded systems? Since they don't tolerate inefficiency, these systems require a disciplined approach to programming. This easy-to-read guide helps you cultivate good development practices based on classic software design patterns and new patterns unique to embedded prog...(152.15 zł najniższa cena z 30 dni)
160.65 zł
189.00 zł(-15%) -
Gain the valuable skills and techniques you need to accelerate the delivery of machine learning solutions. With this practical guide, data scientists, ML engineers, and their leaders will learn how to bridge the gap between data science and Lean product delivery in a practical and simple way. Dav...(237.15 zł najniższa cena z 30 dni)
245.65 zł
289.00 zł(-15%) -
This practical book provides a detailed explanation of the zero trust security model. Zero trust is a security paradigm shift that eliminates the concept of traditional perimeter-based security and requires you to "always assume breach" and "never trust but always verify." The updated edition off...(203.15 zł najniższa cena z 30 dni)
203.15 zł
249.00 zł(-18%) -
Decentralized finance (DeFi) is a rapidly growing field in fintech, having grown from $700 million to $100 billion over the past three years alone. But the lack of reliable information makes this area both risky and murky. In this practical book, experienced securities attorney Alexandra Damsker ...(203.15 zł najniższa cena z 30 dni)
203.15 zł
249.00 zł(-18%) -
Whether you're a startup founder trying to disrupt an industry or an entrepreneur trying to provoke change from within, your biggest challenge is creating a product people actually want. Lean Analytics steers you in the right direction.This book shows you how to validate your initial idea, find t...(126.65 zł najniższa cena z 30 dni)
126.65 zł
149.00 zł(-15%)
Dzieki opcji "Druk na żądanie" do sprzedaży wracają tytuły Grupy Helion, które cieszyły sie dużym zainteresowaniem, a których nakład został wyprzedany.
Dla naszych Czytelników wydrukowaliśmy dodatkową pulę egzemplarzy w technice druku cyfrowego.
Co powinieneś wiedzieć o usłudze "Druk na żądanie":
- usługa obejmuje tylko widoczną poniżej listę tytułów, którą na bieżąco aktualizujemy;
- cena książki może być wyższa od początkowej ceny detalicznej, co jest spowodowane kosztami druku cyfrowego (wyższymi niż koszty tradycyjnego druku offsetowego). Obowiązująca cena jest zawsze podawana na stronie WWW książki;
- zawartość książki wraz z dodatkami (płyta CD, DVD) odpowiada jej pierwotnemu wydaniu i jest w pełni komplementarna;
- usługa nie obejmuje książek w kolorze.
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka, którą chcesz zamówić pochodzi z końcówki nakładu. Oznacza to, że mogą się pojawić drobne defekty (otarcia, rysy, zagięcia).
Co powinieneś wiedzieć o usłudze "Końcówka nakładu":
- usługa obejmuje tylko książki oznaczone tagiem "Końcówka nakładu";
- wady o których mowa powyżej nie podlegają reklamacji;
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka drukowana
Oceny i opinie klientów: The Art of Readable Code. Simple and Practical Techniques for Writing Better Code Dustin Boswell, Trevor Foucher (0) Weryfikacja opinii następuję na podstawie historii zamówień na koncie Użytkownika umieszczającego opinię. Użytkownik mógł otrzymać punkty za opublikowanie opinii uprawniające do uzyskania rabatu w ramach Programu Punktowego.