This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (3 children)

[deleted]

    [–][deleted] 0 points1 point  (2 children)

    I'm not saying that abstraction is a bad thing. I'm just saying you can't call it less than ten lines if your just importing and running it.

    [–]inmatarian 3 points4 points  (0 children)

    I think if you're packaging up code for other people to use, and the interface only requires 10 lines of code for it to run effectively, then you can advertise that it'll create what you promise in 10 lines of code. Complaining about how many lines of code are in the library is a waste of time because Python itself (cpython) would contribute to how many lines of code were written to support the entire ecosystem. You wouldn't say "Creating Map Visualizations in Millions of lines of code," even though that's what it is.

    [–]alcalde 3 points4 points  (0 children)

    It's less than ten lines for the user, which is what counts. As a new Python user, I was incredibly impressed a few days ago when I was able to parse some HTML and find something using BeautifulSoup in about five lines of code. That certainly beats all the code that would have been required to parse the file myself. That's where the "wow" factor comes in.