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

Posted by PyBites on Mon 07 August 2017 in Challenges • Tagged with codechallenges, refactoring, code review, testing, bestpractices, cleancode, bettercodehub, Sig, Flask, authentication, my first script • 2 min read

In this article we review last week's The Art of Refactoring: Improve Your Code code challenge. We're excited to have done 30 challenges so far and it feels like we only got started. Prepare for more to come!


Continue reading

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

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

Python Naming Conventions

Posted by Julian on Sun 01 January 2017 in Learning • Tagged with learning, python, beginners, tips, cleancode, bestpractices • 2 min read

Naming conventions can be tricky in Py. It's good to make sure we're all on the same page.


Continue reading

Don't Let Indentation Catch You Out

Posted by Julian on Fri 30 December 2016 in Learning • Tagged with python, learning, beginners, tips, cleancode, bestpractices • 4 min read

Python indentation can be a cruel mistress. Let's get it right!


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