Slashdot Mirror


Interview with the Creator of Ruby

Lisa writes: "Yukihiro "Matz" Matsumoto talks about Ruby's history, the influence of Perl and Python on Ruby, and his new book, Ruby in a Nutshell. In the article he explains: "When I started the language project, I was joking with a friend that the project must be code-named after a gemstone's name (àla Perl). So my friend came up with "ruby". It's a short name for a beautiful and highly valued stone. So I picked up that name, and it eventually became the official name of the language. Later, I found out that pearl is the birthstone for June, and ruby is the birthstone for July. I believe Ruby is an appropriate name for the next language after Perl.""

55 of 183 comments (clear)

  1. next birthstone after perl? by jrs+1 · · Score: 2, Funny

    that's treason - "off with his head!" ;)

  2. Also check out this link by krs-one · · Score: 4, Insightful

    One might want to check out this link as well.

    -Vic

    1. Re:Also check out this link by talesout · · Score: 2, Informative
      Any link that isn't goatsex is modded up blindly.

      I remember the article on apple a while back where a guy just went through apple's web site and posted links to a whole shitload of apple products. He had +5 Informative so fast it made your head spin. Fucking moderators.

      --


      Bite my yammer.
  3. mmmm by Anonymous Coward · · Score: 2, Troll

    If you haven't looked at Ruby yet it's @ www.ruby-lang.org it's a beautifully done object oriented scripting language which IMHO is exactly what the computer industry needs. Other scripting languages have really hit a wall in development because of the objectless syntax, but ruby, is a piece of work.

    1. Re:mmmm by smallpaul · · Score: 4, Interesting

      Other scripting languages have really hit a wall in development because of the objectless syntax, but ruby, is a piece of work.

      Yeah, I can see your point. The other languages have a totally objectless syntax!

      Too bad they have all hit a wall.

  4. urls by jrs+1 · · Score: 5, Informative

    there the ruby language home page and you can download the latest version.

  5. Why another language by RavenDuck · · Score: 4, Insightful
    Lots of people probably wont read the linked interview, so I think it's worth quoting this beautiful little paragraph as to why the world might need Yet Another Scripting Language.
    Why should you switch to Ruby? If you are happy with Perl or Python, you don't have to. But if you do feel there must be a better language, Ruby may be your language of choice. Learning a new language is harmless. It gives you new ideas and insights. You don't have to switch, just learn and try it. You may find yourself comfortable enough with Ruby to decide to switch to it.
    1. Re:Why another language by sg_oneill · · Score: 3

      I must agree that learning new languages is a good thing, even if you never end up using it. Take Python; Having avoided Perl because of the gaga looking syntax I picked up Python as a good alternative. I never really would of realised just how usefull for representation Tuple/list/dictionary type combinations really can be. You don't actually *need* variants of the windoze variety with this. (Ergo Soap works charmingly).

      I rarely end up using python professionaly other than for supernifty one off hacks (in heroic time!) but it's sure filled my head with nifty new ways of going about things in my 'mainstream' programming life.

      I'm sure Ruby has it's little charms too. Must investigate.

      --
      Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
  6. Re:Anyone got a link? by Phantasiere · · Score: 2, Informative

    Try the Ruby homepage here for downloads of the interperter.

    Another good resource is for information about the language is Ruby Central, which includes the online version of the book, 'Programming Ruby - The Pragmatic Programmer's Guide' which is very use for those learing the language and as a general language reference.

  7. Nice, but developer mindshare already too diluted by Ars-Fartsica · · Score: 4, Insightful
    I've been following Ruby for a couple of years now - in general its a polished design that synthesizes the best of many competing languages, but ultimately there is little motivation for Perl and Python programmers to invest time in becoming Ruby gurus.

    The language biosystem is overpopulated, and mindshare starvation can be fatal to a new tool.

  8. What Ruby got that Python don't got? by Linux_ho · · Score: 4, Insightful

    I love Perl, wrote many a fine script in it, and a couple mostly unreadable messes. I started using Python, and am using it for most of my scripts now. I poked around Ruby's web page a while back and tried to find out what all the hoopla was about, but couldn't find anything really revolutionary. Bruce Eckel (of Thinking in C++/Java fame) doesn't seem to think much of Ruby.

    Sure, maybe there's some cool new syntactic sugar. Sure, it's sexy to be able to say you're developing in/developing libraries for/developing a brand new computer language. But unless there's some significant additional benefit to this new design, why re-invent the wheel with Yet Another Language?

    So, SOMEONE must be able to tell me what's so *great* about Ruby that we should start calling Python obsolete. Either that, or acknowledge that Ruby is just a fun, impractical project that truly is re-inventing the wheel.

    --
    include $sig;
    1;
    1. Re:What Ruby got that Python don't got? by Waffle+Iron · · Score: 4, Insightful

      So, SOMEONE must be able to tell me what's so *great* about Ruby that we should start calling Python obsolete.


      Ruby's iterators. IMHO, this simple construct provides 80% of the what's truly useful in a functional language without the ivory tower weirdness.


      Having said that, Python 2.2 is soon adding it's own iterators and generators. They looks slightly less elegant, but I havent' tried them yet, so I can't be totally sure; they might be better.

    2. Re:What Ruby got that Python don't got? by huberj · · Score: 2, Informative

      It's hard to reply to this -- how could this (obvious) flame get moderated so high? I don't understand why you think that for Ruby to be useful it has to obsolete Python?

      I don't know Python, but I suspect the features of both Ruby and Python are similar. The syntax for Ruby is very nice.

      What happened to you (switching from Perl to Python) is basically what happened to me, except it was Perl -> Ruby.

      Can't you accept that it's possible for someone to actually like one language more than the other? (you obviously do, and are so closed minded to not give Ruby more than a quick look over)

      I recommend reading some of the Pickaxe Book, which is available online.

    3. Re:What Ruby got that Python don't got? by smallpaul · · Score: 2

      "Yes, Python's iterators (generators, sorry) feel like an Icon bolt-on in comparison."

      I really don't see anything bolted-on about Python's iterators or generators.

      def inorder(t):
      if t:
      for x in inorder(t.left):
      yield x
      yield t.label
      for x in inorder(t.right):
      yield x

      for node in inorder(t):
      print node

    4. Re:What Ruby got that Python don't got? by Linux_ho · · Score: 2

      I'm not saying it couldn't be useful. Reinventing the wheel still gives you a very nice wheel that rolls around just fine. I'm just saying that creating it was a frivolous waste of time. It wasn't necessary. It doesn't fill a need. The effort would have been better spent improving python.

      --
      include $sig;
      1;
  9. Re:Slashdot isn't trying to pedal some language... by dimator · · Score: 2

    over the last 6-8 months there have been at -least- 1 article/month on *Ruby*

    Well, if you look at this you'd see that if they *were* trying to pedal a certain language, it would probaly be perl, since perl stories average >1 a month.

    --
    python -c "x='python -c %sx=%s; print x%%(chr(34),repr(x),chr(34))%s'; print x%(chr(34),repr(x),chr(34))"
  10. Ruby and Parrot by matthewg · · Score: 2, Interesting

    Are there any plans to have Ruby use Parrot, the future shared backend for Perl and Python?

    1. Re:Ruby and Parrot by the+gnat · · Score: 2

      Ack. This was an April fool's joke, remember? Perl6 development is partly based around a VM called "parrot" because it should be reusable for other languages, e.g. Python. I don't see any indication on the python home page that they're planning on using it, though. It's a neat idea, but it's a long way from being a "shared backend" for python as well as perl, and the Parrot home page makes it quite clear that its principle use is for Perl6.

  11. As Long as You're Happy In ______ .... by namespan · · Score: 5, Insightful

    From the article:

    As long as some people feel happy using Ruby, that's enough of a reason for another language for me.

    A-men.

    It works for a lot of other things, too. Pick
    a language, or political party, or religion, or
    operating system, or city of residence, or
    economic system, or mathematical notation, etc...

    Seriously, folks, adopt this attitude, and the
    world will sleep MUCH easier at night.

    --
    Libertarianism is rich wolves and poor sheep playing gambler's ruin for dinner.
  12. It ain't bad... by linuxjack55 · · Score: 3, Insightful

    Compared to Perl and Python, the syntax is cleaner and easier to understand. Scripts can be roughed out in functional terms, and then moved over to objects in no time at all. And, since every component of the core language is an object, OOP is as simple as it gets. The thing that's killing Ruby for me is the lack of documentation. The material that's available requires a lot of (read too much) effort to assimilate. It desperately needs a Camel book...

    --
    The trouble with practical jokes is that very often they get elected. -- Will Rogers
    1. Re:It ain't bad... by JamesOfTheDesert · · Score: 4, Informative
      It desperately needs a Camel book...


      Perhaps one of these (some out know, some to be published Real Soon Now) would help.


      Programming Ruby: A Pragmatic Programmer's Guide, by David Thomas, Andrew Hunt
      Paperback - 608 pages 1st edition (December 15, 2000)
      Addison-Wesley Pub Co; ISBN: 0201710897

      Ruby Developer's Guide, by Michael Neumann
      Paperback - 520 pages 1st edition (November 2001)
      Publishers Group West; ISBN: 1928994644

      Ruby In A Nutshell, by Yukihiro Matsumoto
      Paperback - 230 pages 1st edition (November 2001)
      O'Reilly & Associates; ISBN: 0596002149

      The Ruby Programming Language (With CD-ROM), by Yukio Matsumoto
      Paperback - 496 pages Bk&Cd-Rom edition (July 5, 2002)
      Addison Wesley Professional; ISBN: 020171096X

      The Ruby Way, by Hal Fulton Guy Hurst
      Paperback, 400pp. ISBN: 0672320835
      Publisher: Sams, Pub. Date: November 2001

      Sams Teach Yourself Ruby in 21 Days, by Mark Slagell
      Paperback, 1st ed., 600pp. ISBN: 0672322528
      Publisher: Sams Pub. Date: December 2001

      Programmieren mit Ruby, by Armin Röhrl, Stefan Schmiedl, Clemens Wyss, etc.
      dpunkt.de; ISBN 3898641511 (February, 2002)
      --

      Java is the blue pill
      Choose the red pill
  13. Why the odd block structure? by Nindalf · · Score: 3

    I love Ruby, especially for the arbitrary-sized integers by default (this might seem like a minor feature, but I deal with exact numbers over a few billion so often that I hate to fumble with extensions and libraries for it), but one thing that confuses me is the block structure. Why "end"?

    Why are static conditional and loop blocks, and function and class definitions, so different from the brace type of general blocks, and so different-looking from Perl? And why is the option of "do || ... end" or "{||...}" not more general?

    For example (and please correct me if my assumption is wrong), why can you choose between "for do || ... end" and "for {|| ... }", but not between "def func(n) ... end" and "def func {|n| ... }" ?

  14. Need to see it in job ads before it's "official" by Wee · · Score: 4, Insightful
    I've had a habit of reading want ads (mostly job postings lately, but the "Farm Equipment" and "Misc Real Estate 4 Sale" sections are always good) since I was a kid. I know, that's weird. But back then it was always fascinating to me that you could find out just want people want if you read enoguh ads. I thought that if I could read all the want ads then I'd know exactly what my city needed. I imagined that you could make graphs and see what was in demand and such -- kinda like SimCity's zoning bar graphs (which was my immediate thought when SimCity came out).

    I'm not officially OT. See, I still read wants ads. And I look at what's in demand for clues to what I should be learning, trends, etc. Databases are a good example from a couple years ago. I noticed that lots of the 1996 job ads had web->DB stuff in them, and so starting brushing up on databases in my off hours. It turned out to be useful later on. I know that one could take this line of reasoning to mean that everyone should start learning VB and IIS stuff, but it isn't an absolute. You kinda have to read all the ads and then stand back and squint to see the trendfs in your area. If you're a Unix geek, you'll see what ost people want, which might lead to learning something new.

    My (long winded) point is: Ruby won't be on my radar until people can reasonably be expected to pay me for using it. I know I just got modded down in the minds of a lot of poeple by saying that, but it's how I think. When I see Ruby listed in want ads, then I start noticing it (especially if its mention grows over time). I figure that I need to kill two birds with one stone: know enough to get my job done by knowing a diverse enough range of stuff so that I can still get paid. If I spent all my time learning every other thing that came out, I'd never get any work done. And I'd only know a little bit about everything. I need to know a certain subset of things really well, and just the right amount about a lot of other stuff in order to stay competitive. It's setting that threshold of other stuff where the want ads come in handy. If everyone wants wireless all of the sudden, something's up. So I devote a little time to learning it.

    I guess as I get older, I'm starting to value my unplugged time. I can't burn 36 straight hours engrossed in new (and mostly arcane) stuff like I did 15, 20, or even 10 years ago. I have to choose my projects and apply my time wisely. So whern I start seeing Ruby in the wants ads, I'll take a look. I'll be behind the curve, but that's fine.

    -B

    --

    Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

  15. Re:Nothing ?! by vscjoe · · Score: 2
    And cleanner syntax matters! That is why people switch from perl to python and many avoid lisp.

    It's hard to get syntax that is "cleaner" than Lisp syntax: Lisp syntax is very easy to parse, very easy to write, and completely unambiguous.

  16. Ignorance is Strength by Anonymous Coward · · Score: 4, Insightful

    > Sure, maybe there's some cool new syntactic sugar.

    [sigh.] All non-1stGLs are, boiled down, syntactic and semantic sugar. *That's the whole point.* You try and map the necessary, needs-of-the-machine language up to something closer to How People Think (tm).

    > Sure, it's sexy to be able to say you're
    > developing in/developing libraries for/developing
    > a brand new computer language.

    Yeah, I like to read the same book over and over, too. It's not like I can learn any new ideas from anything other than _Atlas_Shrugged_.

    > But unless there's some significant additional
    > benefit to this new design, why re-invent the
    > wheel with Yet Another Language?

    If nothing more, than to grind one's teeth on the *art* of language design. Am I reading you wrong, or are you actually convinced that Python and Perl are the highest glory of formal systems?

    > So, SOMEONE must be able to tell me what's so
    > *great* about Ruby that we should start calling
    > Python obsolete. Either that, or acknowledge that
    > Ruby is just a fun, impractical project that truly
    > is re-inventing the wheel.

    You should become a project manager, as you have the proper terror for new ideas. I'll be here at work over the weekend, grinding out shit in Visual C++ that could have been done in no fucking time with Common Lisp. But hey, those LISPs are just fun and impractical.

    "And the people bowed and prayed to the neon god they made"
    --_The_Sounds_of_Silence_

    1. Re:Ignorance is Strength by sg_oneill · · Score: 2

      If nothing more, than to grind one's teeth on the *art* of language design. Am I reading you wrong, or are you actually convinced that Python and Perl are the highest glory of formal systems?

      ...No that's SmallTalk ;). One day I might even figure out how to do something usefull with it ;)

      Of course there are some langs that do exist pretty much for the art of it. Think Prolog (Oh ok.. PostScript uses). Doesn't mean we are not richer for them.

      (Hope I didn't start a holy war here!).*grin*

      --
      Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
    2. Re:Ignorance is Strength by Linux_ho · · Score: 2
      If nothing more, than to grind one's teeth on the *art* of language design. Am I reading you wrong, or are you actually convinced that Python and Perl are the highest glory of formal systems?
      Yes, you're reading me wrong - I'm not saying any of them are the holy grail, and you know it. If Ruby had made a single step past Python in the direction of "formal system glory", if Ruby actually offered anything I thought was new and interesting to the art of language design, I would be behind it 100%. Instead, I get the impression of random bits of Python and Perl cobbled together with bubble-gum and duct tape. If I choose to grind my own teeth on the art of language design at some point, I won't be choosing Ruby to grind them on.
      You should become a project manager, as you have the proper terror for new ideas. I'll be here at work over the weekend, grinding out shit in Visual C++ that could have been done in no fucking time with Common Lisp. But hey, those LISPs are just fun and impractical.
      Yow, my hair is smoking. Have you actually used this language you're defending so vigorously? Just because I don't like Ruby doesn't mean I don't like LISP, though you seem to have somehow made that connection. Perhaps you're projecting a little frustration at having to work over the weekend?

      --
      include $sig;
      1;
  17. Re:just have to wait. by Waffle+Iron · · Score: 4, Funny

    I'm only now on chapter two of learning python. gonna have to wait till i can do more than just

    print "Hello, World"

    before i try to learn something else.


    You're in luck. That code is valid for both Python and Ruby. If you stay on this track, you'll master both languages in no time.

  18. better alternative for product development by Lepruhkawn · · Score: 4, Interesting

    If someone INSISTS on using a scripting language to build thousands of line of code that I then have to try and maintain and enhance as a product, I'd welcome any alternative scripting language that doesn't encourage obfuscated code as much as Perl does.

    I don't know if Ruby fits that bill, but it would be a reason to switch if it does.

    Of course, I know that code in any language can be well documented and written so that's easy to understand. It just seems like code written in Perl is much more likely to be difficult to read than in other languages more appropriate for applications.

    I'm part of a group that has had Perl code (using the OO facilities) handed off to it to maintain and fix. It contains many Packages and probaby several thousand lines of code. Not sure. I've successfully kept my name off the responsibility list for that code. It's been pure hell for the engineers that have been asked to fix it--and all it's supposed to be is a simple parser and data access interface.

    I use Perl myself for my own scripting but it can be cruel and unusual punishment to be given someone else's Perl to maintain.

    It's enough to make you take your clothes off and run around the office screaming "I CAN'T CODE NAKED!!! AHAHAHAHAAHAH!!!" until they put you on a different project.

    --
    Jesus saves....And takes 1/2 damage.
    1. Re:better alternative for product development by Fnkmaster · · Score: 2, Informative

      I find Python to fit this bill quite well, though I'm sure Ruby has the same general style to it and can be just as readable. In particular I love the fixed indenting for code organization. The variants and often times complete failure of many projects to format source code and adhere to a coding standard in anything resembling a readable format always annoys me. Some people find this feature of Python even more annoying though - whatever floats your boat (I've often sat around wondering why we don't just force Java to have a common indenting syntax so everyone can use the editor of their choice and they will play nice out of the box).

  19. disagree!=flamebait or offtopic... by 3am · · Score: 2

    ...which is how most moderators seem to use it. which is sad. tyranny of the majority is boring in spirited discussions...

    --

    A: None. The Universe spins the bulb, and the Zen master merely stays out of the way.
  20. Comment removed by account_deleted · · Score: 3, Interesting

    Comment removed based on user account deletion

  21. Re:Shoga wa? by JamesOfTheDesert · · Score: 4, Funny
    Yeah, and god knows, OO languages that combine the power of Lisp with the ease of Perl are all over the place.

    Like Java(tm). Oh, wait, that's the power of COBOL with the ease of, well, COBOL.

    Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries. All rights reserved. The Java name and Java logo may not be used without express permission from Sun Microsystems, Inc. Sun Microsystems reserves the right to pretend interest in "open source" development yet maintian dictatorial control over ever last freaking aspect of the Java bloated programming language because Sun Microsystems were the first and only people to think of "write once, run anywhere." Oh, and that phrase is trademarked, too, so don't even think of applying it to anything else, even if it's true (which it isn't for Java, but we have the marketing and the laywers, so there).

    --

    Java is the blue pill
    Choose the red pill
  22. I really hope Ruby gains ground by Colonel+Panic · · Score: 3, Informative

    It's a joy to program in...

    * There's iterators & blocks
    *A unified class/type system (meaning you can extend built-in types like String,Array,Hash,Kernel, etc)
    * fully OO - 42.times { |i| puts i }
    but it doesn't get in the way when you don't want OO, like it seems to with Java.
    * Design patterns - Observable,Delagator,Singleton,...
    * dRuby - Ruby's very easy to use distributed object system.

    For now it's great fun, hopefully someday it'll pay the bills too. ;-)

  23. Re:Nothing ?! by Fnkmaster · · Score: 2

    Easy to parse? Are you insane? The primary reason for LISPs lack of success in the real world, IMHO, and the ultimate success of least common denominator languages like Java lies in their parseability to somebody with only general knowledge of the specifics of the applications (i.e. lead time on bringing new developers into a project). This is the one of the most significant strengths of Java over C++ (well, not the only one, and there are plenty of weaknesses, but this strength wins out with much "enterprise" or "business" server-side software). I also find Python generally quite pleasant to parse and read. LISP, on the other hand, is easily parseable only for those with strange brain defects that make them love spending their days counting parens with bleary eyes.

  24. Re:just have to wait. by sg_oneill · · Score: 2

    If you can do any programming at all, I implore you just to do the little tutorial in the help files. It's a freaking winner! *EVERYONE* Who I know who learned it this way pretty much had mastery over Python in under the week. It is *beautifull* like that.

    Must check out Ruby tho..

    --
    Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
  25. Maybe Slashdot should do an "Ask Bjarne" by puppetluva · · Score: 5, Insightful

    I did. In 1995 I had a conversation with Bjarne Stroustrup (inventor of C++) and asked him the obvious layup "Which language should programmers seek out and learn?"

    Instead of automatically plugging C++ he suggested something like this:
    1. Learn (or read) at least one every year or two so you don't get pigeonholed into the limitations of the language you use every day. Different languages promote different approaches - and different approaches/designs are the toolchest of this industry.
    2. At least try out one functional language (Lisp/Scheme), one OOP language(C++/Java), one procedural language. None is better than the other, they have different takes on the world and shine at solving different types of problems.
    3. Sticking with one language (at the total exclusion of others)limits your output and stunts your learning curve. Looking at more than one also reminds you what languages are for -- expressing more succinctly and clearly the instructions you want the computer to heed.

    This being said, I look at lots of languages and I've learned a lot from using Ruby (and I use it a lot now). The best ideas from Perl, Smalltalk, Python and C/C++ are all there. The downsides are not (Perl - clumsy OO, Smalltalk - high-priced/low acceptance, Python whitespace-significance/non-OO primitives, C/C++ - compilation, etc.). The user community is probably the most helpful and thoughtful I've been a part of as well.

    As far as Ruby's success at translating your thoughts to working programs? I read posts where people claimed they wrote less code, got more functionality, and fewer bugs right away. At the same time, they claimed they generally produced cleaner solutions at a faster rate than they ever had before with Perl or Python. Skeptical at first, I tried it out. . . I was shocked to find it was true for me within 2 days - I was sold.(note - I really am baffled by Bruce Eckel's comments on Ruby. . .I respect him as a writer, but I couldn't disagree with him more)

    Final note: If you are interested in becoming a better programmer, you should get the book "The Pragmatic Programmer" and read it(It was previously and glowingly reviewed by Slashdot - and no, I'm not the author). Its full of great advice on how to approach new languages and the general art of programming. The authors also wrote the book "Programming Ruby" (The "pickaxe" book) and they are big fans of Ruby as well.

  26. A framework for web apps by metlin · · Score: 3, Informative

    Rappsrv is an interesting framework for web applications written entirely in Ruby.

    You can check out the site, the code and the thing at work.

    Pretty neat! There are also some nice Ruby resources at the same site.

  27. Re:Need to see it in job ads before it's "official by jimm · · Score: 2, Informative
    Here is a Ruby job. The description starts:

    "Client is a small advertising agency in Manhattan.

    "Job consists of production work on heavily dHTML website. In order to minimize production pain, html pages are generated using Ruby (a wonderful language)."

    Yay, Ruby!

    --
    Transcript show: self sigs atRandom.
  28. better C interface by vscjoe · · Score: 2
    I like the Python programming language, but I don't particularly like its C implementation and interface. Reference counting in Python is a particular problem, frequently leading to obscure bugs in complex Python extension libraries. Don't even get me started on the Perl C implementation and interface.

    Ruby looks a lot better in this regard, and that alone might be a reason to use it, even if otherwise it is roughly equivalent to Python.

    Still, overall, it is disappointing to me that there is no Perl/Python/Ruby-like scripting language implemented in C++: using C++, the native code interface could be much simpler to use. Yes, there are various C++ wrappers for Python and probably the other languages, but they generally add a complex C++ layer around an already complex C interface.

  29. Language adaption by Pseudonym · · Score: 3, Interesting

    Though you won't find it in your job ads, having a lot of languages (and a lot of different kinds of languages at that) on your resume is a definite bonus. Especially if there's a variety of languages (procedural, OO, functional, logic etc), it shows that you can easily adapt to a new language should that become an issue.

    --
    sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
  30. Re:Slashdot isn't trying to pedal some language... by gatesh8r · · Score: 2, Insightful

    Yes, perl is a great language for many thing... even slashdot uses it. But in all seriousness, how many languages is enough? What I've noticed is that there are too many languages, and people only use a handful because of a few things: One, the popularity; Two, the ability a language has to market yourself in the job market (C/C++, Java, Perl, Python, SQL, and in some cases, assembler for embedded work are the most popular.); Three, for the above mentioned people are willing to put up with it caevets. These programming languages fill the vast void of what everyone ever wanted or needed -- they are general enough to be swiss army knives, they are targeted enough to have a desire to learn them, and they are expandable enough to allow for everyone to add libraries to it. The more popular the language, the more libs there are -- btw, smalltalk's a good language; see anyone program in that? Not many. Same goes for lisp, COBOL, Ada (which is total crap), etc. I'm afraid Ruby will be doomed on that path due to the fact that there really is no need to have it.

    --
    Karma whorin' since 1999
  31. Re:Nothing ?! by vscjoe · · Score: 2
    Easy to parse? Are you insane?

    Actually, I was talking about parsing, not readability. But well-written Lisp is very readable, just like well-written C or well-written Java.

    LISP, on the other hand, is easily parseable only for those with strange brain defects that make them love spending their days counting parens with bleary eyes.

    Lisp, like Python, relies on indentation for readability. People never count parentheses, they use editors that handle parentheses for them. Python programmers don't go blind counting spaces either, they use editors that handle indentation for them.

    The primary reason for LISPs lack of success in the real world, IMHO,

    Lisp is probably more widely used today than Python or Ruby. It may be unfamiliar, but it is really easy to learn. CommonLisp failed mostly for reasons unrelated to syntax.

    the ultimate success of least common denominator languages like Java lies in their parseability to somebody with only general knowledge of the specifics of the applications

    Come on: "&&", "?:", and lots of other operators? Lots of braces? Oddball precedence rules? Variable declaration syntax with type modifiers on the variables? Prefix conversion operators with postfix method selectors? Java syntax is pretty tricky and unintuitive; people only consider it simple if they know C.

    I also object to your characterization of Java as a "lowest common denominator" language. Java is a very powerful language, hidden under a deceptively familiar syntax.

  32. Mideshare by MarkusQ · · Score: 2
    The language biosystem is overpopulated, and mindshare starvation can be fatal to a new tool.

    I couldn't disagree more. Mindshare may be needed for products but too much mindshare can kill ideas faster than anything. Memes that "everybody knows" are essentially dead. The language biosphere only seems overpopulated if you're used to living in the BASIC* & C* wasteland we had a few years back.

    -- MarkusQ

  33. Re:Nothing ?! by Courageous · · Score: 2


    >Lisp is probably more widely used today than Python or ...

    I highly doubt this. A perusal of the traffic of the python verson lisp newsgroups tells tales as does the paucity of available libraries for lisp when compared to those of python. I would hazard a guess that Lisp is used quite a bit less than Python.

    C//

  34. Re:Ruby for Artificial Intelligence by the+gnat · · Score: 2

    Oh god, you again? Jesus, some people just don't know when to put the bong down. I'm sick of hearing about your artificial minds. If your artificial mind can write my history paper by monday at 9:30, then I'll start caring.

    Moderators, you know what to do. Check this weirdo's previous posts out.

  35. Re:Nothing ?! by Fnkmaster · · Score: 2
    Sorry, I misinterpreted "parse" to mean "grok" or "parse via wetware". Nevertheless, Python maintains readability by forcing indentation. LISP relies on the kindheartedness of the editor and user. My entire point is that while this is great and fine for a project you are working on yourself, coding standards on large projects with tight, tight deadlines are REALLY difficult to enforce. Of course, this is mostly because my experience involves working with illiterate, non-native english speakers who are also just really bad programmers. But I think that Python and Java both share a certain degree of idiot-proofing that makes them valuable in larger projects. I think LISP fails this test, mostly because LISP seems to force a certain slightly unnatural way of thinking on you. Please don't talk down to me like I don't know LISP - I learned CLISP in college my freshman year and have written substantially large applications in it (it would take me several months to get back up to speed with it since that was 6 or 7 years ago now), but I am not talking through my arse entirely here.


    Anyway, there's a great page out there by a guy who wrote a series of articles on the topic of "Worse is Better" and why LISP failed to maintain critical mindshare in the professional world and lost so much ground to C and C++, though functional languages seem to retain a serious support base in academe.


    I sincerely doubt that LISP is that widely used - certainly it has a miniscule hobbyist following left, compared to Python. Even Ruby, while new-ish in the US probably has more users in Japan alone. LISP still has a lot of users in the business world, in software development projects at companies working on the rare project that is well suited to LISPs strengths (whatever exactly they are - beats me).


    Java syntax is least common denominator because it basically steals C++ and removes everything that fucked up the morons working on larger projects (pointers, multiple inheritence, certain weird keywords, operator overloading). They left some stuff in it that may be weird to a LISP person, but to most people, thinking in one of the ALGOL-derived languages is still much more natural (procedural style) than thinking in functional style. Everyone seems to forget the real goal of a programming language is to translate between my wetware and bits and bytes and provide me with some insulation while still providing enough power and performance to build useable applications that can perform significant tasks.

  36. Re:Need to see it in job ads before it's "official by Wee · · Score: 2
    I don't think he was daying that young people don't value thir time; I think he was saying that, since he no longer has the energy of youth, he has less time to do all the things he might want to do, so he needs to be careful about how he spends his time in order to get to do all the stuff he wants.

    You said it perfectly. I used to spend all night -- for weeks on end -- on a VIC-20 doing mostly useless stuff in BASIC. I didn't have a job, family (of my own), eating, anything really to get in the way of my interest. Back then I could attack things with a passion that had no regard for time or other personal responsibilities.

    When I was in college, I could spend all night fooling with GIS stuff or pascal or whatever, just because I had to get that one project done. And more often than not, I'd "waste" plenty of time doing things not strictly necessary. I had more responsibility then than I did when I was in high school, but it was subconsciously counted as school, so I could metally get away with it.

    Now I'm at the point where I come home and I just want to spend time with my family, in the garage working with wood or something, making a good dinner, etc. If I'm on the computer at night, it's with a very carefully chosen project. I don't have as much time to burn now as I did then. I have to choose my "battles". There's still plenty of room for fun, and that's what I do on my off hours. The trick is to make the fun stuff also count as work stuff.

    Like another poster said, you have to have a well-rounded toolkit to get along. And I do. I've got a very well rounded set of skills, and I am always looking for more to learn. But consider the time budget imposed by age and responsibility with the ROI I'd get from learning another language roughly equivalent to a couple I already know. I can get by with perl and python and PHP in order to do what I do -- even for the fun stuff. It's when I see more and more job ads in the "computer" section ask for Ruby that I'll start to make that ROI worth it. In the meantime, there's plenty more stuff I have to know better than I do.

    I wasn't saying that youth can or do waste their time. They just have more of it. Which they should enjoy to the fullest doing whatever it is that piques their curiosity, even if it doesn't "offically" count as something important. Us old guys don't get that luxury anymore... :-)

    -B

    --

    Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

  37. Re:Shoga wa? by jonathan_ingram · · Score: 2

    I stand corrected.

  38. Re:better C++ interface? by vscjoe · · Score: 2
    I think, it's better than to lose the ability of binding to pure C (or assembly, or whatever) code.

    Well, that may be true if you have grand schemes for the scripting language. But I'd happily give up C compatibility and the C ABI standard for easier, more reliable bindings to native code. Existence of something with a really nice C++ interface and implementation wouldn't obsolete existing scripting languages.

  39. Re:Hitting the wall with syntax. by Kaz+Kylheku · · Score: 2
    Anonymous Coward writes:

    The usual argument for "OO syntax" is that the non-OO syntax for what is in reality an object (the file fi) "pollutes the name space" (creates lots of names of things at the global level).

    That is really just a lexical problem of symbol management. Global symbol clashes are avoided by the use of packages. Lexical scoping has little or nothing to do with object orientation. Using C to emulate object oriented programming suffers from that problem because C has no namespaces or packages; programmers resort to conventions like adding a common prefix to related identifiers.

  40. Re:Hitting the wall with syntax. by JamesOfTheDesert · · Score: 2
    The real power arises when the same expression, whether it uses lots of syntactic sugar or not, can mean absolutely anything that the programmer wants, not only what the language designer wants it to mean.

    Gee, does the compilier or interpreter have any say in this, or would that also be too restricting?

    Can you point to any language that meets your criteria?

    --

    Java is the blue pill
    Choose the red pill
  41. Why that quote is true. by Dog+and+Pony · · Score: 2, Insightful

    One thing I've found, is that even if I don't stick with a language I try, I program the others slightly different, and hopefully better after tried it and gotten my thinking shaken around a little... :)

    I think it is good for you.

  42. Wrong sort of Ruby by kimihia · · Score: 2

    When I first saw the title I immediately thought it was another thing by the same name: Ruby Annotation. (31 May 2001, Marcin Sawicki, Michel Suignard, Masayasu Ishikawa, Martin Dürst, Tex Texin)

    The sort of Ruby I had in mind was a type of markup used to add pronunciation alongside text.

  43. I agree... by Da+VinMan · · Score: 2

    This is not something Python got wrong. It's superior for the simple fact that any programmer worth their salary will indent anyway and leveraging that makes more sense. Why force a programmer to type in a brain dead curly brace or 'Next' on a 'for' loop (C and VB respectively), when your indenting has already specified what you intend?

    Truly, you do not miss typing the explicit block delimiters after trying it. As far as anyone who argues that indenting code is bad goes... well get with it. Really.

    --
    Please mod this post only if you think others should/n't read this. I have enough ego^H^H^Hkarma. Thanks!