Good Code, Bad Code
eBook - ePub

Good Code, Bad Code

Think like a software engineer

  1. 376 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Good Code, Bad Code

Think like a software engineer

About this book

Practical techniques for writing code that is robust, reliable, and easy for team members to understand and adapt. Summary
In Good Code, Bad Code you'll learn how to: Think about code like an effective software engineer
Write functions that read like well-structured sentences
Ensure code is reliable and bug free
Effectively unit test code
Identify code that can cause problems and improve it
Write code that is reusable and adaptable to new requirements
Improve your medium and long-term productivity
Save yourself and your team time The difference between good code or bad code often comes down to how you apply the established practices of the software development community. In Good Code, Bad Code you'll learn how to boost your productivity and effectiveness with code development insights normally only learned through careful mentorship and hundreds of code reviews. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the technology
Software development is a team sport. For an application to succeed, your code needs to be robust and easy for others to understand, maintain, and adapt. Whether you're working on an enterprise team, contributing to an open source project, or bootstrapping a startup, it pays to know the difference between good code and bad code. About the book
Good Code, Bad Code is a clear, practical introduction to writing code that's a snap to read, apply, and remember. With dozens of instantly-useful techniques, you'll find coding insights that normally take years of experience to master. In this fast-paced guide, Google software engineer Tom Long teaches you a host of rules to apply, along with advice on when to break them! What's inside Write functions that read like sentences
Ensure your code stays bug-free
How to sniff out bad code
Save time for yourself and your team About the reader
For coders early in their careers who are familiar with an object-oriented language, such as Java or C#. About the author
Tom Long is a software engineer at Google where he works as a tech lead. Among other tasks, he regularly mentors new software engineers in professional coding best practices. Table of Contents PART 1 IN THEORY
1 Code quality
2 Layers of abstraction
3 Other engineers and code contracts
4 Errors
PART 2 IN PRACTICE
5 Make code readable
6 Avoid surprises
7 Make code hard to misuse
8 Make code modular
9 Make code reusable and generalizable
PART 3 UNIT TESTING
10 Unit testing principles
11 Unit testing practices

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Good Code, Bad Code by Tom Long in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Good Code, Bad Code
  2. Copyright
  3. contents
  4. front matter
  5. Part 1 In theory
  6. 1 Code quality
  7. 2 Layers of abstraction
  8. 3 Other engineers and code contracts
  9. 4 Errors
  10. Part 2 In practice
  11. 5 Make code readable
  12. 6 Avoid surprises
  13. 7 Make code hard to misuse
  14. 8 Make code modular
  15. 9 Make code reusable and generalizable
  16. Part 3 Unit testing
  17. 10 Unit testing principles
  18. 11 Unit testing practices
  19. Appendix A. Chocolate brownie recipe
  20. Appendix B. Null safety and optionals
  21. Appendix C. Extra code examples
  22. index