Pages tagged “python”
![](/images/2019/soft-deletable-models_huf5a5a254e22fff9a7d0d3a0426079ecf_812376_100x0_resize_q75_gaussian.jpg)
10 Apr 2019
Think twice before you soft delete
This is a code-heavy blog post about a specific pattern/third party library. I wanted to document the behaviours that other Django developers need to expect if they are not super careful when introducing a concept called soft deletion. Soft deletion, on the face of it, is a neat thing to be able to do. Say you have to write an application to track books in a library. You might create a Book model in your database and have a Loan object that refers to it.![](/images/old/field/image/Screen-Shot-2016-05-14-at-21.02.42_hue57c243a46d8c7095398f74b1832338e_120353_100x0_resize_q75_gaussian_2.png)
14 May 2016
mybinder.org
If you work with Python you should try Jupyter notebooks. A particularly nice service I was introduced to recently is http://mybinder.org - which sets up a notebook server for you, installs whatever you need on it, and lets you (and anyone you care to share a link with) run python, from a web browser. Your code becomes reproducible and tinkerable by anyone, anywhere, without the usual barriers of clone, install, set up.12 Aug 2014