Readability in Software

I think that readability is almost the most important thing to consider in writing good code.

Examples:

Avoiding using the short form of set for better visibility:

tags = ("h1", "p")    # Clearly a tuple
tags = ["h1", "p"]    # Clearly a list
tags = {"h1", "p"}    # A dictionary...wait, it's actually a set
tags = set("h1", "p") # Clearly a set

results matching ""

    No results matching ""