paint-brush
Leveraging Google's Pinject to Write Loosely Coupled Python Codeby@lastlegion
803 reads
803 reads

Leveraging Google's Pinject to Write Loosely Coupled Python Code

by Ganesh Iyer4mSeptember 6th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Dependency Injection is a set of software design principles that enable engineers to develop loosely coupled code. In this post, we’re going to see how we can leverage Google’s Pinject library to help us write loosely coupled Python code. Our example is an intentionally convoluted application that employs the 3 layered application model to print “Hello World” on the user's screen. Pinject has defaults based on PEP8 and implicitly binds classes based on conventions. An arg named Foo will automatically be bounded to the class on the class Foo.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Leveraging Google's Pinject to Write Loosely Coupled Python Code
Ganesh Iyer HackerNoon profile picture
Ganesh Iyer

Ganesh Iyer

@lastlegion

L O A D I N G
. . . comments & more!

About Author

Ganesh Iyer HackerNoon profile picture
Ganesh Iyer@lastlegion

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite