The Artima Developer Community
Sponsored Link

Java Buzz Forum
Learning from agile languages

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Learning from agile languages Posted: Jun 7, 2004 4:09 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Learning from agile languages
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
It was interesting to chat with Anders Hejlsberg about C# at the whiteboard cabana session at TechEd. He talked about the fact that we should be learning from the (now so-called) agile languages such as Ruby/Python/Groovy... He thought that there has definitely been a lot to learn and gave a simple example: Currently, the following is really ugly to do in our languages: Dictionary x = new Dictionary(); It is so verbose. Anders suggested having the compiler be smart and use defaults. So the former would become: var x = new Dictionary(); And x would default to be the right thing. Saves a bit on typing, but when you code to interfaces more and more, it doesn't really help. E.g. you would still need: Map m = new HashMap(); He also mentioned changing the configuration/initiation of objects to go from: Point p = new Point(); p.x = 5; p.y = 10; to: Point p = new Point { x = 5, y = 10 }; I personally prefer params in methods/constructors so you could just do: Point p = new Point(x = 5, y = 10); Good news that people are looking at the other languages to clean new information at least!

Read: Learning from agile languages

Topic: Swing and Groovy: Low-Carb Coding, not Syntactic Sugar Previous Topic   Next Topic Topic: [May 27, 2004 20:11 PDT] 7 Links

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use