On Readable Python Code


Python is an very nice high-level programming language that provides the user with an easy way to write readable and clean code. It is often the case when someone is learning a new tool or language that they are not aware of small features that would greatly improve the readability of their code.

For example, when I was learning Python I learned to iterate over a list the way I keep seeing it when reading code of beginner Pythonists. Here is an example of how you could iterate over the list:

for ix in range(len(a_list)):

However, a better and Pythonic way is to use iterators:

for el in a_list:

This equally works for lists and strings:

for key in a_dictionary:

for char in a_string:

Real-time Collaborative Coding with Github’s Teletype for Atom


Github announced today the Teletype package for Atom, package for real-time collaborative coding. Below is an animation and video of how it works.


via Github blog