Giter VIP home page Giter VIP logo

Comments (3)

colinoflynn avatar colinoflynn commented on July 21, 2024

re: 80-char limit:
I also used to stick with 80-char limits, although with higher resolution screens I really don't think it makes sense. When you had 1024x768 sure you don't want to be scrolling much. The 80-char limit came from ancient terminals, and people seem to have stuck to it with all sorts of newer systems. I'm all for some reasonable limit to make diff viewing easier, but I think 80 is too short. There's a good point at http://lkml.org/lkml/2009/12/17/229 too - if you break lines up, it makes it harder to search for something. e.g. if you break a string up because it's longer than 80 chars, you can't search for part of that string now since it's split.

re: alignment:
IMHO readability is king... especially with a project like ours, I can't imagine we'll be modifying things a lot once they've matured a bit. Whilst it will result in some extra commit noise, I'd rather it's easier for the many users after who will be reading it, rather than the handful doing development work.

My vote is screw PEP8, or at least the portions that seem somewhat counter-intuitive.

from pico-python.

hmaarrfk avatar hmaarrfk commented on July 21, 2024

80 char limit.

I think 80 char limit especially doesn't make sense python with tabs = 4 spaces.
you already lose 10% because class, def, inside an if statement in a while loop, you have lost 20%....

maybe 100 or 120? I've never actually enforced a limit, but I think it might be a good idea.

Alignment:
Ok. I'll keep alignment that makes visual sense.

from pico-python.

hmaarrfk avatar hmaarrfk commented on July 21, 2024

You can ignore some whitespace changes with this:

http://stackoverflow.com/questions/4449834/commit-without-whitespace-changes-on-github

from pico-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.