The Art of Subclassing

  Рет қаралды 39,504

Next Day Video

Next Day Video

Күн бұрын

Пікірлер: 19
@SpomenkoJabucar
@SpomenkoJabucar 7 жыл бұрын
Raymond Hettinger - the man who decided to have a child to make his subclassing examples easier for us to understand.
@karthickb1973
@karthickb1973 10 ай бұрын
😀
@arunprasath9586
@arunprasath9586 10 жыл бұрын
Raymond Hettinger is a legend! You learn 10 times more watching him talk than reading a book!!
@adamhendry945
@adamhendry945 2 жыл бұрын
FYI, when he says the "Framework" pattern, this is actually the "Template" pattern in the original GoF book. The principle explained is correct, just the name is off. It's also referred to as the "Hollywood principle" (i.e. "Don't call us, we'll call you") or Inversion of Control (IoC) principle. Great talk!
@salkdjfasldkfjsdlk
@salkdjfasldkfjsdlk 9 жыл бұрын
Great video as always. You definitely changed my UML relationships from "inherits from" to "delegates to". Cheers
@asmeurer
@asmeurer 12 жыл бұрын
Great talk. One thing that should be pointed out is that if you do want to subclass a built-in type like dict and avoid gotchas like __getitem__() not affecting get(), you can use abstract base classes from the standard library abc module, which take care of overriding all the methods for you.
@joelcastellon9129
@joelcastellon9129 8 жыл бұрын
I don't understand why python is presented as "easy" or "novice" language. If you come from the "status quo" of programming (Java, C++) you really have appreciate beautiful design of Python. I actually believe, doing serious coding in Python requires MUCH more care and thought than Java (from my experience).
@liesdamnlies3372
@liesdamnlies3372 7 жыл бұрын
I completely agree. A long time ago I fiddled with Python for fun but I didn't really get much of anywhere. Now I'm returning to it, after having taken formal (i.e. in an actual college) Java and C++ courses, and holy fuck, it's beautiful. The decisions they made become a lot clearer once you have a better grasp of the "under the hood" logic that goes on in a computer. Python may be the epitome of "easy to learn, difficult to master".
@yoyoyoyoyoyo907
@yoyoyoyoyoyo907 10 жыл бұрын
Great presentation. Very useful for someone coming from Java/C++ background. OOP in Python is quite different from what is being taught in today's CS curricula, this clears few things up.
@jorgegimeno3869
@jorgegimeno3869 8 жыл бұрын
I really don't know why I didn't watch this earlier. A lot of the talks on classes in Python now make sense to me.
@otter-pro
@otter-pro 11 жыл бұрын
Excellent talk. I learned a lot and I raised my hands at interval
@pedlezelnip
@pedlezelnip 12 жыл бұрын
"The class with the most reusable code should be the top-most parent" I disagree. Part of the benefit of having a heirarchy match a taxonomy is knowledge transfer. By arguing that code reuse is the only metric that matters he misses one of the key benefits of OO thinking. He would argue that you need to "unlearn" that, but there's a cost associated with that he doesn't account for (my knowledge of the natural world I'm trying to model no longer applies to my code). This hurts readability ALOT.
@matthewzeller5026
@matthewzeller5026 6 жыл бұрын
This is awesome! Thank you.
@sotirisf
@sotirisf 8 жыл бұрын
what does the man from the audience shout at 31:59 ??
@davidedwards5069
@davidedwards5069 8 жыл бұрын
+sotirisf "Amen!"
@sotirisf
@sotirisf 8 жыл бұрын
+Dave Edwards hahahaha thanks!!!
@SalsaTiger83
@SalsaTiger83 12 жыл бұрын
Your sentence structure hurts readability a lot. Taxonomic thinking is a convention in other languages. In Python, reusability trumps object orientation or taxonomy.
@AlexanderArtemenko
@AlexanderArtemenko 12 жыл бұрын
Boring. I've had much more fun from "Stop Writing Classes".
@MMABeijing
@MMABeijing 5 жыл бұрын
I know it's been a long time but that was a good one, thank you for that daily dose of sarcastic humor
Keynote
42:57
Next Day Video
Рет қаралды 31 М.
Stop Writing Classes
27:29
Next Day Video
Рет қаралды 936 М.
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 21 МЛН
怎么能插队呢!#火影忍者 #佐助 #家庭
00:12
火影忍者一家
Рет қаралды 32 МЛН
Raymond Hettinger - Super considered super! - PyCon 2015
46:52
PyCon 2015
Рет қаралды 123 М.
When Booleans Are Not Enough... State Machines?
21:50
Next Day Video
Рет қаралды 25 М.
Loop like a native: while, for, iterators, generators
29:15
Next Day Video
Рет қаралды 118 М.
Python's Class Development Toolkit
45:56
Next Day Video
Рет қаралды 239 М.
Raymond Hettinger «Build powerful, new data structures with Python's abstract base classes»
1:02:01
Видео с мероприятий {speach!
Рет қаралды 35 М.
Raymond Hettinger, Keynote on Concurrency, PyBay 2017
1:13:53
SF Python
Рет қаралды 152 М.
Transforming Code into Beautiful, Idiomatic Python
48:51
Next Day Video
Рет қаралды 1 МЛН
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 21 МЛН