Slashdot Mirror


Lisp and Ruby

sdelmont writes "The developers of Rubinius, an experimental Ruby interpreter inspired by SmallTalk, have been discussing the possibility of adding a Lisp dialect to their VM. Pat Eyler collected some ideas and opinions from the people involved and it makes for some interesting reading. For many, Ruby already is an acceptable Lisp, and the language itself started as a 'perlification' of Lisp (even Matz says so) so it is perhaps fitting and might help explain why the whole idea feels right. Now, if someone added support for VB and gave it the respect it deserves, the world would be a better place."

48 of 336 comments (clear)

  1. Performance, anyone? by Lucas.Langa · · Score: 2, Insightful

    Yeah, it's cool to virtualize, introduce dialects, interpret, etc. etc. Now, for the first time ever, we have cheap mainstream computer hardware that's capable of handling all these ideas in an acceptable way. But, isn't it a huge waste of resources? What about performance?

    I mean, take Lisp and its performance. Compare it to Ruby's. Matz said himself that Ruby started as a kind of Lisp reconsideration. And you call this progress?

    The thing is that you can implement a dynamic language that isn't painfully slow. Take Lua for instance. Eh, if only it had Unicode support.

    --
    Build a tool even an idiot can use and only an idiot will want to use it. -S.O.B.
    1. Re:Performance, anyone? by fatphil · · Score: 2, Funny

      This reminds me of Greenspun's Tenth Rule:

      Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp.

      As long as it can send mail, that's the only feature that matters (and whose rule is that?).

      --
      Also FatPhil on SoylentNews, id 863
    2. Re:Performance, anyone? by marcosdumay · · Score: 2, Funny

      The question is: Is half lisp better or worse than a full one?

    3. Re:Performance, anyone? by Lucas.Langa · · Score: 4, Interesting

      As funny as your comment is, it made me wonder... There is a very loud pro-Lisp community that tells everyone who is not using Lisp that they should since it solves most of the problems they have in the first place. OK, fair enough. But I have that strange feeling that assuming the developers to be usually very smart and very lazy, we would see them all convert to Lisp if it really was the ultimate answer [1].

      And what makes me think that Lisp was and still is widely ignored? There are a couple of points here but the most important is: we don't really see a large, consistent standard library for Lisp. So we could easily turn the Greenspun's 10th Rule backwards to say: any sufficiently complicated Common Lisp program contains an ad hoc, informally specified, bug ridden, slow implementation of half of Java's standard library.

      So, where's the catch? Why isn't Lisp popular if it's so 1337?


      [1] But we know it's 42.

      --
      Build a tool even an idiot can use and only an idiot will want to use it. -S.O.B.
    4. Re:Performance, anyone? by Wolfbone · · Score: 4, Informative

      "I mean, take Lisp and its performance. Compare it to Ruby's."

      Which Lisp? One which (as most implementations of Common Lisp do these days) appropriately and reasonably gets compared to the output of a C compiler?:

      http://www.lrde.epita.fr/cgi-bin/twiki/view/Public ations/200606-IMECS

      I wouldn't have thought that would be a very fair comparison to make for Ruby.

    5. Re:Performance, anyone? by ravenlock · · Score: 5, Insightful
      If I build a new and presumably better (in my own opinion) programming language starting off with Lisp, and my implementation turns out to be less powerful and slower than an average CL implementation, is that progress?

      It is if it helps introduce the concepts behind Lisp to a lot of people who never would have dared to venture into Lisp otherwise. Ruby was the first language with functional constructs I tried (very much due to the excitement around Rails). Now I'm reading up on Lambda Calculus and learning Haskell, and I'm not at all sure it would have happened, were it not for Ruby.

    6. Re:Performance, anyone? by TheRaven64 · · Score: 2, Interesting

      I mean, take Lisp and its performance. Compare it to Ruby's. Matz said himself that Ruby started as a kind of Lisp reconsideration. And you call this progress? Right. Common Lisp is very fast; on an architecture that's not register-starved the Steel Bank compiler can produce code that is faster than C++ running the same algorithms, and Lisp is a lot more flexible. While I like the Lisp semantics, I find the syntax a little, uh, minimalist, and I prefer Smalltalk[1], which has a similar amount of flexibility. Smalltalk running in the Squeak VM is fast enough to run video CODECs written in Smalltalk on a relatively modern laptop, and is faster than Ruby.

      I still don't seem what advantage Ruby has over Lisp or Smalltalk; it is no more expressive, and current implementations generate slower code.


      [1] A List programmer will tell you Smalltalk is a great language, because you can implement a Lisp interpreter in a few lines of Smalltalk. A Smalltalk programmer will tell you Lisp is a great language, because you can implement a Smalltalk interpreter in a few lines of Lisp...

      --
      I am TheRaven on Soylent News
    7. Re:Performance, anyone? by bhima · · Score: 2, Interesting

      I'll hazard a few guesses:

      1: It is popular among people who are solving problems LISP is well suited for.
      2: There are other languages that are more suited for what most developers do.
      3: There are other languages that are more successfully marketed.

      I've earned more money in less time using COBOL than any other language but you don't hear me telling kids to pick it up.
      Nor do you see me selling COBOL for new projects.

      I don't think all of this "what language is 'leet" talk is productive or illuminating. You have a problem, so you use the best tool you can find and learn how to use to solve that problem. If anything I find LISP excels at allowing me to solve certain problems in very interesting ways. Ways that perhaps using the currently popular language wouldn't have allowed.

      --
      Nothing in the world is more dangerous than sincere ignorance and conscientious stupidity.
    8. Re:Performance, anyone? by tacocat · · Score: 2, Interesting

      True Dat. Between Perl, Python and Ruby. Ruby is the slowest by far. And be careful how you write your code. Sometimes attaching method.method.method is about the worse way you can go, even though they claim it is the Ruby Way. Bah! I'll take perl. At least it has docs.

    9. Re:Performance, anyone? by pivo · · Score: 3, Informative

      I suggest you forget about Lambda calculus and learn Lisp just like you'd learn any other programming language. Peter Seibel has made his excellent, non-migraine-inducing book "Practical Common Lisp" available for free on like at http://www.gigamonkeys.com/book/ He leads you through building a streaming MP3 server in Lisp, which is quite fun.

    10. Re:Performance, anyone? by Anonymous+Brave+Guy · · Score: 2, Funny

      (format-for-slashdot(report-answer(probably

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    11. Re:Performance, anyone? by TheRaven64 · · Score: 2, Interesting

      Objective-C has categories, which allow adding methods to a class at runtime. It is a pure superset of C, so it can be mixed with C (and, now C++) in the same source file. Oh, and the whole 'on rails' concept is a copy of a web framework that began life with Objective-C; there's even a Free re-implementation of it, take a look at GNUstepWeb for more information.

      --
      I am TheRaven on Soylent News
  2. Re:VB already gets the respect it deserves... by Timesprout · · Score: 4, Insightful

    Yeah, how dare MS make it easy for developers and even non developers to quickly create applications to fulfil their requirements.

    --
    Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
    What truth?
    There is no dupe
  3. Genuine question about perl vs ruby by thanasakis · · Score: 3, Interesting

    I am not trying to start a holy war thread about perl vs ruby, just looking for someone that can enlighten me regarding the following question.

    Having perl as it is, what are the reasons to take a look at ruby. Mind you, I am not saying that these reasons do not exist, I guess I was just lazy to find it out by myself and then again, nobody has yet offered any compelling reason. I have taken a good look at ruby, clean syntax and all, but really I couldn't find something really compelling.

    An interesting phenomenon is that most stuff that people perceive as a reason to go to ruby from perl, are available in perl too, but somehow they offer those stuff an novel.

    Please don't take me the wrong way, I can testify that ruby is indeed a kick ass piece of work, I am trying to find real reasons to use it along side with perl.

    So, fire away your opinions!

    1. Re:Genuine question about perl vs ruby by JanneM · · Score: 4, Insightful

      To me, as an old Perl programmer, Ruby basically feels like what Perl 6 should have become: keeping with the idea of making things discoverable for the programmer and not having to work around syntax, but greatly cleaned up and with objects as an integrated part of the language, not so tacked-on as in Perl 5.

      Ruby still has some pretty significant drawbacks, of course; it's slow, and has little support for Unicode (not that surprising, seeing it's from Japan). The libraries aren't as mature yet either; Perl has many year's headstart there so again no surprise. All of these are improving, though.

      --
      Trust the Computer. The Computer is your friend.
    2. Re:Genuine question about perl vs ruby by morgan_greywolf · · Score: 3, Informative
      Having perl as it is, what are the reasons to take a look at ruby. Mind you, I am not saying that these reasons do not exist, I guess I was just lazy to find it out by myself and then again, nobody has yet offered any compelling reason. I have taken a good look at ruby, clean syntax and all, but really I couldn't find something really compelling.


      Having Perl as it is, what are the reasons to take a look at Python? Having Python as it is, what are the reasons to take a look Ruby? Having Ruby as it is, what the reasons to take a look at Perl? Having Python as it is, what are the reasons to take a look at Perl?

      Because they're different languages with different strengths and weaknesses. Just as Lisp and Ruby are different, and Python and Perl are different, so is Perl and Ruby.

      A good staring point for you would be to read this article differentiating Perl and Ruby. Working back from that description, if you have experience in programming in languages other than Perl, you should be able to figure out what the advantages are of Ruby over Perl and vice-versa.
    3. Re:Genuine question about perl vs ruby by Jonathan · · Score: 5, Informative

      1) Object Orientation is consistent throughout the language. Perl provides ways to make objects, but none of the built in functions or datatypes are objects, making your code a schizophrenic mess of objects and non-objects.

      2) Consistency -- In Perl it is needlessly difficult to do ever simple tasks like making arrays of arrays or arrays of hashes -- you have use a weird syntax to get at references. I never could remember it and always had to look it up whenever I needed an array of arrays in Perl. In Ruby, everything is a reference to an object so you don't have to worry about it -- a[0] = [1, 2] does exactly what you want -- puts an array [1, 2] in the first element of array a.

      I used to be a big Perl fanboy -- I did most of my programming in Perl from 1992-1999. But when I discovered Ruby I went for it and never looked back. What's cool about it is that its syntax is so clean that it is basically a version of the pseudocode I have in my head. In the Ruby community there's a phrase for it -- "the principle of least surprise" -- things just work.

      Obviously, if you really like Perl, nothing is going to make you change. But if you are just keeping with Perl because of inertia, then you ought to look around at other scripting languages. Ruby is my favorite, but most modern scripting languages are cleaner than Perl.

    4. Re:Genuine question about perl vs ruby by tacocat · · Score: 2, Insightful

      Actually there is a good reason to look at Perl given Ruby. Regular Expressions. Ruby has a object and method for doing regular expressions but compared to Perl it's very combersome and is even lacking some of the properties that Perl's regex has. Since I tend to use a lot of my programming time dealing with text of some kind, regular expression are important to me.

      Ruby is a nice language. It's easy to work with. But it's got some maturing to do and I do hope they spend at least a version working on speed and documentation.

    5. Re:Genuine question about perl vs ruby by CoughDropAddict · · Score: 3, Interesting
      Actually there is a good reason to look at Perl given Ruby. Regular Expressions. Ruby has a object and method for doing regular expressions but compared to Perl it's very combersome and is even lacking some of the properties that Perl's regex has.

      Cumbersome? Which is this, Perl or Ruby?

      "Hello, World!" =~ /Hello, (\w+)!/;
      print $1;
      Trick question -- it's both. What exactly about Ruby's way is cumbersome?
    6. Re:Genuine question about perl vs ruby by wootest · · Score: 2, Interesting

      I agree with part of your comment. Ruby is my Perl 6 until Perl 6 comes along. I'm okay with Perl's eclectic syntax and I know some other people aren't, but for now Ruby is one of the best Perl 5 alternatives.

      The thing with Ruby this far is that it's still in its first major version by version number. There's not one bit of the Ruby design that I'd like to change dramatically, but there's a bunch of problems that arise from its current implementation. The one-pass compiling (which while surely easier to implement probably has performance and optimization implications down the road), non-concurrent thread policy and strings that default to the mythical "unspecified" encoding are some; things that all look to be set for correction in the upcoming Ruby 2.

      Then there's the lack of thorough documentation, and the air emitted by rubygems as something tacked on instead of mostly integrated (like CPAN). I am hopeful that these things will resolve themselves in due time, but as you say, Ruby is already a language to be reckoned with.

    7. Re:Genuine question about perl vs ruby by Anonymous Coward · · Score: 3, Informative

      the reason is not-invented-here syndrome or a strawman argument against Unicode's ideograph system.

      Asians complain about having to share codepoints for characters (see Han Unification). A lot of people think the whining is mostly racist in nature; however, there are a few legitimate complaints in there, for instance many characters that Han Unification forced to share codepoints actually have different glyphs depending on which language it's written in, even if they all shared a similar source. Unicode's official stance is that the application should identify the language being used and select the correct glyph for that particular character from a font designed for that language (which basically makes it impossible to create a single definitive Unicode font). Explanation of both the glyph problem and the not-invented-here issues here. More on glyphs.

      As for the "major encodings" currently in use, Shift-JIS was basically forced onto them by Microsoft who took their existing JIS encoding (based on ISO-2022) and broke it. There's about 1000 websites of people telling the world just what they thought of that, yet not-invented-here or not, the Shift-JIS system sucks. Consider the fact that it uses two separate non-contiguous sets of codepoints (compare graphs of the non-unicode encodings here.

      It's easy to say "not-invented-here", it's harder to admit that the foreigners had no clue what they were doing and broke it :P

      it could just be a vocal minority

      Of course it's a vocal minority, the majority just want their computers to work.

  4. wow, I have no idea what that just meant! by tommyhj · · Score: 5, Funny

    This is just one of those stories that us non-linux, non-programmers have absolutely no idea of what means! Which insidentally makes it rather funny to read :-) I mean, adding Lisp to Ruby's SmallTalk?

    1. Re:wow, I have no idea what that just meant! by kruhft · · Score: 4, Informative

      Lisp is the oldest, still in use, high level programming that exists today. It's the core of emacs, and was standardized into Common Lisp in the early 90's. It basically has no syntax other than words and nested parenthesis (() :-), has an extrememly powerful macro system, and a loyal following of elders that hang out in comp.lang.lisp on usenet. As well, the great Emacs is basically a lisp interpreter (or Operating System) that happens to have a text editor above it.

      Smalltalk is another high level language where everything is an object. It has syntax, supports many interesting high level concepts like persistance, and has some nice development environments and pseudo OS projects, one of which is called Squeak.

      Ruby is a newer high level language from Japan, that was designed to combine the high level concepts of Lisp, but added some syntax to reduce code verbosity and increase expressiveness. The Lispnicks say this is unnecessary complexity that reduces the power of the language; people that were raised on languages with syntax find the expressiveness more familiar, easy to use and powerful.

      I'm still undecided.

  5. Re:VB already gets the respect it deserves... by S.O.B. · · Score: 4, Insightful
    From a technical perspective it might suck but it works a lot of people (especially non-programmers) to get real work done.


    And when that program gets too big for them to maintain (or they just don't feel like it anymore) they dump it on their IT area and we're stuck maintaining or converting an app in a technology we wouldn't have chosen that looks like it was designed by a pack of drunken monkeys.

    Build a tool even an idiot can use and only an idiot will want to use it.
    --
    Some of what I say is fact, some is conjecture, the rest I'm just blowing out my ass...you guess.
  6. Re:VB already gets the respect it deserves... by marcosdumay · · Score: 2, Insightful

    That is notthe problem. How dare Microsoft makes it so HARD to write good, clear and maintanable code on their language?

  7. why not go all the way? by oohshiny · · Score: 2, Informative

    If you're gonna have a "Ruby inspired by Smalltalk", why not be done with it and give it Smalltalk syntax as well? Smalltalk syntax is great: very readable, very simple. And with Objective C, it has enjoyed some resurgence.

  8. Because you'll end up at Lisp. by Anonymous Coward · · Score: 5, Insightful

    What most people don't realize is that Lisp is the inherent representation of virtually all programming languages. This is even true for languages like C, Java, Smalltalk, and Ruby. We can plainly see this by the very fact that basically every compiler or interpreter for those languages parses the language into an abstract syntax tree. And that's exactly what Lisp is: a textual representation of an AST. It is so powerful because it directly allows the programmer to access and modify what amounts to the AST of his or her program. This is something that a language like C isolates to the compiler, or at best the preprocessor.

    What fewer people realize is that Smalltalk is Lisp with a slightly different syntax. The concepts are basically identical, however. So suppose the Ruby developers do all the hard work needed to switch their language over to a Smalltalk-like syntax. Do you know what will happen next? They'll ask themselves what could be improved next. And the first thing that'll happen is a consideration of making the syntax and semantics of the language more Lisp-like. And that's just because Lisp represents the most inherent aspects of what a programming language is.

    1. Re:Because you'll end up at Lisp. by TheRaven64 · · Score: 2, Interesting

      It is so powerful because it directly allows the programmer to access and modify what amounts to the AST of his or her program. If you want a really good demonstration of this, take a look at Erlang. Erlang has a feature as powerful as Lisp macros called Parse Transforms. The compiler spits out the parse tree as a set of nested tuples and passes this to a user-suppled function. This then returns a transformed version of the parse tree. This has exactly the same power and expressiveness as Lisp Macros. The difference is that every Lisp programmer uses macros, because they are as easy to use as function, while almost no Erlang programmers use Parse Transforms.
      --
      I am TheRaven on Soylent News
    2. Re:Because you'll end up at Lisp. by calambrac · · Score: 3, Insightful

      I would have to disagree with your statement that Lisp doesn't let you group things. Not only does it let you group things, it lets you write entire languages built specifically for the things you want to group. Macros in Lisp are effectively little compilers that are very easy to write, that let you make whatever language is most useful for working with the concepts you want to "collect, isolate, and distinguish". Combine this with CLOS and generic and functional programming techniques, and you have one of the best languages around for dealing with concepts at a very high level.

      Lisp has its weaknesses, but expressiveness and abstraction are not among them.

  9. Re:VB already gets the respect it deserves... by Iamthefallen · · Score: 4, Insightful

    That says far more about your circle of friends/co-workers than it does about the language.

    --
    Wax-Museum Fire Results In Hundreds Of New Danny DeVito Statues
  10. Re:VB already gets the respect it deserves... by Flodis · · Score: 3, Insightful
    Build a tool even an idiot can use and only an idiot will want to use it.
    I'd like to change that to "Build a tool even an idiot can use and expect idiots will try to use it."

    I've been on the receiving end of many a poorly designed VB app, but is that the language's fault?

    Assume we collect a random number of 3rd graders' essays. We can safely assume they will be pretty badly written. Do you automatically blame 'english' for the essays being bad? Maybe you also tout another language as superior just because the only ones you know speaking that other language are all 20+, and have picked up a bit or two about telling a story.

    Btw, english is not my first language, and I think the VB slamming that is so fashionable around slashdot is just stupid. Not that I think there's any doubt about either after this.
  11. Re:VB already gets the respect it deserves... by hclyff · · Score: 4, Insightful

    This is exactly the kind of reply I would expect from a VB developer or "non developer". By "quickly create applications to fulfil their requirements" you probably mean "create a horrible unmaintenable mess which not even the original author will touch, and which has is almost certainly going to be rewritten by a developer at some point in future". Enabling non developers make production code is *NOT* a good thing, I think most people with some experience in the industry will agree with this.

  12. Re:VB already gets the respect it deserves... by Snarfangel · · Score: 2, Interesting

    ...absolutely none. It's a horrible language. The only thing it has going for it is the reasonably useful IDE (although even that irritates me most of the time).

    I guess you don't want to try SNOOZ, which is my COBOL-ification of VB.

    --
    This tagline is copyrighted material. Please send $10 for an affordable replacement.
  13. Re:VB already gets the respect it deserves... by Colin+Smith · · Score: 2, Interesting

    and we're stuck maintaining or converting an app in a technology we wouldn't have chosen that looks like it was designed by a pack of drunken monkeys. And yet it performs a useful function for the business... If you don't like it, you could always move to a different job or business.

    Or.

    Perhaps you might want to extend your remit to advocating the technologies you would choose, to the business management. Perhaps you might even want to create a development environment for personnel to produce adhoc applications in the technologies you prefer. Or shock, horror, you could even provide that service within the IT department and actively go looking for opportunities to improve productivity.

    --
    Deleted
  14. Re:VB already gets the respect it deserves... by TheRaven64 · · Score: 3, Insightful
    Before VB, NeXT released a Rapid Application Development environment. It used Objective-C, which can be used as a language almost as high-level as VB in some ways, and higher-level in others. It also allows programmers who know what they are doing to do all the sorts of evil things that give C such a bad reputation. The language, however, is largely irrelevant. The frameworks are the important thing (these days you can use Smalltalk, Java, Ruby, Python or IO with descendants of the frameworks).

    When you write code using the OpenStep frameworks, designed by NeXT and tidied up by NeXT and Sun, the path of least resistance is a clear model-view-controller separation. Someone asked me last week 'do you always follow strict MVC separation in your code?' I hadn't really thought about it, but I tend to because the framework just makes that the obvious way of working. In contrast, VB encourages you to keep model information in the view objects.

    This is just one example. A good framework means that you implement good design patterns without thinking. If you do this, then your application will be more flexible and maintainable when you come to make changes to it in the future (or, more importantly, when someone else does). Developing with OpenStep is slightly harder than developing with VB. Maintaining an OpenStep application is far easier than maintaining a VB application.

    --
    I am TheRaven on Soylent News
  15. Re:VB already gets the respect it deserves... by Anonymous Coward · · Score: 2, Insightful

    Superiority complex much?

    I guess I could be considered a real programmer as I have been programming various systems for about 25 years. I program in practically every language there is depending on the project. Yes, I write VB code. I have written huge VB applications in fact. While most of my code is other languages and dispite its shortcomings, VB suits its role very well.

    Ignorance is bliss?

  16. MOD PARENT UP by TheRaven64 · · Score: 3, Insightful
    I have noticed a lot of interest in more interesting languages, like Lisp, Smalltalk, Haskell and Erlang recently from people who a few years ago would have been C, maybe Python programmers. I think a lot of this is due to the fact that people have been introduced (finally) to a relatively mainstream language that goes beyond the slightly-higher-level-than-assembly pure-imperative (with maybe a hint of OO) style that has been common for the last few generations of 'new' languages.

    I don't think I'd use Ruby for anything (except maybe as a teaching language), but I can't deny that it has done a superb job of introducing a new generation of programmers to the benefits of a true high-level language.

    --
    I am TheRaven on Soylent News
  17. Re:I use Common Lisp because of its 'white hot' sp by Not_Wiggins · · Score: 5, Insightful
    The problem is that Ruby has very poor runtime performance.

    Not so much in response to the post, but to add to it...
    I'm not that old, but I remember the same being said for:
    • C++ compared to C
    • Interpreted compared to Compiled
    • Java compared to C++
    • Servlets compared to CGI
    The list could continue. Just wanted to highlight that "performance" is a short-lived reason to avoid a language. 8)
    --
    Diplomacy is the art of saying, "Nice doggie!" until you can find a rock.
  18. Re:I use Common Lisp because of its 'white hot' sp by The_Wilschon · · Score: 2, Interesting

    Interpreted is still slower than Compiled. Always will be. However, the reason that that problem has *somewhat* gone away is that machines are fast enough now that for *most* situations (UIs being one example), that is not a problem. However, for some problem domains (eg scientific programming), speed will never cease to be an issue. The faster the machines we have, the more we will throw at them. Lattice calculations work better with a smaller lattice spacing, and a faster machine allows a smaller spacing.

    However, most of the interpreted languages which have appeared to resolve their speed issues have done so by some form of on the fly compilation. So yes, ruby could move up to even with the lisps in that way.

    --
    SIGSEGV caught, terminating

    wait... not that kind of sig.
  19. rails is not ruby by Generic+Player · · Score: 2, Informative

    "Download a copy of InstantRails and take 60 minutes to create your own full blown webapplication."

    No, make a dinky little toy web app. Even DHH himself doesn't use such blatent exagerations to push rails. Yes its faster than coding everything from scratch, no it is not magic and you can't write anything non-trivial with it in 60 minutes. Do you seriously think anyone anywhere would be using anything but rails if it actually offered a 100x development speed improvement?

    "If you think you can do faster and better in Perl, I bow to you mighty Perl God."

    Catalyst is for perl what rails is for ruby. There's no need to switch to ruby just to get a web framework.

    He asked why to switch to ruby from perl, and you basically ignored ruby altogether and talked about rails. He never even mentioned if he even does web development, how would rails help him if he doesn't do DB driven web development? Ruby itself doesn't offer much over perl, basically just cleaner OO support. If you are already used to perl then I don't think it makes any sense to switch. If you do DB driven web dev and would benefit from rails, then it still makes more sense to stick with perl and just use catalyst (or maypole for trivial 60 minute type stuff) than to switch to ruby just for rails.

  20. Re:VB already gets the respect it deserves... by MrAnnoyanceToYou · · Score: 2, Interesting

    Hrm. Well, I seem to remember an article at Joel Spolsky's Site about why he thought VB was a decent tool in ways. Remember, it has no memory management; I've done memory management, and I never want to do it again unless rains of fish will occur. It's not that it's hard, it's just that it's silly for me to do. How can you possibly feel differently?

    Additionally, if VBA didn't exist you'd have to write C++ to do simple macro'ing in Office products. It's profitable, but it bites the big one as far as interesting programming jobs are concerned. Trust me on that one.

  21. Try Perl with Win32::OLE by plopez · · Score: 2, Informative

    I beg to differ. I have done VB and found for many purposes Perl is faster, cleaner and easier than VB. Python too is better than VB, and also supports win32 api. As does Ruby (I am currently switching over though I still use Perl as I am very fluent in it). Add in an IDE such as Eclipse or Komodo, and you can do perfectly fine desktop or web apps rapidly.

    is still alive though not supported my Microsoft (VB6).

    I think you meant 'by' not 'my', a typo (it happens to all of us).

    But there's the rub. You never know when MS is going to pull the rug out from under you. Right now its .Net, 3 years from now it could be 'Microsoft McFoo'. OSS languages seem to be more consistent and incremental in thier changes. Major changes changes tend to occur only after much debate and input from the entire community, not just an arbitrary decision by a few marketing types.

    VB6 was horribly crippled. No good object support, reflection, etc. Nothing that made it better than COBOL. .Net was actually the best thing that happened to VB.

    --
    putting the 'B' in LGBTQ+
  22. karma by namekuseijin · · Score: 2, Insightful

    "VB is programming for people who don't really want to program."

    Well, they better do want to program, because that's what they'll be doing most by going for the "ease" of VB: writing patches and more patches to correct bugs, doing excessive maintanence due to lots of improper, parameterless copy-pasting code and lots of rewrites from scratch once the whole thing eventually collapses under its own weight...

    that, or hire real programmers with real tools from the get-go...

    --
    I don't feel like it...
  23. Re:VB already gets the respect it deserves... by ClosedSource · · Score: 2, Interesting

    "This is exactly the kind of reply I would expect from a VB developer or "non developer". By "quickly create applications to fulfil their requirements" you probably mean "create a horrible unmaintenable mess which not even the original author will touch, and which has is almost certainly going to be rewritten by a developer at some point in future".

    There are a number of interesting, unproven, and contradictory assumptions built-in to your statement:
    1) All VB code is a mess
    2) VB applications are successful enough to justify being maintained
    3) Despite the success of the application implemented in VB, it makes sense to rewrite it in another language
    4) The orginal developer isn't willing revise it, but somehow some other developer is willing to rewrite it.

    "Enabling non developers make production code is *NOT* a good thing, I think most people with some experience in the industry will agree with this."

    If by "non developers" you mean VB programmers, and given that a fairly large percentage of people in the industry with some experience are VB programmers than your statement is incorrect.

  24. Re:VB already gets the respect it deserves... by killjoe · · Score: 2, Insightful

    The problem is that MS concentrates on the part of the software lifecycle that is the easiest and shortest. They make is easy to CREATE applications. Alas the rest of the software lifecycle (debugging, refactoring, maintenance, deployment etc) suffers horribly due to VB encouraging spaghetti code.

    In the long run VB is a hinderance and not a help. It's better to have a clean separation then a flashy IDE if you intent to keep your application alive for more then a few days.

    --
    evil is as evil does
  25. Re:VB already gets the respect it deserves... by HiThere · · Score: 3, Interesting

    You never heard of Python, Ruby, or Smalltalk? That explains your problem.

    For years even though I swore at VB I didn't really hate it. Then I caught it in an arithmetic mistake. I, a human, caught a computer at an arithmetic mistake. Understand, I'm not talking about the program, I traced the error down to one specific statement in a program, placed print statements before and after it. VB made an arithmetic mistake. Then I started to wonder about all the larger numbers that I hadn't checked over the years.

    That was the last program that I ever wrote that used VB for arithmetic. The next one I used an external Eiffel program to do the arithmetic. The one after that I had it all happen in an Excel spreadsheet. Since them I've moved to Python and Ruby...and totally off of MS systems.

    I don't believe that anyone who is a decent programmer likes VB, though many use it due to coercions of various forms. (You mention interesting jobs.) Most people probably haven't noticed that it sometimes lies. (And maybe they've stopped doing that. This happened in MSAccess2000, around 2000.)

    No dialect of BASIC has ever been a decent programming language, throughout it's history. (Well, there are lots of versions that I haven't tried, so that's excessive. Some people said that Pick Basic was quite good.) It strongly encourages bad programming habits and discourages several good ones. There are dialects of BASIC in which it is actually impossible to write a decent program. Or a stable one (different group). This isn't to assert that it can't be very convenient. Especially in environments that are designed to encourage it's use.

    --

    I think we've pushed this "anyone can grow up to be president" thing too far.
  26. Re:VB already gets the respect it deserves... by hclyff · · Score: 2, Insightful
    I will say again and again that VB simply doesn't encourage good practice. Abominations like "On Error Resume Next" should have never seen day light. There are languages and frameworks better and worse in that, and VB is in my opinion one of the latter. That doesn't mean I think it's a really bad language, there aren't any, there are only bad 'tools for the job'. And in some people's hands any tool is bad for the job, shame for VB that it's pretty commonly tool of choice for them.

    here are a number of interesting, unproven, and contradictory assumptions built-in to your statement: 1) All VB code is a mess 2) VB applications are successful enough to justify being maintained 3) Despite the success of the application implemented in VB, it makes sense to rewrite it in another language 4) The orginal developer isn't willing revise it, but somehow some other developer is willing to rewrite it.
    Not quite. You should read my reply in the context of what I was replying to.
    1. I never said all code in VB is mess, I was refering to "quickly create applications to fulfil their requirements" which screams "hack it quickly, nevermind that nobody will be able to understand it or alter it later".
    2. That they often are. If something is somewhat functional but with an horrid codebase, is it successful? In bussiness setting, it is.
    3. Not rewritten because of being unsuccessful, rewritten because of being unmaintanable. What good is working application if nobody is going to touch it with 3 feet pole to add even the simplest feature?
    4. How is that contradictory with anything I said?
    If by "non developers" you mean VB programmers, and given that a fairly large percentage of people in the industry with some experience are VB programmers than your statement is incorrect.
    How much percent of actual professional VB developers is out there? (that is what I meant by "in the industry")
  27. Re:VB already gets the respect it deserves... by S.O.B. · · Score: 3, Insightful
    And yet it performs a useful function for the business... If you don't like it, you could always move to a different job or business.


    Nice bit of flamebait. Moving right along...

    Or.

    Perhaps you might want to extend your remit to advocating the technologies you would choose, to the business management. Perhaps you might even want to create a development environment for personnel to produce adhoc applications in the technologies you prefer. Or shock, horror, you could even provide that service within the IT department and actively go looking for opportunities to improve productivity.


    My company does all of that. We have a list of technologies that are approved, in containment and being retired. The department I work for is the likely place for these types of requests to be handled and we have a triage process that takes any request that comes in to well publicized email address and discusses it with the client to determine their needs and estimate the effort. If the client wants to go ahead it is prioritized and put in the schedule. Most times when they realize how much thought and effort it really takes to do it right they let us do it for them.

    Even with all that there's always a guy (surprisingly never a woman) who read VB for dummies over the weekend and now thinks he knows as much as the entire IT department of a multi-billion dollar company. Unfortunately, what he doesn't realize is that writing a program is only a small piece of the problem. Once it's there you have to support and maintain it and that takes time. Then people begin asking for enhancements that he starts bolting on anywhere he can but it's getting harder and harder because he has no concept of design. Now his boss is telling him that he's spending too much time on it and it's not what he's getting paid for anyway. Then it gets dumped on IT and now we have to maintain it.

    And anyone who says why don't you tell them that they'll have to keep maintaining it themselves or pay to have us migrate it to an approved technology has never worked in a large shop where politics often wins out over reality.

    Besides, IT areas do a lot more than write programs. Coding is maybe 15-25% of the actual effort. There is analysis, design, integration (with other internal/external apps), regression testing and deployment to name a few. That's not to mention on-call support, enhancements and regulatory compliance not the least of which is SOX.

    I don't have a problem with trained VB developers it's just that the simplicity of the tool and Microsoft's marketing give untrained people a false sense of ability.
    --
    Some of what I say is fact, some is conjecture, the rest I'm just blowing out my ass...you guess.