Click here to code!

A Short Primer on Assemblers, Compilers and Interpreters

Posted by Erik O'Shaughnessy on Tue 09 October 2018 in Concepts • Tagged with computer, programming, history, interpreters, assembly, C, high level languages, math • 6 min read

A gentle introduction to the historical evolution of programming practices.


Continue reading

A Python Orientation - How to Get Started

Posted by Andrew Knight on Fri 17 August 2018 in Concepts • Tagged with guest, 2vs3, CPython, PyPy, MicroPython, pip, pipenv, venv, virtualenv, Conda, editors, Pythonic, Pythonista, Zen of Python, pycon, PSF, BDFL, overview, reference • 5 min read

Python is a wonderful language for both beginners and expert programmers, but getting started can be daunting. Which version should I use? Which editors are best? What do you mean there are different implementations and environments? Here's a guide to help navigate these big FAQs.


Continue reading

Learning Python Decorators by Example

Posted by Bob on Fri 20 October 2017 in Concepts • Tagged with decorators, design patterns, logging, caching, memoization, Flask, Django, properties, classmethod, staticmethod, lru_cache, mock.patch, contextmanager • 4 min read

Decorators are a sometimes overlooked feature and they might be hard to grasp for beginning Pythonistas. I agree with Aaron Maxwell that mastering them "can massively magnify the positive impact of the code you write", so make sure you add them to your toolkit if not done so already. In this article I explain what they do, why you want to use them and give some practical examples.


Continue reading

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

Next Time I Will Use Pandas to Parse Html Tables

Posted by Bob on Thu 08 June 2017 in Concepts • Tagged with BeautifulSoup, regex, Pandas, parsing, data, data cleaning, energy, json, csv, html • 2 min read

Last week I did some html table parsing with BeautifulSoup and regex. It turns out there is an easier way to do this: Pandas.


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

Generators are Awesome, Learning by Example

Posted by Julian on Fri 17 March 2017 in Concepts • Tagged with python, tips, code, pybites, generators, iteration, yield • 5 min read

Learn what a Generator is and check out some different examples.


Continue reading

Don't let mutability of compound objects fool you!

Posted by Bob on Tue 07 March 2017 in Concepts • Tagged with list, mutable, copy, deepcopy • 3 min read

In this article I explain the difference between shallow versus deep copy with a working example. It's an important concept when working with compound objects.


Continue reading

Python Iteration

Posted by Julian on Thu 19 January 2017 in Concepts • Tagged with python, tips, tricks, iteration, resources • 3 min read

Iteration in Python is incredibly simple compared to C and other languages. It's easy... maybe a little TOO easy...


Continue reading