Sujet : Re: Top 10 most common hard skills listed on resumes...
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 28. Aug 2024, 00:50:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <valoof$35rt8$8@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Pan/0.160 (Toresk; )
On Tue, 27 Aug 2024 12:44:43 +0300, Michael S wrote:
Most typically, first read about abstract concept goes
straight above my head.
This is why you need good examples. Generalization is all very well,
until your audience fails to grasp why the generalization is actually
useful.
Consider the “descriptor” concept in Python
<
https://docs.python.org/3/reference/datamodel.html#implementing-descriptors>.
Can you appreciate, from that bare-bones description in §3.3.2.2 and
§3.3.2.3, how useful they are? I certainly didn’t.
But on further study, I discovered that descriptors are key to how the
whole class system works in Python. Every function is a descriptor.
And then you discover that builtin functions like “classmethod” and
“property” are just conveniences: you could write them yourself in
regular Python code if you wanted to, since they don’t rely on any
magic internal to the particular Python implementation.
A similar thing applies to metaclasses.