Python devs, I'd like your opinion on putting extensive business logic in `__init__.py`.
It makes me feel a bit icky because it often leads to unavoidable imports. Sometimes, it gets mixed with import shortcut definitions and other administrative stuff.
Personally, I like my inits to be empty, as much as possible.
But maybe that is just me being silly.
So, what do you think of business logic in `__init__.py`?
#Python
Marijke Luttekes
Marijke Luttekes
npub1dadk...33m8
Hello, I am Marijke (pronounced Mah-Rye-Kuh), a web developer from Groningen, The Netherlands.
I am a back-end developer, and am also passionate about front-end web development and accessibility.
Preferred tools: Python, Django, HTML, CSS, a sprinkle of JavaScript, and lots of tea. :teapot:
Member of the Django Software Foundation (DSF) and Django Accessibility Team. π
Pronouns: she/her
Location: Groningen, The Netherlands
Personal website: https://marijkeluttekes.dev
Professional website: https://mah-rye-kuh.nl
While owning your blog is not for everyone, I would love to see devs move away from Medium and similarly annoying platforms.
Given that there are static site generators that generate simple sites you could upload with (S)FTP, itβs surely worth considering for every blogger.