Profile

Cover photo
The Digital Cat
60 followers|60,387 views
AboutPostsPhotosVideos

Stream

 
A simple example of #Python #OOP development (with #TDD ) - Part 1

#TheDigitalCat
2
1
Jacob Zimmerman's profile photoThe Digital Cat's profile photoSaliya Ruchiranga's profile photo
2 comments
 
You are right, honestly I did not think about _radd_() and _rsub_(). I'll try and find a way to add them to the post or to the second part. About the _str_() implementation your change makes perfectly sense.

Thank you!
Add a comment...
 
19 Apr 2015 - 9AM - Florence
goo.gl/HdlDZQ

+PyCon Italia #TheDigitalCat
1
1
Leonardo Giordani's profile photo
Add a comment...

The Digital Cat

Shared publicly  - 
1
1
Jacob Zimmerman's profile photoThe Digital Cat's profile photoLeonardo Giordani's profile photo
2 comments
 
Thank you for the link! I'm going to read it.

This image was sort of a short advertisement for my PyConIT OOP tutorial where I questioned the fact that OOP is based on inheritance. It is based on delegation, which can be implemented both through inheritance and composition.

I showed there a provocative "composed inheritance" slide to show that in Python you can push composition to the limit through _getattr_() (but I always prefer good sense over extreme solutions).
Add a comment...

The Digital Cat

Shared publicly  - 
 
A humble try to learn Scala.
1
Add a comment...
 
Object-Oriented Python from scratch tutorial

PyCon 6 - Firenze 19 aprile - 14:30
https://www.pycon.it/conference/talks/oop-object-oriented-python-partendo-da-zero

Code available in IPython Notebook format

https://github.com/lgiordani/oopy.git

IPython Notebook is highly recommended for this tutorial, it allows to easily experiment with the code. (http://ipython.org/notebook.html)

Tutorial in Italian language.
Slides (in English) will be available on Slideshare and Speaker Deck
1
1
Leonardo Giordani's profile photo
Add a comment...
 
1
Add a comment...
Have them in circles
60 people
Xiaodi Yu's profile photo
Welington Carlos's profile photo
Damion Elson's profile photo
Jelena Kutalovskaja's profile photo
Jonas Cia's profile photo
Ridwan Ahmed Khan's profile photo
Gokul G's profile photo
Maksim Sokolski (maxsocl)'s profile photo
Vadim Latypov's profile photo

Communities

9 communities
 
Python decorators: metaprogramming with style

goo.gl/EiWWRt

#Python #TheDigitalCat

Thanks +Bruce Eckel  for your original posts
3
3
The Digital Cat's profile photoLeonardo Giordani's profile photoNandan Vaidya's profile photoJavier de Innocenti's profile photo
4 comments
 
Thank you very much Bruce. I'm sorry the Patterns book has somehow failed!
Add a comment...
 
19 Apr 2015 - 9AM - Florence
goo.gl/HdlDZQ

+PyCon Italia #TheDigitalCat
1
Add a comment...
 
 
IPython Notebook is a terrific platform to work with scientific Python but also to teach and learn Python itself.

I converted the Python 3 OOP series of posts to IPython Notebooks, get them here and start diving into the object-oriented implementation of a language where "everything is an object".

#python #ipython #notebook
+IPython
The Python 3 OOP series IPython Notebooks
View original post
1
Add a comment...

The Digital Cat

Shared publicly  - 
 
IPython Notebook is a terrific platform to work with scientific Python but also to teach and learn Python itself.

I converted the Python 3 OOP series of posts to IPython Notebooks, get them here and start diving into the object-oriented implementation of a language where "everything is an object".

#python #ipython #notebook
+IPython
The Python 3 OOP series IPython Notebooks
2
3
Leonardo Giordani's profile photoGustavo Montanha's profile photo
Add a comment...

The Digital Cat

Shared publicly  - 
 
How to deal with default arguments in Python functions and methods
1
2
The Digital Cat's profile photoLeonardo Giordani's profile photo
Add a comment...
People
Have them in circles
60 people
Xiaodi Yu's profile photo
Welington Carlos's profile photo
Damion Elson's profile photo
Jelena Kutalovskaja's profile photo
Jonas Cia's profile photo
Ridwan Ahmed Khan's profile photo
Gokul G's profile photo
Maksim Sokolski (maxsocl)'s profile photo
Vadim Latypov's profile photo
Communities
9 communities
Story
Tagline
Learning is understanding and understanding is asking why and how
Introduction
Cats are curious animals: so the title implies this is blog about curiosity in the digital world.

Llearning is not a matter of procedures. Learning is understanding and understanding is asking why and how.

Links