Comment

Comment by ariebovenberg

I've certainly seen things like this attempted. Developer ingenuity is endless when given a `self` variable in Python, I've noticed.

It shows just how inheritance is such a blursed way in general of extending code. Designing a base class is such an art, and even if you get it right, there's little to stop subclasses from extending beyond the carefully designed parts it is allowed to modify.

Django views are probably the place where I've seen this work the best--but certainly not foolproof

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton