stfn :raspberrypi: :python: on Nostr: New blog post! This time it's my first post about slightly advanced programming in ...
New blog post!
This time it's my first post about slightly advanced programming in Python. I talk about using the dependency injection design pattern to separate business logic from I/O calls to have cleaner code and simpler tests.
Well, actually the topic is more generic and can be applied to any programming language, but here I use Python as an example.
Anyway, here it is!
https://stfn.pl/blog/62-python-dependency-injection/
#python #programming #softwaredevelopment #pytest
This time it's my first post about slightly advanced programming in Python. I talk about using the dependency injection design pattern to separate business logic from I/O calls to have cleaner code and simpler tests.
Well, actually the topic is more generic and can be applied to any programming language, but here I use Python as an example.
Anyway, here it is!
https://stfn.pl/blog/62-python-dependency-injection/
#python #programming #softwaredevelopment #pytest