Slashdot Mirror


TIOBE Declares Python the Programming Language of 2007

The TIOBE Programming Community Index has declared Python as the Programming Language of 2007 due to a 58% surge in its popularity rating during the year, making it now the sixth most popular programming language and finally surpassing Perl. They also assert that Python has become the "defacto glue language," being "especially beloved by system administrators and build managers."

43 of 166 comments (clear)

  1. Great, lets all program python in 2007! by Anonymous Coward · · Score: 2, Funny

    Oh, wait. A bit late for that isn't it?

    1. Re:Great, lets all program python in 2007! by Anonymous Coward · · Score: 2, Funny

      They got the date wrong. The year of the Python doesn't come until 2013.

  2. Your flying! How? by slyn · · Score: 4, Funny

    Two oblig python links:

    Python @ xkcd

    and

    Python @ Bash.org

    HHSSSHSHSSS

  3. Acceptance Speech by pembo13 · · Score: 3, Funny

    I would just like to say thank you as I accept this award on behalf of my fellow Python brothers. We all know that God created the universe with Python, but allowed the non believers to think that it was Perl or LISP so that they would not commit seppuku.

    --
    "Thanks for all the money you paid to us. We've used it to buy off ISO among other things" -Microsoft
    1. Re:Acceptance Speech by Anonymous+Brave+Guy · · Score: 2, Funny

      But what would be Perl suicide? Let yourself be trampled by camels?

      <obligatory> There's more than one way to do it! </obligatory>

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
  4. Re:Hmmm by the_B0fh · · Score: 3, Funny

    PHP and ActiveX over Python?

    Mamama!!!! Make the bad man go away, please.

  5. Re:Hmmm by reSonans · · Score: 5, Funny

    I'm hate python.

    Man, you take this stuff seriously. Changing your name is hardcore.

    --
    Light the blue touch-paper and retire immediately.
  6. Re:Maybe we will see more Web by Scarblac · · Score: 4, Informative

    Currently Django, Turbogears and Pylons are all hot. Great web frameworks are there, start using them :-)

    --
    I believe posters are recognized by their sig. So I made one.
  7. Re:Bout Time by StevisF · · Score: 2, Insightful

    People don't hate Python. People hate the people who go around trolling discussion of every other programming language saying how much better Python is than the language being discussed.

  8. Re:Hmmm by mysqlrocks · · Score: 3, Interesting

    PHP and ActiveX over Python?

    What's up with all the PHP haters on Slashdot? For building most web applications it's the place to be. Zend is working hard to increase the level of professionalism of the PHP community. I've recently started using Zend Framework and it's a really nice way to build web applications.

  9. Re:Maybe we will see more Web by abigor · · Score: 2, Interesting

    I'll second the good words for Django. Never used the others, but Django is just great.

  10. Re:Maybe we will see more Web by Simon · · Score: 3, Funny

    Dude, as was mentioned at PyCon 2007, there are more Python frameworks than reserved Python keywords. A framework shortage isn't the problem. ;-) http://www.b-list.org/weblog/2007/feb/23/pycon-2007-web-frameworks-panel/

    --
    Simon

  11. TIOBE? by LMacG · · Score: 3, Funny

    I plugged that into Wikipedia and I got redirected to The Importance of Being Earnest.

    The linked page in the summary doesn't give any clues. Do we get to make up our own meanings? How about The Infernal Order of Bastard Evildoers? Seriously, who are these herpephilic people?

    --
    Slightly disreputable, albeit gregarious
    1. Re:TIOBE? by Drooling+Iguana · · Score: 2, Informative

      This Is One Big Earmuff.

      --
      ... I'm addicted to placebos
    2. Re:TIOBE? by Jugalator · · Score: 3, Informative
      It is short for The Importance of Being Earnest, and this is also shown on their company profile page.

      The name TIOBE stands for "The Importance Of Being Earnest". This is also the name of a comedy play written by Oscar Wilde at the end of the Nineteenth Century. By choosing this name, the founders of TIOBE Software emphasize their sincere and professional attitude towards customers, suppliers and colleagues.
      --
      Beware: In C++, your friends can see your privates!
  12. Re:Hmmm by AmaDaden · · Score: 2, Insightful

    What's up with all the [your favorite programing language] haters on Slashdot?
    *sigh* Welcome to Slashdot....
  13. Lies, damned lies, and statistics by Haeleth · · Score: 4, Insightful

    It all depends how you count it. For example, here is a comparison based on available jobs that shows Perl still vastly in the lead, followed by PHP, with Python and Ruby both trailing by a long way. I'm sure there are other figures that prove that PHP is the biggest language, and yet others that show Ruby is growing fastest, etc. etc. etc.

    TIOBE's methodology is distinctly suspect, too. Looking at search engine result counts - which are estimates, and in the case of Google are well documented to be inaccurate - is hardly scientific. And they're using YouTube as one of their search engines?! How is that going to produce meaningful figures?

    (Yeah, I'm still bitter that ML is so unpopular. But you can't call me a Perl fanboy, because I dislike all "dynamic" programming languages equally, and program largely in C++ and OCaml.)

    1. Re:Lies, damned lies, and statistics by DragonWriter · · Score: 2, Insightful

      TIOBE's methodology is distinctly suspect, too. Looking at search engine result counts - which are estimates, and in the case of Google are well documented to be inaccurate - is hardly scientific. And they're using YouTube as one of their search engines?! How is that going to produce meaningful figures?


      Their measuring the popularity of language foo by "Programming foo" hits, with some special case modifications to deal with particular languages where that kind of query would be problematic. Its not at all a reliable metric, but among the quick-and-dirty language-comparison metrics, it doesn't seem to be notably bad (not, again, that its any good, just that whole pack is really bad and this seems no worse than average.)

      Using YouTube makes some sense given the kind of measure they are doing, since "Programming foo" screencasts that might be distributed via YouTube are as meaningful as the average "Programming foo" webpage.

      (I hate screencasts, personally, but that's a different issue.)
    2. Re:Lies, damned lies, and statistics by Dasher42 · · Score: 4, Interesting

      Not to argue that TIOBE's statistics aren't suspect, but the number of available jobs banging on Perl isn't meaningful to me. I've already had too many jobs where the first order of business is someone pointing me at a directory and saying, "These are your predecessor's Perl scripts. Please figure this out and make things work."

      The last time I had free rein in something like that, I did just that, and made a clean rewrite to make a few cleanly commented, consistent Python modules that did the work of all the previous scripts, sans bugs. Just the fact that assignment by reference is the default, that building data structures deeply requires no line noise, makes the program design easy to get right the first time. No "oops, need another dollar sign there". No "how do I refer to a value in a hash of lists of hashes again?" You just do it.

      Maybe it's that my sense of programming comes from years of looking at some of the cleaner C and C++ out there, and reading Design Patterns, makes me prefer a language that encourages design and clean coding practices by default. I don't want to deal with one more script from someone who munged strings of data with regular expressions where they should have used data structures or objects. Those of you who are about to clean up piles of Perl code with Perl Medic in hand, I salute you. You're braver than I care to be anymore.

    3. Re:Lies, damned lies, and statistics by mvdwege · · Score: 2
      And heaven help you if you wanted to change a function to return a hash of list of hashes instead of a scalar, because then you'd have to change the calling code's semantics for storing the results.

      Being somewhat conversant in both languages, I can't help but wonder how you would go about the same thing in Python. I mean, the difference between a single value and a dictionary of lists of dictionaries is just as big. If your function returns data in a certain format, and you change the format of the return value, you must adjust the calling code's semantics, there is no way around that. Unless you stick the data in a class and only use accessor functions to manipulate it, but that works in Perl just as well as in Python, and you're still stuck changing calling semantics, albeit in one place only this time.

      Mart
      --
      "I know I will be modded down for this": where's the option '-1, Asking for it'?
    4. Re:Lies, damned lies, and statistics by Sentry21 · · Score: 2

      Just the fact that assignment by reference is the default, that building data structures deeply requires no line noise, makes the program design easy to get right the first time. No "oops, need another dollar sign there". No "how do I refer to a value in a hash of lists of hashes again?" You just do it. This is definitely true, though your mention of assignment by reference reminded me of something.

      I was experimenting with writing an IRC bot in Python from the ground up, opening up a socket and sending data into it (no frameworks or anything). After a while, I got fed up with killing the bot and restarting it every time I wanted to test new code (and people were getting tired of it quitting and rejoining), so eventually I came up with a solution.

      I factored the bot class out into a separate module, and wrote a script that instantiated an object of the class, which then connected to the server, joined channels, etc. Then, I added functionality to the class to take all of its data structures (list of channels, list of users, and even the TCP socket itself) and pack them up into a dict, then return the dict. Finally, I added some code to import a dict and replace the data structures with the content of the dict, and then two or three lines of code to unload and reload the IRC bot module.

      The result? I now have an IRC bot written in Python which allows me to modify the code live, without restarting the bot. If I want to add a new function, or add support for another command (one of the myriad numeric commands that, at this point, keeps ending up in my console), I can add it and then simply !rehash in IRC, and the bot reloads its own code, swapping out the old for the new.

      Because objects are passed by reference, the socket itself moves from one instance to another, and the bot never has to disconnect. It was a rather ingenious hack, imho, was startlingly simple to implement, and was made possible by the amazing dynamicness of Python.

      Woo!
    5. Re:Lies, damned lies, and statistics by DavidNWelton · · Score: 2, Interesting

      Perfect stats are impossible. However, I think that even imperfect stats can give you a good glimpse of what's going on. This is my own attempt at doing so, which I think is a bit better than TIOBE's in that I track more things:

      http://www.langpop.com/

      Hopefully, I'll have trend data up there soon as well.

  14. Re:Hmmm by XorNand · · Score: 3, Insightful

    I can't quite figure out if you're a subtle troll or not? However, one of the biggest complaints about PHP programmers is that they're oblivious to a lot of important aspects of programing. Security being one of the biggies. Not being aware of the general criticisms of their chosen tools is another. (Which, if you're not a troll, you've proven my point.) I happen love Python, but I'm also aware of why many people don't like it.

    --
    Entrepreneur : (noun), French for "unemployed"
  15. Every task has a language/framework to fit it by mstahl · · Score: 4, Interesting

    PHP, Java for backend and Flex/Actionscript for frontend

    Them's fightin' words, sir!

    But seriously.... I've just gotten so tired of PHP in the past two years, and Ruby was such a great improvement to it. I used Python before PHP and my only complaint at the time was that it really was more trouble than it was worth at the time to write whole web applications in Python. You could, but languages like PHP were made for the web, so it got superseded. Once upon a time I wrote a few games in Python using PyGame and PyOpenGL though and had nothing but great experiences with that. I wouldn't call Ruby a cure-all, but it's pretty flexible and really pleasant to use for a wide variety of projects.

    That being said, I think that your post really misses the fact that for every task there's usually one or two programming languages or frameworks that would be "best" for that task. While PHP and Java may work as a backend for you, many of my projects are almost completely perfect for a Ruby on Rails implementation or specifically require functionality that exists nowhere else. Meanwhile Actionscript implies Flash, and I only have a couple of things brewing right now where Flash is even an option, much less advisable. I'm not trying to slam you here; I'm just saying that like anything else your mileage may vary.

    Also, python's supposedly getting tail recursion and some other tasty features soon. I might be tempted to pick it back up if it can surpass ruby in its efficiency that way.

  16. Build management: Switching from gmake to Python by Mark+Programmer · · Score: 4, Interesting

    especially beloved by system administrators and build managers.

    Absolutely. This year we replaced an old build system written in make with a (vastly superior) Python solution written from scratch. The replacement took one programmer about two weeks. The make system had taken two programmers a disgusting amount of time to build and support. What suprised me most upon completing the changeover was that the Python solution was faster than the gmake solution; since Python compiles to bytecode, re-running the build script was a quicker operation than gmake's re-parsing of the make files.

    Python's advantage as build glue is that it is just simple enough to be nearly shell scripting (write a simple wrapper, and you can pretty much just write shell script). But it has the features of a decent high-level language---including, most importantly, integrated documentation and a debugger. Anyone who doesn't understand why one would need a debugger for a build system hasn't yet written a build system complicated enough.

    Really though, this is less a statement in support of Python and more a statement against gmake. Make's age really shows as a build language, and if not for all the tools in the GNU world that depend upon / assume the existence of a make engine, I would encourage everyone to just toss the whole thing overboard and create all new build scripts in something else. You have better things to do with your time than reverse engineer code written in a nearly incomprehensible string-parsing language by someone who---in spite of the "standards" that have built up around make over the years---has gone off and done his own thing anyway. If you're going to have to deal with custom build code, you may as well own the challenge completely.

    --

    Take care,
    Mark

    There is a solution...

  17. Re:Bout Time by krog · · Score: 4, Funny

    as is every fucking variable, subroutine name, and pun in every Python program, site and text

  18. Re:Maybe we will see more Web by SkelVA · · Score: 5, Interesting

    I just picked up django two weeks ago and I'm loving it. I'm converting a PHP project slowly, and as an anecdote on how much more productive django is than PHP (for me):

    I had some features I had estimated out in PHP (over the last 6 months my estimates have been pretty dang close), and I implemented several of them in Django/python instead. I averaged beating my PHP estimate by 1/3rd, and that's including the time I spent trying to learn how the heck to do things in Django. I can't wait to see how things look once I've got at least an intermediate understanding of my framework. I don't hate PHP, I just love python much more.

  19. Re:Hmmm by mysqlrocks · · Score: 4, Informative

    Not being aware of the general criticisms of their chosen tools is another. (Which, if you're not a troll, you've proven my point.)

    I'm not a troll, just wondering why there's so much bashing of PHP on Slashdot. I am aware of many of the criticisms of PHP. One of them you mentioned:

    However, one of the biggest complaints about PHP programmers is that they're oblivious to a lot of important aspects of programing.

    You'll see that I partly addressed that criticism with my "Zend is working hard to increase the level of professionalism of the PHP community" statement. I'm not going to go into a full length defense of PHP but if you are looking for such a defense I would suggest 10 PHP Myths Dispelled. I am not a PHP zealot, I just have a lot of experience with it and would prefer to build web applications using PHP over the alternatives that I've tried (Java/JSP, ASP.NET). I can't compare it to RoR or Python since I have tried neither. I've read about both and have seen nothing compelling to make me consider switching. I'm quite productive developing in PHP and am quite aware of both it's advantages and criticisms.

  20. tools for the task by Speare · · Score: 3, Interesting

    First off, let me say that I love both Perl 5 and Python 2.x and have used each of them on a wide diversity of projects. I've implemented my own OO system on top of each, I've used each for CGI, I've used each for AI, natural language processing, and game programming. Both languages have their idiosyncratic idioms and it's really annoying when you see a lot of C-ish code in either Perl or Python projects. It's also very possible to write ugly "write once" code in either one, don't be misled by the whitespace arguments: ugly code is about how you express (or fail to express) a problem and a solution.

    However, I have to say, pick the tool for the job. There are things that are more naturally expressed in Perl idioms than in Python idioms. There are things that are much more clear and direct about Python code for outsiders to read and understand. If I were doing a ton of regex text scanning work, Perl incorporates it into the language directly, whereas it's a bolt-on for most other languages. If I were doing a ton of object management, I like the compactness of Python's syntax over that of Perl's. Both have great extensibility but the available extensions and support can shape your choice for a given project. I wish Python had true equivalents to Perlmonks and CPAN; conversely I wish CPAN modules were more crisp and consistent, attributes I think I find in the community-written Python modules I've used.

    --
    [ .sig file not found ]
  21. Just Say No! by Endymion · · Score: 2, Interesting

    Just say no to Bondage and Discipline Languages!

    ...any language where the author thinks lambda is "too confusing" and should be removed is doomed from the start.

    --
    Ce n'est pas une signature automatique.
  22. Re:Maybe we will see more Web by mysqlrocks · · Score: 3, Interesting

    I'm converting a PHP project slowly...I averaged beating my PHP estimate by 1/3rd

    Perhaps you learned something the first time you solved the problem which helps you solve the same problem quicker the second time? Perhaps if you redid the project in PHP (I know this would be pointless, but for sake of argument) it would be just as fast as in Python?

  23. Re:Maybe we will see more Web by SkelVA · · Score: 5, Informative

    Perhaps you learned something the first time you solved the problem which helps you solve the same problem quicker the second time?

    That would definitely effect any re-implementation I had to do. I probably didn't make myself clear, but the efficiency was gained on 100% new code adding a new set of basically standalone features (A quizzing module added to a document control system). Of course, the efficiency gain was over my estimates, and they're subject to the accuracy of my initial estimates. I've been using the trac timing and estimation plugin to track my estimations over this project though, and they've been pretty dead-on (especially the last couple months).

    When I go back and do re-implementation of features already present in PHP, I should only expect big gains coming from being able to just port code instead of design. I would really like to see more empirical evidence on the topic myself, but all I have to go on is my personal data.
  24. Re:You don't change horses.. by ceoyoyo · · Score: 2, Funny

    Every Python programmer who reads that is going to shudder at the thought that Python might even try to surpass perl's shell-like syntax and C-likeness.

  25. Re:Hmmm by mysqlrocks · · Score: 2, Informative

    Technically you're talking about the available functions, not the "language" itself. But, semantics aside, I would argue that your complaint is being addressed. The Zend Framework I linked to and the SPL are PHP class libraries that you can use if you would prefer to work with PHP in OO way and (for the most part) forget about calling PHP functions outside of a class or object context.

  26. Re:Reasons to love PYTHON! by vrmlguy · · Score: 2, Insightful

    Indentation preferences vary among programmers, are arbitrary, and some people feel strongly about 4-space, 2 space, tabs, etc. Python uses this as a syntax element and forces everyone working on a particular file to share the same indentation scheme or risk breaking the code. Some of use view this as a good thing. ;-)

    Personally, I hate tabs. Every editor I use seems to have the tab-stops set differently, and looking at 4-space tab code in an 8-space tab editor is not my idea of fun.
    --
    Nothing for 6-digit uids?
  27. Re:Tried python by AlXtreme · · Score: 2

    Frameworks can't be written successfully in a baby language like PHP, Python frameworks aren't gonna magically appear.

    Like Django, perhaps?

    I'm with you on twisted; you nead to twist your head around it. Python has indeed had a relatively quiet year. Django on the other hand seems to be doing things just right and leaves the programmer with the final say in how he wants to structure his application. I've been using it for various projects over the last 1.5 years: it has never let me down and shortened development time considerably, leading to very happy clients.

    Given I charge by the hour, I might have to pick up Java to crank up those invoices...
    --
    This sig is intentionally left blank
  28. Re:Hmmm by DragonWriter · · Score: 2

    What's up with all the PHP haters on Slashdot?


    I tried PHP out for a while a couple years ago. Quite a lot of useful libraries, but the language itself didn't seem to offer much. For just gluing together the existing libraries with minimal new code, it seemed to quite usable (and a lot of web development might get by with that), but it seemed a lot less nice when there was more processing involved. Maybe I just didn't get it, or maybe its improved since then...

    For building most web applications it's the place to be.


    Why? Sure, it featured neat embedding in HTML before there were Python or Ruby templating engines that used Python or Ruby in HTML, but why would it be preferred now, for a new, ground-up web application, besides familiarity to the developer? (I'm not trying to be argumentative, just looking for perspectives on "why PHP?")

  29. Re:You don't change horses.. by Anonymous+Brave+Guy · · Score: 2, Funny

    What the #!$% are you talking about?!

    --
    If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
  30. Re:Questionable methodology by rjames13 · · Score: 2, Insightful

    I never put "language programming" into a search engine I find "language library tutorial" is better. Of course that means I am learning "language" and "library". If I'm already programming in a specific language and know where the libraries documentation is then I have it bookmarked.

  31. Re:Reasons to love PYTHON! by SanityInAnarchy · · Score: 2, Insightful

    You can't just send somebody some Python code in a medium that isn't whitespace-safe.

    What medium?

    Indentation preferences vary among programmers, are arbitrary, and some people feel strongly about 4-space, 2 space, tabs, etc. Python uses this as a syntax element and forces everyone working on a particular file to share the same indentation scheme or risk breaking the code. In free-form languages, one guy who forgets to change his 4-space tab into actual spaces isn't going to break things.

    That's actually a feature -- it forces everyone to agree on a standard there, and use it.

    If, for example, one guy uses tabs and one guy uses spaces, and the tab guy has his tabstop set to 2 or 4, while the spaces guy has left it at 8... well, stuff is going to look weird. Forcing everyone to the same convention is something you should be doing anyway, and I'd rather it happen automatically (by breaking stuff).

    --
    Don't thank God, thank a doctor!
  32. Re:Build management: Switching from gmake to Pytho by GrievousMistake · · Score: 2, Interesting

    Really? One of the problems I've had with Python is how hard it is to use it as a shell scripting language. Namely, the functions for browsing and manipulating the file system are low-level, OO-hostile, quirky, and scattered seemingly almost randomly between os, os.path and shutil. I find them so unwieldy I'll sometimes just cheat and call .bat files from Python to operate on files.
    Apparently some people even have it as their CLI of choice, so I may be missing something, but I've been unable to pry out of them what the secret is.

    --
    In a fair world, refrigerators would make electricity.
  33. All languages are bashed on /. by Qbertino · · Score: 3, Insightful

    Sure there is PHP bashing, as is bashing of many other PLs. Just watch a Lisp or C guy go after Java to see what I mean.

    The truth is, the people that really are programming and solving problems rarely rant about a PL without having tried it. PHP is an extremely n00by-friendly programming language - also because of it's wide availability - and thus lots of code in PHP is quite wacky actually. This falls back on to the PL itself. Flash/ActionScript has simular problems (aside from having a strong prorpietary touch to it).

    In the end PHP, with its neighbourhood to markup, is the web-eras basic. With way more succesfull and impacting open-source web applications than any other solution - Python included.

    I *am* a Python fan, but it just didn't have that critical mass of an install base back then when mod_php gained traction. And that the true King and ruler of all webkits, Zope, has had a backend that looks like shit for 7 years now didn't help it either. Nowadays nobody gives a hoot if Zope is lightyears ahead of Rails and a few years older - it's just a niche webkit for people who've bumped into it

    There are a lot of factors that make a language successfull, and PHP meets very many of those. Just because people rant about it doesn't mean it really is bad. Nobody I know would say that programming in C is really fun and modern and hip. And many people rant about it. Yet look how many mission critical work still is done with it - because the untested alternatives aren't any better.

    On the server-side I've been mostly doing PHP for last 3 years now and am now going totally OOP with the CakePHP Framework and a large international project. It works, is extremely neat and quick to develop with. So be it that PHP has a few bizarly named core functions and arrow->syntax. So *fucking* what? My friend who has a business aswell and is a Sun partner and Java fanboy just moved his webproject from Java to PHP so they could finish it faster.
    "Java Fanboy speeds up project by switching to PHP" - enough said.

    Slashdotters rant a lot, but reality is allways a tad different.

    --
    We suffer more in our imagination than in reality. - Seneca
  34. Re:Reasons to love PYTHON! by SanityInAnarchy · · Score: 2, Informative

    It's worth mentioning that, at least in IRC, this is the preferred medium. It should work elsewhere, too, and there are scripts to assist in it.

    Your point is valid, but I don't believe I should constrain the format of a language because it won't work in some mediums. Should I not include []-bracketed arrays because bbcode might hate them?

    In languages that use delimiters as block and line markers, you can run a code beautifier to standardize the code, and even fix code that is horribly malformatted. If the white space gets screwed up really bad in a python program (line endings are deleted somehow), it will it not only fail to run, it will require a human to go in and unscrew it.

    Ah, but if the whitespace gets screwed up in a python program, that's equivalent to the bracketing getting screwed up in a C-style program. So the difference is that broken whitespace is not the domain of a code beautifier in Python, anymore than brackets and parentheses are the domain of a code beautifier in just about any language.

    Also, code beautifiers are still going to leave some things out of place, particularly comments which are spaced to match the code.

    --
    Don't thank God, thank a doctor!