Click here to code!

Twitter Digest 2017 Week 47

Posted by PyBites on Sun 26 November 2017 in Digest • Tagged with twitter, news, tips, python, classes, PostgreSQL, coding, gifts, Thanksgiving, data science, Bitcoin, data visualisation, memoization, deep learning, chatbot, Tensorflow, AWS Lambda, Django, Pytest, OpenCV • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.

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