Everything is an Object, Python OOP primer

Posted by Bob on Tue 24 January 2017 in Concepts • Tagged with tutorial, oop, objectoriented, programming, inheritance, polymorphism, ABC, encapsulation, property • 13 min read

I created a notebook on OOP (object oriented programming) in Python.


Continue reading

Errors should never pass silently

Posted by Bob on Wed 18 January 2017 in Best practices • Tagged with exceptions, Zen of Python, error handling, cleancode, anti-patterns • 3 min read

In this article some important anti-patterns regarding error handling and how to solve them making your code more Pythonic and easier to maintain.


Continue reading

5 cool things you can do with itertools

Posted by Bob on Thu 12 January 2017 in Modules • Tagged with iterators, itertools, tricks, generators, game, notebooks, permutations • 2 min read

Itertools is a very useful module. In this short post I show some 5 examples how you can use it. Some of this stuff might be useful in next week's challenge ...


Continue reading

Beautiful, idiomatic Python

Posted by Bob on Tue 10 January 2017 in Best practices • Tagged with pythonic, cleancode, collections, 2vs3, namedtuples, decorators, contextmanagers • 2 min read

Transforming Code into Beautiful, Idiomatic Python is a must-watch to write more Pythonic code. In this post some highlights.


Continue reading

Code Challenge Pilot - code review

Posted by Bob on Thu 05 January 2017 in Challenges • Tagged with codechallenges, refactoring, code review, bestpractices, pythonic, git, Github, git flow, vim, assert • 4 min read

In this post I review the code of challenge # 1 and refactor it to make it more Pythonic.


Continue reading

A great book that makes algorithms accessible

Posted by Bob on Tue 03 January 2017 in Books • Tagged with algorithms, data structures, performance, collections • 3 min read

I finished reading Grokking Algorithms, it's a very accessible resource for learning algorithms / data structures, highly recommended.


Continue reading

5 min guide to PEP8

Posted by Bob on Mon 02 January 2017 in Best practices • Tagged with pep8, cleancode, guidelines, coding style, bestpractices, pythonic, vim • 4 min read

Today a post on PEP8, the Style Guide for Python Code


Continue reading

3.6 new features

Posted by Bob on Sat 31 December 2016 in News • Tagged with 3.6, features, release, asyncio, formatting, typing, dicts, secrets, generators, readability • 3 min read

Finally got a chance to look into Python 3.6's new features. In this post some highlights and pointers.


Continue reading

Automate Tweeting: how to build a Twitterbot

Posted by Bob on Thu 29 December 2016 in Tools • Tagged with twitterapi, tweepy, feedparser, rss, logging, podcasts, virtualenv, pyvenv, venv, news, 3.6 • 3 min read

In this post I will show you how we automate part of our Twitter posting using feedparser and tweepy.


Continue reading

Learning from Python mistakes

Posted by Bob on Wed 28 December 2016 in Learning • Tagged with bestpractices, pep8, virtualenv, cleancode, logging, pytest, ebook, refactoring, gotchas • 2 min read

In this post I summarize some great lessons Mike Pirnat shared in his free ebook 'How to make mistakes in Python'


Continue reading