Slashdot Mirror


An Interview With Guido van Rossum

An anonymous reader submits "The folks over at artima.com have finished posting a 6 part interview with Guido Van Rossum, Python's creator and Benevolent Dictator for Life. The interview covers topics ranging from Python's origins and design goals to increased productivity to runtime typing." (We linked to this series of interviews before as well.)

18 comments

  1. Mr Rossum by PhysicsGenius · · Score: 0, Insightful

    I've been using Python for quite some time now and I've found it vastly superior, both functionally and from a maintenance standpoint, to both Perl and PHP. One knit, though. Why on earth make whitespace vital to the compiler? For business reasons I have to edit my programs in Windows but run them on Linux. Editing out all those ^M's is a big pain.

    1. Re:Mr Rossum by baldass_newbie · · Score: 0, Troll

      Why on earth make whitespace vital to the compiler?

      And you think it's superior to PHP and Perl?
      Seriously?

      --
      The opposite of progress is congress
    2. Re:Mr Rossum by Charlton+Heston · · Score: 1

      Here's a script for you. I call it no_cr
      ----

      #!/bin/sh

      for i in $@ ;
      do
      if [ -f $i ]
      then
      echo "Fixing" $i
      cp $i /tmp/$i
      cat /tmp/$i | tr -d '\r' | tr -d '\032' > $i
      rm /tmp/$i
      fi
      done

      --
      And this part is here to avoid the lameness filter.
      # Important Stuff: Please try to keep posts on topic.
      # Try to reply to other people's comments instead of starting new threads.
      # Read other people's messages before posting your own to avoid simply duplicating what has already been said.
      # Use a clear subject that describes what your message is about.
      # Offtopic, Inflammatory, Inappropriate, Illegal, or Offensive comments might be moderated. (You can read everything, even moderated posts, by adjusting your threshold on the User Preferences Page)

      --
      Get your stinking paws off me you damn dirty ape
    3. Re:Mr Rossum by costas · · Score: 3, Informative

      Well, AFAIK, 2.3 (or maybe 2.2) has finally taken this issue away. EOL conventions donot matter for source code any more.

    4. Re:Mr Rossum by Scarblac · · Score: 3, Informative

      Why on earth make whitespace vital to the compiler? For business reasons I have to edit my programs in Windows but run them on Linux. Editing out all those ^M's is a big pain.

      That has nothing to do with significant whitespace - it only occurs at the end of lines, not at the beginning.

      Most Linux distros have tools named 'dos2unix' and 'unix2dos' that can do the conversion for you.

      --
      I believe posters are recognized by their sig. So I made one.
    5. Re:Mr Rossum by sigwinch · · Score: 3, Interesting
      I've been using Python for quite some time now...
      Translation: five minutes.
      ...and I've found it vastly superior, ... functionally... to both Perl and PHP.
      Duh. Perl isn't very good for functional programming. And PHP? Ha! It's barely a procedural language. Have you tried Scheme+? It's fully functional, and uses brackets instead of parentheses so it's vastly easier to read.
      One knit, though.
      <sigh> A veiled reference to the long-running dispute between the Perl lib_sock camp, and the proponents of PySock. Get over it. Modern implementations are comparable in performance, and the API problems in PySock were fixed long ago.
      Why on earth make whitespace vital to the compiler?
      One of the greatest insights in modern physics is that the vacuum is an active player. Defining the language with space as well as substance provides an independent structure by which to understand your programs. I saw at the last COMDEX that Rational is working on a tool that lets you graphically design and refactor Python code using Feynman diagrams.
      For business reasons I have to edit my programs in Windows but run them on Linux.
      Hello? Wine! Duh!
      Editing out all those ^M's is a big pain.
      This is why experienced Python programmers store their programs as XML. It's disgusting to see someone waste time on platform incompatibilities in this day and age. Remember: write once, run everywhere.

      Running everywhere is good exercise, anyway. Not only can you proactively reengineer core business centers, you can get that ripped look so popular in today's nudist conference rooms.

      --

      --
      Kuro5hin.org: where the good times never end. ;-)

    6. Re:Mr Rossum by Anonymous Coward · · Score: 2, Informative
      Editing out all those ^M's is a big pain.

      Yeah, typing

      perl -pi -e 's/\r//g' filename
      is a real chore
    7. Re:Mr Rossum by trouser · · Score: 2, Interesting

      There's no shortage of editors which will save files properly. If I ever have the misfortune to find myself trying to work on a Windows machine I download vim. Or you could try winpython. I suspect it has the option to save not broken files and it also does neat code completion stuff.

      Why make whitespace vital ? Why use braces to mark a block in code ? Why use line numbers ?

      You have to have some way of letting the compiler/interpreter know what's inside/outside a for/if/while etc. block. The whitespace thing takes a little getting used to but it follows the indentation rules you probably should be applying to your code anyway in the interests of producing readable and hopefully maintainable code so it shouldn't be too great a hardship.

      --
      Now wash your hands.
    8. Re:Mr Rossum by ultrabot · · Score: 1

      This is why experienced Python programmers store their programs as XML.

      Huh? I consider myself an experienced Pythom programmer, and I've never heard of programs being stored in XML.

      BTW, once you realize that you should use The Editor, whatever the platform, you will realize that all this whitespace whining is worthless. And other editors, on win32 and Unix alike, can be trivially configured to write tabs as spaces.

      --
      Save your wrists today - switch to Dvorak
    9. Re:Mr Rossum by Quill_28 · · Score: 1

      And they say unix in not intuitive. Ha!

      also :%s/^M//g

      in vi also works.

      The ^M is created by holding down the ctrl-V and then hitting the M key.
      See even someone as dull as I can learn this stuff.

    10. Re:Mr Rossum by an_mo · · Score: 2, Informative

      Alternatively, you can use a decent text editor such as TextPad which lets you save your files in unix format, not to mentions other useful features for coders.

    11. Re:Mr Rossum by Anonymous Coward · · Score: 1, Informative

      Huh? I consider myself an experienced Pythom programmer, and I've never heard of programs being stored in XML.

      He was joking, ultrabot. Time to tweak your humor subroutines?

    12. Re:Mr Rossum by KewlPC · · Score: 3, Informative

      dos2unix is your friend

  2. Two words that don't go together by GuyMannDude · · Score: 2, Funny

    The folks over at artima.com have finished posting a 6 part interview with Guido Van Rossum, Python's creator and Benevolent Dictator for Life.

    I'm trying to remember the last time I saw the words "Guido" and "Benevolent" in the same sentence together...

    GMD

  3. Well, _I_ heard... by msouth · · Score: 4, Funny
    ...that he refused to answer any questions
    until
    they were indented
    correctly
    --
    Liberty uber alles.
  4. a patch for no_cr by Anonymous Coward · · Score: 0

    1,13c1,2
    < #!/bin/sh
    <
    < for i in $@ ;
    < do
    < if [ -f $i ]
    < then
    < echo "Fixing" $i
    < cp $i /tmp/$i
    < cat /tmp/$i | tr -d '\r' | tr -d '\032' > $i
    < rm /tmp/$i
    < fi
    < done
    <
    ---
    > #!/usr/bin/perl -pi
    > y/\r//d