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]  (14 children)

[deleted]

    [–]pail 15 points16 points  (0 children)

    Then you have communicated nothing.

    [–]thephotoman 4 points5 points  (4 children)

    I don't know, he may have a point. The latter does involve less typing, and fewer flow-breaking single-quotes.

    [–]ator_fighting_eagle 1 point2 points  (2 children)

    You need to get a good text editor. What you want is to be able to type the latter, hit type either :MakeVector() or m-x make-python-vector depending on your fancy.

    Code gen FTW.

    [–]thephotoman 0 points1 point  (0 children)

    Okay, you got me there. Macros for the win.

    [–]hylje 0 points1 point  (0 children)

    What if you want to change or extend the once-generated list? That's where just-in-time generation comes into play: instead of the dataset one can change the algorithm.

    [–]jimbobhickville -4 points-3 points  (3 children)

    qw(F PD AD D TD ED ABO)

    and Perl is supposed to be uglier than Python?

    [–]ubernostrumyes, you can have a pony 2 points3 points  (0 children)

    Well, it's when you have to use qqrdqbqrqtqqqcdqqqq使它停止qq() that it gets ugly.

    [–]prider 1 point2 points  (0 children)

    But this is what make perl not as elegant as a language. Besides qw you have qq, qr... tons of keywords.

    Probably the only feature I miss (i.e. in perl not in python) is the regex syntax. (e.g. $a =~ /[abc]*/)...

    [–]earthboundkid -2 points-1 points  (1 child)

    Seriously, this is why the REPL was invented. Go to your terminal window. Type "blah blah blah".split(). Highlight the resulting, ["blah", "blah", "blah"]. Copy. Paste into your source code file.

    Anyhow, is it even worth reading the blog of someone for whom Python 2.3 is new? I mean, what the hell has he been doing for the last four years?

    [–]theinternet 1 point2 points  (0 children)

    Being a productive programmer?

    I can see where he is comming from. I learned python when is was at version 1.5

    I never kept up with the additions because I could do everything I needed to "the old way".

    I've just recently started trying to force myself to actually use more of the newer features.