adewale said:

adewale

Things never to do: write sample code in an experimental and fast-changing programming language

5 months, 1 week ago.

10 comments so far

  • BUGabundo

    @adewale: 'cause it will fail when you most need to present it?

    5 months, 1 week ago by BUGabundo

  • adewale

    True. Original version was:

    list := List clone

    while (list count() < 6, n := Number random(1, 50) floor if( (list contains( n ) ) == Nil, //true if list doesn't contain n list add( n ) ) )

    list sort print

    New version that works today is:

    l := List clone

    while (l size < 6, n := Random value(1 50) floor round l appendIfAbsent( n ) )

    l sort print

    5 months, 1 week ago by adewale

  • adewale

    This sounds like a job for Gist: http://gist.github.com/129286

    5 months, 1 week ago by adewale

  • BUGabundo

    @adewale: what language is that?

    5 months, 1 week ago by BUGabundo

  • BUGabundo

    @adewale: btw that looks really bad on IMKU. are u of the opinion that the formatation like \n should be sent to XMPP ? even if it is as an option

    5 months, 1 week ago by BUGabundo

  • adewale

    That's written in Io: http://www.iolanguage.com/

    It's beautiful and elegant prototype-based language that suffers from an unwillingness to do releases (you grab the latest code from Github and hope for the best) and an willingness to change fundamental features. But it makes a nice contrast to Java.

    As for the formatting I suspect that's user error. There's probably some MarkDown syntax for specifying that you want everything to pass through without being mangled.

    5 months, 1 week ago by adewale

  • petteri

    @adewale: Not directly related to your post, but have you seen that Scala has gained a lot of momentum? I have to say that compared to Java, it feels fresh and beautiful. (It is not quite as beautiful as e.g. Haskell, but probably more practical due to access to all Java libraries and the fact the executables run on JVM.)

    5 months, 1 week ago by petteri

  • petteri

    And even Twitter started using it :)

    5 months, 1 week ago by petteri

  • adewale

    @petteri: Io is another language that uses the Actors model for concurrency.

    I looked at Scala a while ago and I thought it made the wrong trade-off between complexity and expressiveness. I may have to rethink that.

    5 months, 1 week ago by adewale

  • petteri

    @adewale: I think that Scala is somewhat too extensive language: it just has too many features. Compare this to e.g. Lisp, which is both simple and flexible. However, I still think that a disciplined programmer (or actually a team) could be extremely productive with Scala.

    5 months, 1 week ago by petteri

Sign in to add a comment