The Importance of Refactoring Code

Posted by Julian on Thu 13 July 2017 in Concepts • Tagged with python, beginner, learning, examples, code, refactoring • 4 min read

In this quick post I discuss why refactoring code is one of the most important parts of the learning process.


Continue reading

From Script to Project - Packaging Your Code in Python

Posted by Bob on Sat 01 July 2017 in Learning • Tagged with packaging, modules, init, imports, refactoring, karma, Twitter • 3 min read

This week's article is about packaging your Python code. Sounds daunting? Actually it is pretty simple.


Continue reading

OOP Beyond the Basics: Using Properties for Encapsulation, Computation and Refactoring

Posted by Bob on Wed 31 May 2017 in Concepts • Tagged with oop, property, decorators, encapsulation, computation, dunder, refactoring, pytest, 2vs3, getter, setter • 4 min read

In this article I share my learning of the property decorator coding a simple Account class. I think it's an unmissable tool in your (Python) OOP toolkit.


Continue reading

Twitter digest 2017 week 07

Posted by PyBites on Sat 18 February 2017 in Digest • Tagged with twitter, news, podcasts, 3.6, functional programming, 2vs3, git, github, guido, oop, namedtuples, algorithms, refactoring • 2 min read

On Saturdays we will share a curated list of 15 cool things (mostly Python) we found / tweeted during the week.


Continue reading

Code Challenge 01 - Word Values Part I - Review

Posted by PyBites on Fri 13 January 2017 in Challenges • Tagged with codechallenges, code review, HN, github, learning, max, generators, scrabble, refactoring • 5 min read

Wow! We have been amazed by the great response on github and HN. It's Friday so we review the code challenge of this week. We describe our learning and a possible solution. We will also digest comments left on the Monday post.


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

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