2 ms·
> Decorators are very easy to understand I use them every day but I think this view only seems true when one is looking back in hindsight. Even fundamental ide
by chucksmash 11y ago
> Decorators are very easy to understand
I use them every day but I think this view only seems true when one is looking back in hindsight. Even fundamental ideas like assignment and the scoping of variables can be difficult for newbies. To really grok decorators (i.e. not just to use them as prescribed by the Django/Flask/whatever docs but to take the next step and create your own), one needs to be comfortable with the idea of first class functions - not a first day topic, at any rate.