News for hackers. Stuff that matters.
Re:The Zen of Python by Example by Macha on Saturday February 12, 2011 @09:10AM (#2210023)
I used to be dead set against 80 character limits, and considered them a historical relic. But nowadays I'm actually in favour of them. On my 1440x900 screen, 80 characters allows me to have two files side by side in vim, or vim and a terminal side by side. Likewise, I'd imagine a programmer using an editor or IDE that's heavy on screen space would probably have about 80 characters of space for the file in a similar resolution.

Finally, in some cases, it's just more readable. Take the following code:

    some_list = [a_long_variable, with_contrived_names, for_an_example, insert_your, own_parallel, if_it_bothers_you]
versus

    some_list = [
        a_long_variable,
        with_contrived_names,
        for_an_example,
        insert_your,
        own_parallel,
        if_it_bothers_you
    ]

There are no comments on this comment yet.