Leveraging Google's Pinject to Write Loosely Coupled Python Codeby@lastlegion
734 reads

Leveraging Google's Pinject to Write Loosely Coupled Python Code

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

@lastlegion

Ganesh Iyer

Receive Stories from @lastlegion

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa