Adam DonaghyMock the network; with mock service workers.While I’ve been developing recently it’s always been nice to mock the network rather than the service that hits the network. It’s a small…Mar 8, 2021Mar 8, 2021
Adam DonaghyDjango Rest Swagger for SDK generation — no extra code requiredIf you ever need to generate an SDK for an API you’ve built, you can make your life a lot easier by doing it in with Django Rest Framework…Oct 29, 2017Oct 29, 2017
Adam Donaghy5 Easy ways to write better codeYour colleagues will like you more.Dec 30, 2016Dec 30, 2016
Adam DonaghyThe Extra Methods Your Python Class Needs!Python has some beautiful things builtin to their classes. You’ll never see them half the time, but if you implement them they’re pretty…Oct 17, 2016Oct 17, 2016
Adam DonaghyPython Decorators — A beginners guidePython decorators are a super powerful way to apply generic logic to functions by wrapping them in another function. This makes them…Oct 16, 2016Oct 16, 2016
Adam DonaghyUnit Testing Django MiddlewareUntil recently unit testing middleware was a bit of a bit of a mystery. Getting unit tests on everything is pretty important, so I figured…Oct 11, 20161Oct 11, 20161
Adam DonaghyWhy Django Middleware is so darn coolDjango is great for a bunch of reasons, one of the coolest is the built in middleware for security, sessions and a bunch of other nifty…Sep 2, 20162Sep 2, 20162