Clean Ruby
A Guide to Crafting Better Code for Rubyists
(Sprache: Englisch)
Learn how to make better decisions and write cleaner Ruby code. This book shows you how to avoid messy code that is hard to test and which cripples productivity. Author Carleton DiLeo shares hard-learned lessons gained from years of experience across...
Voraussichtlich lieferbar in 3 Tag(en)
versandkostenfrei
Buch (Kartoniert)
Fr. 53.50
inkl. MwSt.
- Kreditkarte, Paypal, Rechnungskauf
- 30 Tage Widerrufsrecht
Produktdetails
Produktinformationen zu „Clean Ruby “
Klappentext zu „Clean Ruby “
Learn how to make better decisions and write cleaner Ruby code. This book shows you how to avoid messy code that is hard to test and which cripples productivity. Author Carleton DiLeo shares hard-learned lessons gained from years of experience across numerous codebases both large and small. Each chapter covers the topics you need to know to make better decisions and optimize your productivity. Many books will tell you how to do something; this book will tell you why you should do it. Start writing code you love. What You Will Learn
- Build better classes to help promote code reuse
- Improve your decision making and make better, smarter choices
- Identify bad code and fixed it
- Create quality names for all of your variables, classes, and modules
- Write better, concise classes
- Improve the quality of your methods
- Properly use modules
- Clarify your Boolean logic
- See when and how you refactor
- Improve your understanding of TDD and write better tests
This book is written for Ruby developers. There is no need to learn a new language or translate concepts to Ruby.
Inhaltsverzeichnis zu „Clean Ruby “
- The Qualities of Clean Code
- Readability
- Extensibility
- Simplicity
- Naming Things
- Variables
- Naming conventions
- The data
- Length
- Avoid unnecessary information
- Avoid conjunctions
- Only alpha characters
- Methods
- Use verbs
- Return value
- Bang methods
- Classes
- Purpose
- Role
- Parameters
- Use fewer parameters
- Parameter order
- Return Values
- Guard Clause
- Length
- How to shorten a method
- Too short
- Comments
- Quality comments
- Stale comments
- Comments and refactoring
- Limit Nesting
- Truthy Values
- Falsy Values
- Keep it Simple
- Avoiding Errors
- Too many parameters
- No change too small
- Tests
- Single Responsibility Principle
Autoren-Porträt von Carleton DiLeo
Carleton DiLeo has been writing code ever since he built his first computer from parts in a dumpster. He has written code from high-traffic websites to back-end big data systems for video games. This wide base of knowledge provides Carleton with a unique perspective when writing Ruby code.
Bibliographische Angaben
- Autor: Carleton DiLeo
- 2019, 1st ed., X, 113 Seiten, Masse: 15,5 x 23,6 cm, Kartoniert (TB), Englisch
- Verlag: Springer, Berlin
- ISBN-10: 1484255453
- ISBN-13: 9781484255452
Sprache:
Englisch
Kommentar zu "Clean Ruby"
0 Gebrauchte Artikel zu „Clean Ruby“
Zustand | Preis | Porto | Zahlung | Verkäufer | Rating |
---|
Schreiben Sie einen Kommentar zu "Clean Ruby".
Kommentar verfassen