Code Challenge 30 - The Art of Refactoring: Improve Your Code

Posted by PyBites on Tue 01 August 2017 in Challenges • Tagged with codechallenges, refactoring, code review, testing, packaging, bestpractices, pythonic, pep8, cleancode • 2 min read

Hi Pythonistas, a new week, a new 'bite' of Python coding. Wow challenge 30 already! This week we let you hone your refactoring skills. Learn, code, PR submit (don't be shy) and above all have fun!


Continue reading

Comparing Lists with Difflib

Posted by Julian on Wed 08 March 2017 in Learning • Tagged with python, learning, beginners, stdlib, tips, cleancode, bestpractices, pythonic • 3 min read

Learn to compare blocks of text with the difflib module.


Continue reading

Pythonic String Formatting

Posted by Julian on Thu 02 March 2017 in Learning • Tagged with python, learning, beginners, tips, cleancode, bestpractices, pythonic • 3 min read

The formatting of strings has been a hot topic in Python and something that I struggled with at the beginning. It's quite interesting to see how it's evolved over time to be what it is today!


Continue reading

5 tips to speed up your Python code

Posted by Bob on Tue 21 February 2017 in Best practices • Tagged with performance, data structures, pythonic, generators, map, builtin, algorithms, regex, patterns • 5 min read

In this post I will give you 5 tips to speed up your code.


Continue reading

Python Tricks book review

Posted by Bob on Tue 31 January 2017 in Books • Tagged with review, tricks, tips, pythonic, oop, ABC, dicts, cleancode • 2 min read

A review of Dan Bader's Python tricks book.


Continue reading

Python's data model by example

Posted by Bob on Wed 25 January 2017 in Concepts • Tagged with datamodel, oop, magicmethods, builtin, pythonic, iterators, slicing • 14 min read

After last post on OOP a logical follow-up is Python's data model. We use the great Fluent Python book to code up an example of our own, showing the powerful way you can leverage this data model. You can download the notebook here.


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

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

2016 py articles and useful books

Posted by Bob on Fri 23 December 2016 in Digest • Tagged with pythonic, books, collections, tricks, tips, data science, matplotlib, pandas • 1 min read

Some of my Python articles I posted on my blog this year and useful books


Continue reading