Skip to content
Advertisement

Tag: design-patterns

Wrapper to Objects

This is a software design question. I have a folder like this: Each of the countries has its own calendar, like so: What I want is a wrapper to all of these countries’ calendars. In short, something like I don’t want to hard code this. I just want to load all the calendars from the calendar folder into some wrapper.

How to do dependency injection python-way?

I’ve been reading a lot about python-way lately so my question is How to do dependency injection python-way? I am talking about usual scenarios when, for example, service A needs access to UserService for authorization checks. Answer It all depends on the situation. For example, if you use dependency injection for testing purposes — so you can easily mock out

Advertisement