Stop Writing Classes
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.
Jack Diederich - HOWTO Write a Function - PyCon 2018
Speaker: Jack Diederich
A function is a small chunk of code that does useful work. Your job when writing a function is to do it in a way that it easy to read. Based on over 15 years of code reviews here are some tips and guidelines I give again and again.
Slides can be found at: and
Antonio Verardi - Write more decorators (and fewer classes)
Write more decorators (and fewer classes)
[EuroPython 2017 - Talk - 2017-07-11 - Anfiteatro 2]
In the wake of famous talk “Stop Writing Classes” by Jack Diederich ( I’d like to present a pattern that can be used to design clean and pythonic interfaces for programmers based on replacing single-method classes with decorated functions.
This pattern is already used by some famous frameworks and libraries, like Pyramid ( but I believe it isn’t that well-known to many (even experienced) Python developers and is not as widely used as it deserves.
I’ll show how this pattern can be employed to improve a programming interface which is used by an internal log processing framework at Yelp. This will demonstrate how a more functional approach, leveraging the power of Python decorators, can lead to simpler, more beautiful and easier to understand code.
However, this talk doesn’t suggest giving up classes altogether, but making use of them only when they are truly useful. In fact, the use-case I’m going to analyze will combine classes, functions, and decorators to make the best out of these tools.
Given that the presentation is going to be very code-oriented, the talk is intended for an audience of developers who are already familiar with most Python constructs, including decorators, even though the concept will be briefly introduced at the beginning of the talk. But, if you are one of these people, I promise you that the code will speak for itself.
License: This video is licensed under the CC BY-NC-SA 3.0 license:
Please see our speaker release agreement for details:
Chapter 13: Why Classes?
Explanation of why we want to use classes to group together related variables. From:
Python Classes and Objects || Python Tutorial || Learn Python Programming
Classes are a fundamental part of modern programming languages. Python makes it easy to make a class and use it to create objects. Today you will learn the essentials of programming with classes: how to initialize them, write methods, store fields, and more.
To learn Python, you can watch our playlist from the beginning:
Python Cookbook, Third edition from O’Reilly
The Mythical Man Month - Essays on Software Engineering & Project Management
Shop Amazon Used Textbooks - Save up to 90%
Subscribe to Socratica:
To support more videos from Socratica, visit
We also accept Bitcoin! :)
Our address is: 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9
Python instructor: Ulka Simone Mohanty @ulkam on Twitter
Written & Produced by Michael Harrison
FX by Andriy Kostyuk
Stop Writing Code - Keith Casey
We are problem solvers. We love looking at the world, seeing a problem, and attacking it with everything we've got. At the end of the day, things work and everyone goes home happy. Except that almost never happens.
As developers, we try to approach every problem with code but we’re limiting ourselves to a single tool in the toolbox. If we tried to understand the details and implications of the problem, we might learn that code is the last thing we should use. This applies in our projects and work and the world as a whole because - as problem solvers - we have responsibilities to the people down the hall, across the street, and even the people sleeping on the street.
Python OOP Tutorial 1: Classes and Instances
In this Python Object-Oriented Tutorial, we will begin our series by learning how to create and use classes within Python. Classes allow us to logically group our data and functions in a way that is easy to reuse and also easy to build upon if need be. Let's get started.
Python OOP 1 - Classes and Instances -
Python OOP 2 - Class Variables -
Python OOP 3 - Classmethods and Staticmethods -
Python OOP 4 - Inheritance -
Python OOP 5 - Special (Magic/Dunder) Methods -
Python OOP 6 - Property Decorators -
The code from this video can be found at:
✅ Support My Channel Through Patreon:
✅ Become a Channel Member:
✅ One-Time Contribution Through PayPal:
✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
✅ Corey's Public Amazon Wishlist
✅ Equipment I Use and Books I Recommend:
▶️ You Can Find Me On:
My Website -
My Second Channel -
Object Oriented Programming 2 - Classes and Objects
Suggest new or help me make more videos here:
In this lesson we delve into what is a Class and Object is in Object Oriented Programming terms. Using real world examples of Objects we can see how they can be modeled into Computer applications and games. We understand what are attributes and methods of an Object using examples of each.
We go through step by step on the construction of a class file called Player.as, we step through the structure and syntax necessary. We learn about Strictly typed and the use of Constructors. By the end of this lesson you should understand the difference between a Class and an Object.
Easier Classes: Python Classes Without All the Cruft
When bundling up data, sometimes tuples and dictionaries don't quite cut it. Python's classes are powerful tools for data storage and manipulation, but it can take quite a bit of boilerplate code to make a well-behaved Python class. In this talk we're going to discuss how a well-behaved class should work and take a look at a number of helper libraries for creating well-behaved classes.
We'll first see how to make classes with proper string representations, comparability, iterability, and immutability. Then we'll dive into helper tools built-in to the standard library and available in third-party libraries.
We'll look at namedtuple, NamedTuple (not a typo), attrs, and the new Python 3.7 dataclasses.
Most of the libraries discussed in this talk are only available in Python 3, so if you're not using Python 3, hopefully this talk will encourage you to upgrade.
A FREE annual conference for anyone interested in Python in and around Ohio, the entire Midwest, maybe even the whole world.
Python Class | Python Classes | Python Programming | Python Tutorial | Edureka
( Python Training : )
This Edureka Python Class tutorial (Python Tutorial Blog: will help you understand Python Classes and Objects with examples. It will also explain the concept of Abstract Classes and Inheritance in python.
Check out our Python Training Playlist:
This Python Programming tutorial video helps you to learn following topics:
1. Python Classes and Objects
3. Abstract Classes
Subscribe to our channel to get video updates. Hit the subscribe button above.
#Python #Pythontutorial #Pythononlinetraining #Pythonforbeginners #PythonProgramming #PythonClass #PythonObject #PyhonInheritance #PythonAbstraction
How it Works?
1. This is a 5 Week Instructor led Online Course,40 hours of assignment and 20 hours of project work
2. We have a 24x7 One-on-One LIVE Technical Support to help you with any problems you might face or any clarifications you may require during the course.
3. At the end of the training you will be working on a real time project for which we will provide you a Grade and a Verifiable Certificate!
- - - - - - - - - - - - - - - - -
About the Course
Edureka's Python Online Certification Training will make you an expert in Python programming. It will also help you learn Python the Big data way with integration of Machine learning, Pig, Hive and Web Scraping through beautiful soup. During our Python Certification training, our instructors will help you:
1. Master the Basic and Advanced Concepts of Python
2. Understand Python Scripts on UNIX/Windows, Python Editors and IDEs
3. Master the Concepts of Sequences and File operations
4. Learn how to use and create functions, sorting different elements, Lambda function, error handling techniques and Regular expressions ans using modules in Python
5. Gain expertise in machine learning using Python and build a Real Life Machine Learning application
6. Understand the supervised and unsupervised learning and concepts of Scikit-Learn
7. Master the concepts of MapReduce in Hadoop
8. Learn to write Complex MapReduce programs
9. Understand what is PIG and HIVE, Streaming feature in Hadoop, MapReduce job running with Python
10. Implementing a PIG UDF in Python, Writing a HIVE UDF in Python, Pydoop and/Or MRjob Basics
11. Master the concepts of Web scraping in Python
12. Work on a Real Life Project on Big Data Analytics using Python and gain Hands on Project Experience
- - - - - - - - - - - - - - - - - - -
Why learn Python?
Programmers love Python because of how fast and easy it is to use. Python cuts development time in half with its simple to read syntax and easy compilation feature. Debugging your programs is a breeze in Python with its built in debugger. Using Python makes Programmers more productive and their programs ultimately better. Python continues to be a favorite option for data scientists who use it for building and using Machine learning applications and other scientific computations.
Python runs on Windows, Linux/Unix, Mac OS and has been ported to Java and .NET virtual machines. Python is free to use, even for the commercial products, because of its OSI-approved open source license.
Python has evolved as the most preferred Language for Data Analytics and the increasing search trends on python also indicates that Python is the next Big Thing and a must for Professionals in the Data Analytics domain.
For more information, Please write back to us at email@example.com or call us at IND: 9606058406 / US: 18338555775 (toll free).
Are Writing Classes Necessary?
Do you need to take writing classes to get published? Are they even helpful? Today I'm sharing my experience with creative writing in academia.
Do You Need a Degree to Get Published?:
How to Juggle Writing and School:
WHERE TO FIND ME:
BEYOND THE RED & INTO THE BLACK buy links (where you can buy my books)!
Writability (aka my blog)!
Patreon (where you can get access to extras!):
Twitter (where I spend way too much time)!
tumblr (because pictures! and inspirational thingies!)
Facebook (where you can like me)!
Instagram (because more pictures!)
Goodreads (where you can add my book to your TBR shelf)!
Python Classes pt1: 5 Myths about Python Classes
First in a series about Python Classes, this video goes through some common myths about classes in Python, hopefully to dispel your doubts about using them in your code.
Follow Alan at
- Mastering GUI Programming with Python (PyQt5):
- Python GUI Programming with Tkinter:
Videos & articles referenced in this video:
- Execution in the Kingdom of Nouns - Steve Yegge
- Stop writing classes - Jack Diederich
- Why Object Oriented Programming is bad - Brian Will
- FizzBuzz Enterprise Edition
Top Ten Reasons to Dislike Writing Classes
A discussion for the beginning of writing classes about why students often don't like writing courses and what can be done about it.
9. Python Classes and Inheritance
MIT 6.0001 Introduction to Computer Science and Programming in Python, Fall 2016
View the complete course:
Instructor: Dr. Ana Bell
In this lecture, Dr. Bell continues the discussion of Object Oriented Programming in Python, with an emphasis on data control, inheritance, and subclasses.
License: Creative Commons BY-NC-SA
More information at
More courses at
Part 4: Instantiable Classes
An introduction to Instantiable Classes with java using a coded example.
A New Look at Reading and Writing in Advanced Adult ESL Classes
Catch up on this webinar from Cambridge University Press with Ventures authors Lynn Savage, Donna Price and Sylvia Ramirez.
The College and Career Readiness (CCR) Standards for Adult Education promote three important tenets of instruction:
• Texts worth reading
• Questions worth answering
• Work worth doing
The presenters will discuss these key principles in relation to new extended reading worksheets developed for the highest level of the Ventures series, Transitions, and now available on the Ventures Online Teacher’s Resource Room.
The new extended reading worksheets provide:
• complex informational texts that build on unit themes and provide opposing viewpoints to readings in the Transitions Student’s Book
• emphasis on academic vocabulary and exercises that develop reading strategies appropriate to the text
• text-dependent questions that rely on the language and mechanics of the text itself, rather than personal experience or opinion
• practice with useful academic language functions
• culminating writing activities that demand evidence to form opinions, compare, problem solve, or persuade
Python Basics: Objects, Classes & Instances
Today we will talk about classes and objects in Python. Object oriented programming is something that every programmer knows quite well, however it is something that is a bit complicated and not always easy to grasp at the first time. We will use the program we wrote in previous videos (check my videos here: and as a base to refactor the code to use classes.
Here are links to Python documentation you could check out if you want to learn much more about classes and objects in Python:
💁💻 My social media:
🐍📖 Check these resources to learn more:
* Django Girls Tutorial:
🎬🐍 Python Basics Playlist (if you want to start from the very beginning):
Python 25: Classes, Part 1a
First half of the 1st class on Python Classes.