Re: One liners

Discussion in 'Python' started by bryan rasmussen, Dec 8, 2013.

  1. Someone was thinking in ruby there.



    On Sat, Dec 7, 2013 at 1:14 AM, Dan Stromberg <> wrote:

    >
    > On Fri, Dec 6, 2013 at 4:10 PM, Michael Torrie <> wrote:
    >
    >> On 12/06/2013 04:54 PM, Dan Stromberg wrote:
    >> > Does anyone else feel like Python is being dragged too far in the

    >> direction
    >> > of long, complex, multiline one-liners? Or avoiding temporary variables
    >> > with descriptive names? Or using regex's for everything under the sun?
    >> >
    >> > What happened to using classes? What happened to the beautiful

    >> emphasis on
    >> > readability? What happened to debuggability (which is always harder

    >> than
    >> > writing things in the first place)? And what happened to string

    >> methods?
    >> >
    >> > I'm pleased to see Python getting more popular, but it feels like a lot

    >> of
    >> > newcomers are trying their best to turn Python into Perl or something,
    >> > culturally speaking.

    >>
    >> I have not seen any evidence that this trend of yours is widespread.
    >> The Python code I come across seems pretty normal to me. Expressive and
    >> readable. Haven't seen any attempt to turn Python into Perl or that
    >> sort of thing. And I don't see that culture expressed on the list.
    >> Maybe I'm just blind...

    >
    >
    > I'm thinking mostly of stackoverflow, but here's an example I ran into (a
    > lot of) on a job:
    >
    > somevar = some_complicated_thing(somevar) if
    > some_other_complicated_thing(somevar) else somevar
    >
    > Would it really be so bad to just use an if statement? Why are we
    > assigning somevar to itself? This sort of thing was strewn across 3 or 4
    > physical lines at a time.
    >
    >
    > --
    > https://mail.python.org/mailman/listinfo/python-list
    >
    >
     
    bryan rasmussen, Dec 8, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Curly Joe

    Re: Clever One Liners

    Curly Joe, Jul 3, 2003, in forum: Python
    Replies:
    0
    Views:
    505
    Curly Joe
    Jul 3, 2003
  2. holger krekel

    Re: Clever One Liners

    holger krekel, Jul 3, 2003, in forum: Python
    Replies:
    0
    Views:
    851
    holger krekel
    Jul 3, 2003
  3. vj
    Replies:
    0
    Views:
    302
  4. kj
    Replies:
    2
    Views:
    426
    unayok
    Jun 18, 2009
  5. Larry
    Replies:
    1
    Views:
    121
    Martien Verbruggen
    Feb 3, 2005
Loading...

Share This Page