• Complain

Corey Scott - Hands-On Dependency Injection in Go

Here you can read online Corey Scott - Hands-On Dependency Injection in Go full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: Packt Publishing, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    Hands-On Dependency Injection in Go
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2018
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Hands-On Dependency Injection in Go: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Hands-On Dependency Injection in Go" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Corey Scott: author's other books


Who wrote Hands-On Dependency Injection in Go? Find out the surname, the name of the author of the book and a list of all author's works by series.

Hands-On Dependency Injection in Go — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Hands-On Dependency Injection in Go" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Hands-On Dependency Injection in Go Develop clean Go code that is easier - photo 1
Hands-On Dependency Injection in Go
Develop clean Go code that is easier to read, maintain,
and test
Corey Scott

BIRMINGHAM - MUMBAI Hands-On Dependency Injection in Go Copyright 2018 - photo 2

BIRMINGHAM - MUMBAI
Hands-On Dependency Injection in Go

Copyright 2018 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Commissioning Editor: Aaron Lazar
Acquisition Editor: Shriram Shekhar
Content Development Editor: Akshada Iyer
Technical Editor: Riddesh Dawne
Copy Editor: Safis Editing
Project Coordinator: Prajakta Naik
Proofreader: Safis Editing
Indexer: Tejal Daruwale Soni
Graphics: Jisha Chirayil
Production Coordinator: Jyoti Chauhan

First published: November 2018

Production reference: 1231118

Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.

ISBN 978-1-78913-276-2

www.packtpub.com


To my wife, May; this book would be far less without your help and support, as would I.
- Corey Scott
maptio Mapt is an online digital library that gives you full access to over - photo 3
mapt.io

Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.

Why subscribe?
  • Spend less time learning and more time coding with practical ebooks and videos from over 4,000 industry professionals

  • Improve your learning with Skill Plans built especially for you

  • Get a free eBook or video every month

  • Mapt is fully searchable

  • Copy and paste, print, and bookmark content

Packt.com

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.

At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.

Contributors
About the author

Corey Scot t is a senior software engineer currently living in Melbourne, Australia. He's been programming professionally since 2000, with the last 5 years spent building large-scale distributed services in Go.
An occasional technical speaker and blogger on a variety of software-related topics, he is passionate about designing and building quality software. He believes that software engineering is a craft that should be honed, debated, and continuously improved. He takes a pragmatic, non-zealot approach to coding and is always up for a good debate about software engineering, continuous delivery, testing, or clean coding.

I would firstly like to thank my wife, May, for encouraging me to take on this project, reviewing the content, and getting me through the project.
I would also like to thank my reviewer, Ryan. Your reviews were spot on, and the many suggestions served to make the book notably better.
I would like to thank Chang and Ang for reviewing the outline and for your fantastic suggestions.
Finally, I would like to thank Shriram and Packt for the opportunity.
What this book covers

, Never Stop Aiming for Better , aims to define dependency injection, outline why dependency injection is important for Go development, and introduce several code smells that may be addressed with dependency injection.

, SOLID Design Principles for Go , introduces the SOLID software design principles and how they relate to both dependency injection and programming in Go.

, Coding for User Experience , addresses often overlooked concepts in programming, namely testing and the code's user experience. It also introduces many other concepts, including mocks, stubs, test-induced damage and the dependency graph, that we will use throughout the book.

, Introduction to the ACME Registration Service , introduces a small, fake service that forms the basis for many of our examples in later chapters. It highlights the issues with the service's current implementation and outlines the goals we are hoping to achieve by applying dependency injection.

, Dependency Injection with Monkey Patching , examines monkey patching as a way to swap out dependencies during our tests. This chapter applies monkey patching to our sample service to decouple our tests from the database, and to decouple the different layers from each other, all without resorting to significant refactoring.

, Dependency Injection with Constructor Injection , introduces perhaps the most traditional form of dependency injection constructor injection. This chapter will examine its many advantages, its disadvantages, and show how to successfully apply constructor injection.

, Dependency Injection with Method Injection , introduces the second most common form of dependency injection method injection. This chapter discusses the advantages and disadvantages of method injection and shows how to successfully apply the method for request-scoped dependencies.

, Dependency Injection by Config , introduces config injection. Config injection is an extension of constructor and method injection that intends to improve the usability of the code by reducing the number of parameters.

, Just-in-Time Dependency Injection , discusses another unusual form of dependency injection just-in-time injection. Just-in-time (JIT) injection is a strategy that gives us many of the benefits of dependency injection, such as decoupling and testability, without adding parameters to our constructors or methods.

, Off-the-Shelf Injection , introduces the final dependency injection method dependency injection using a framework. This chapter outlines the advantages and disadvantages related to adopting a dependency injection framework and also introduces and applies Google Go Cloud's wire framework to our sample service.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Hands-On Dependency Injection in Go»

Look at similar books to Hands-On Dependency Injection in Go. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Hands-On Dependency Injection in Go»

Discussion, reviews of the book Hands-On Dependency Injection in Go and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.