ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Technologies to Watch: A Look at Four That May Challenge Java’s Development Dominance
Subject:   Not maintainable or english
Date:   2005-10-20 16:50:38
From:   ikayak
Response to: Not maintainable or english

10.times reads very much like English. As does print hello if not i == 10. As does has_many :cars. Ruby lets me introduce verbs.


To your example, how about: use the red and yellow bowls for ketchup and mustard. The intent is very clear, without the need for temporary variables.


If the assignments are not related, don't use them together. It's a very useful high level abstraction. And yes, it's one that we use in English. I can't believe you're actually arguing for


for (i=0, i<10, i++).


The only reason that makes any sense at all is that you've done it for 30 years in C, C++ and now Java. In Ruby,


for i in 1..10


1..10 is a first class range.


Ruby may not be to your liking, but it's a pretty clean language, and it's much closer to English than Java.



1 to 3 of 3
  1. A question
    2005-10-29 08:52:49  ttfkam [View]

    • Sorry, I should have been more specific
      2005-10-29 08:55:51  ttfkam [View]

      • Sorry, I should have been more specific
        2006-01-01 14:21:56  ck1125 [View]

        • Sorry, I should have been more specific
          2006-01-23 04:49:11  jzabiello [View]

  2. Not maintainable or english
    2005-10-23 20:20:32  jimothy [View]

  3. Not maintainable or english
    2005-10-21 09:11:50  greg_barton [View]

    • Not maintainable or english
      2005-11-01 17:30:19  kenliu [View]

    • Not maintainable or english
      2005-10-24 06:56:44  ikayak [View]

      • Not maintainable or english
        2005-11-03 12:50:13  evoke [View]

1 to 3 of 3