Stop Writing Classes
Sign in to YouTube
Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like NextDayVideo's video.
Sign in to YouTube
Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike NextDayVideo's video.
Sign in to YouTube
Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add NextDayVideo's video to your playlist.
Published on Mar 15, 2012
Jack Diederich
Classes are great but they are also overused. This talk will describe examples of class overuse taken from real world code and refactor the unnecessary classes, exceptions, and modules out of them.
-
Category
-
License
Standard YouTube License
Loading...
Loading...
Loading...
The interactive transcript could not be loaded.
Loading...
Loading...
Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Loading...
-
5:49
The Indian CHUCK NORRIS (VERRY FUNNY)by KolleAlexeiUKRFeatured
250,447
-
26:24
Militarizing Your Backyard with Python: Computer Vision and the Squirrel Hordesby NextDayVideo's channel
156,754 views
-
8:43
14-Year-Old Prodigy Programmer Dreams In Codeby THNKR
735,215 views
-
59:57
Keynote: Guido Van Rossumby NextDayVideo's channel
30,943 views
-
47:29
Keynote: Paul Graham, YCombinatorby NextDayVideo's channel
37,442 views
-
24:15
PyCon UK 2012: Create *beautiful* command-line interfaces with Pythonby Vladimir Keleshev
14,122 views
-
1:18:41
How to Write Clean, Testable Codeby Google Tech Talks
69,500 views
-
39:48
The Art of Subclassingby NextDayVideo
5,265 views
-
39:59
IPython: Python at your fingertipsby NextDayVideo
47,356 views
-
3:19:27
Introduction to NumPy and Matplotlibby NextDayVideo
22,741 views
-
37:14
Python Metaprogramming for Mad Scientists and Evil Geniusesby NextDayVideo's channel
4,609 views
-
34:21
Storm: the Hadoop of Realtime Stream Processingby NextDayVideo's channel
8,558 views
-
29:06
How the PyPy JIT worksby NextDayVideo's channel
4,108 views
-
36:21
Pragmatic Unicode, or, How do I stop the pain?by NextDayVideo
8,282 views
-
0:32
Lamborghini Teasing The Policeby supercarsoflondon
4,213,004 views
-
36:47
Michał Taszycki: Programming Workoutby wrocloverb
17,451 views
-
45:59
Stepping Through CPythonby NextDayVideo's channel
5,137 views
-
29:05
Building a Robot that Can Play Angry Birds on a Smartphone, (or Robots are the Future of Testing)by NextDayVideo's channel
10,571 views
-
47:15
Testing and Djangoby NextDayVideo's channel
6,478 views
-
29:01
Decorators and Context Managersby NextDayVideo's channel
1,761 views
- Loading more suggestions...
Top Comments
Soshize 1 year ago
WTF?!: "Seperation of Concerns, Decoupling, Encapsulation, Implementation Hiding - I haven't used these words in 15 years, anyone who uses these words is trying to pull a fast one on you, it just doesn't come up"
Sign in to YouTube
Sign in to YouTube
James Schneider 1 year ago
Just because abstract classes and formal interfaces aren't native to Python doesn't mean Python programers can't implement the good design principles they help enforce. We're talking about good design here. Replacing crappy classes with crappy functions doesn't really improve the design/code at all.
Sign in to YouTube
Sign in to YouTube
All Comments (50)
John Doe 1 week ago
He's giving a talk as if he was a real programmer.
Sign in to YouTube
Sign in to YouTube
gueneykerim 3 weeks ago
I don't really get the Muffin API. If he could do it so easily, why get a third-party API in the first place?
Sign in to YouTube
Sign in to YouTube
ulogacms 3 weeks ago
LOL!
Sign in to YouTube
Sign in to YouTube
Talaxy 4 weeks ago
Interesting but a little subjective.
Sign in to YouTube
Sign in to YouTube
cranespud 1 month ago
I advocate for good design and structure, but also I strongly agree with not over design, one should plan for the future but not invest too much effort on it. for example I'll model this as a class because it has a good chance to be overload or subclassed, but I'm not creating the whole inheritance structure.
Sign in to YouTube
Sign in to YouTube
zendakk 1 month ago
Go troll elsewhere.
Sign in to YouTube
Sign in to YouTube
ChesterDoraemon 1 month ago
This comment has received too many negative votes show
python is a piece of shit language. only our support guys use python. they wish they had the skills to be on the developer team that writes the C++ code.
Sign in to YouTube
Sign in to YouTube
GathGealaich 1 month ago
"1: Mostly no point in abstract base classes in duck-typed languages."
Especially in those in which can have mixable traits. (Well, perhaps they could be used for documentation purposes, I don't know.)
Sign in to YouTube
Sign in to YouTube
advance512 2 months ago
But, this guy also has some silly points:
1: His Web API is simple, but it doesn't tell the coder what verbs/nouns exist. This requires looking a documentation instead of using auto-completion lists.
2. All of the "words he hasn't used in 15 years" allow for using 3rd party modules a lot simpler and quicker for most devs.
3. His implementation of the Game of Life is very clever, but it will be a maintainence nightmare as it just seems obfuscated, and changing certain parts of it will suck.
Sign in to YouTube
Sign in to YouTube
advance512 2 months ago
Hmm, this guy has some good points.
1: Mostly no point in abstract base classes in duck-typed languages.
2: No point in making function objects (functors) when there is no interface concept.
3: Less code is mostly better, but only if it is simpler.
4: Preparing the code for the future is ok, if it requires minimal effort. Otherwise it is pointless.
5: Namespaces should not be abused. But they are helpful sometimes, for organization purposes. In auto-completion lists they are crucial.
Sign in to YouTube
Sign in to YouTube