python vs perl lines of code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Edward Elliott

    #76
    Re: python vs perl lines of code

    Larry Bates wrote:
    [color=blue]
    > Sorry, I don't buy this. I can write REALLY short programs that don't
    > handle exceptions, don't provide for logging for debugging purposes, don't
    > allow
    > for future growth, etc. I find that 60% of my code has nothing to do with
    > the actual algorithm or function I'm trying to accomplish. It has more to
    > do with handling user's bad input, exceptions, recovering from hardware or
    > communications failures, etc.[/color]

    Wow, only 60%, I'm surprised it's that low :). When I say the algorithms
    are roughly equivalent, I'm including the amount of input verification and
    error checking that they do. To me, that's part of the algorithm.
    [color=blue]
    > Inexperienced programmers can write some
    > pretty short programs that get the job done, but can't handle the real
    > world.[/color]

    Tell me about it. I've taught intro comp sci, things can get real ugly real
    quick. :)
    [color=blue]
    > Also, many years ago I wrote a number of applications in APL. We often
    > referred to programs written in APL as "write only code" because going
    > back
    > to read what you had written after-the-fact was very hard. You could
    > write in one line of APL what takes 1000's of lines of C or even Python
    > and it was pretty efficient also (for applications that needed to
    > manipulate vectors or matrices).[/color]

    Of course. Comparing line counts between assembly and Prolog is pretty
    useless given the vast discrepancy in their expressive power. Perl and
    Python are roughly comparable in expressiveness, so it doesn't seem
    unreasonable to compare their line counts. It might not tell you much,
    there are undoubtedly better comparisons to make, but I don't think it's
    grossly unfair the way you suggest. I'm all ears if you have another
    metric I can test as easily.
    [color=blue]
    > I understand what you are trying to say, but I can't support your
    > conclusions as presented.[/color]

    What would those be? I tried hard not draw any conclusions. I just want to
    see how other people's data compares to mine.

    --
    Edward Elliott
    UC Berkeley School of Law (Boalt Hall)
    complangpython at eddeye dot net

    Comment

    • George Sakkis

      #77
      Re: python vs perl lines of code

      John Bokma wrote:
      [color=blue]
      > "George Sakkis" <george.sakkis@ gmail.com> wrote:
      >[color=green]
      > > Not trying to be as ass, but can you take this offline or at least in
      > > a perl newsgroup ? Arguing on a particular fact or speculation about
      > > the perl community is rather unproductive and offtopic for a python
      > > newsgroup.[/color]
      >
      > Use a real Usenet client, and you can make it skip a thread.[/color]

      That's funny, coming from the same guy that's been harassing Xah for OT
      posts. Oh, the irony.

      George

      Comment

      • John Bokma

        #78
        Re: python vs perl lines of code

        "George Sakkis" <george.sakkis@ gmail.com> wrote:
        [color=blue]
        > John Bokma wrote:
        >[color=green]
        >> "George Sakkis" <george.sakkis@ gmail.com> wrote:
        >>[color=darkred]
        >> > Not trying to be as ass, but can you take this offline or at least in
        >> > a perl newsgroup ? Arguing on a particular fact or speculation about
        >> > the perl community is rather unproductive and offtopic for a python
        >> > newsgroup.[/color]
        >>
        >> Use a real Usenet client, and you can make it skip a thread.[/color]
        >
        > That's funny, coming from the same guy that's been harassing Xah for OT
        > posts. Oh, the irony.[/color]

        Xah was harassing 5 groups with a cross post without setting a follow-up
        to for the sole purpose of spamvertizing his website [1] repeatedly.

        If you are that clueless, don't post.


        [1] He is looking for another hoster btw.

        --
        John MexIT: http://johnbokma.com/mexit/
        personal page: http://johnbokma.com/
        Experienced programmer available: http://castleamber.com/
        Happy Customers: http://castleamber.com/testimonials.html

        Comment

        • George Sakkis

          #79
          Re: python vs perl lines of code

          John Bokma wrote:[color=blue]
          > "George Sakkis" <george.sakkis@ gmail.com> wrote:
          >[color=green]
          > > John Bokma wrote:
          > >[color=darkred]
          > >> "George Sakkis" <george.sakkis@ gmail.com> wrote:
          > >>
          > >> > Not trying to be as ass, but can you take this offline or at least in
          > >> > a perl newsgroup ? Arguing on a particular fact or speculation about
          > >> > the perl community is rather unproductive and offtopic for a python
          > >> > newsgroup.
          > >>
          > >> Use a real Usenet client, and you can make it skip a thread.[/color]
          > >
          > > That's funny, coming from the same guy that's been harassing Xah for OT
          > > posts. Oh, the irony.[/color]
          >
          > Xah was harassing 5 groups with a cross post without setting a follow-up
          > to for the sole purpose of spamvertizing his website [1] repeatedly.[/color]

          And somehow this made all real usenet clients unable to skip his
          thread.
          [color=blue]
          > If you are that clueless, don't post.[/color]

          I will seriously ponder upon this, rest assured.
          [color=blue]
          > [1] He is looking for another hoster btw.[/color]

          This must feel really empowering huh ?

          George

          Comment

          • John Bokma

            #80
            Re: python vs perl lines of code

            "George Sakkis" <george.sakkis@ gmail.com> wrote:
            [color=blue]
            > John Bokma wrote:[color=green]
            >> "George Sakkis" <george.sakkis@ gmail.com> wrote:[/color][/color]

            [ Xah Lee ]
            [color=blue][color=green]
            >> [1] He is looking for another hoster btw.[/color]
            >
            > This must feel really empowering huh ?[/color]

            I am sure I've had quite some help. Also, you made quite a mistake. I have
            0 power, I just reported what I saw: repeatedly cross posting to 5 groups
            for the sole purpose of trolling and spamvertizing a website. And I am
            afraid that 5 is a limit set by Google Groups, not by your kook buddy.

            Funny though, how you have a problem with a thread that side steps to Perl
            only for 4 or 5 postings, but have no problem with a hit & run post in 5
            groups to spamvertize a site.

            Have fun with the pondering btw.

            --
            John MexIT: http://johnbokma.com/mexit/
            personal page: http://johnbokma.com/
            Experienced programmer available: http://castleamber.com/
            Happy Customers: http://castleamber.com/testimonials.html

            Comment

            • George Sakkis

              #81
              Re: python vs perl lines of code


              John Bokma wrote:
              [color=blue]
              > Funny though, how you have a problem with a thread that side steps to Perl
              > only for 4 or 5 postings, but have no problem with a hit & run post in 5
              > groups to spamvertize a site.
              >
              > Have fun with the pondering btw.
              >
              > --
              > John MexIT: http://johnbokma.com/mexit/
              > personal page: http://johnbokma.com/
              > Experienced programmer available: http://castleamber.com/
              > Happy Customers: http://castleamber.com/testimonials.html[/color]

              Oh, I think I get it now. Spamvertizing _one_ site is worth your host's
              subscription; doing it for _four_ sites at your signature is perfectly
              ok though. A rare case of irony deficit disorder I suppose.

              Have a nice day.

              George

              Comment

              • John Bokma

                #82
                Re: python vs perl lines of code

                "George Sakkis" <george.sakkis@ gmail.com> wrote:
                [color=blue]
                > Oh, I think I get it now. Spamvertizing _one_ site is worth your
                > host's subscription; doing it for _four_ sites at your signature is
                > perfectly ok though.[/color]

                Do yourself and many others a favour before you post again, educate
                yourself on Usenet. It might stop you from making stupid remarks like the
                one you just made.

                --
                John MexIT: http://johnbokma.com/mexit/
                personal page: http://johnbokma.com/
                Experienced programmer available: http://castleamber.com/
                Happy Customers: http://castleamber.com/testimonials.html

                Comment

                • H J van Rooyen

                  #83
                  Re: python vs perl lines of code


                  on Friday, May 19, 2006 11:26 PM
                  akameswaran@gma il.com wrote:

                  | All I would ask is what objective evidence does either of actually
                  | have? How can you know? What is a fair way to even count line
                  | numbers? From there how do we begin to objectively measure software
                  | quality? That's why this discussion interests me, and why I don't
                  | understand why you are so adamant it doesn't work. I'll agree that I
                  | have never seen line count/char count type data used for anything other
                  | than marketing swill and kitty litter. Doesn't mean it can't be used.
                  | But first things first... and this one I think is solvable - their has
                  | got to be an equitable way to count how much code was written - maybe
                  | it isn't lines maybe it is. In truth, since you are so opposed to the
                  | idea, I'd be curious if you can think of a way to measure the quantity
                  | of code objectively? ANd that's it - not can we make a qualitative
                  | statement beyond that. But simply can we quanitfy the amount of code
                  | in some fashion that allows a reasonable comparison?

                  This is a difficult question - one way to measure - more or less objectively -
                  is to somehow figure out how many machine instructions (on some "standard"
                  machine - Turing?) would be generated by the code....

                  Even that won't tell us much - cos it will favour inline code as somehow
                  "heavier" than looping code...

                  Now we know that inline code is faster on most machines, and looping code is
                  more compact, - so how to say what is best?

                  And this only covers what you computer scientists call the "procedures " or
                  "methods" - the actual instructions that are executed by the machine - how is
                  the memory space used to be measured and factored in? - and the running stack
                  space needed? - specially in the case of recursions....

                  And then how do you handle an interpreted language vs a compliled language - do
                  you count the machine instructions of the interpreter, or only the ones actually
                  executed? - and the memory consumed by the interpreter?... .. - And if you count
                  the interpreter, why not the compiler?...

                  Not simple, not easy - in fact it's a minefield....

                  - Hendrik van Rooyen

                  Comment

                  Working...