HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 13930 thumbnail
User 111696 avatar

By bloid
via rickyclarkson.blogspot.com
Published: Feb 20 2007 / 14:23

While I think there should be some language change to make properties really useful, it's worth looking at how close we can get to properties without changing the language, to work out what needs changing.
  • 5
  • 0
  • 1705
  • 0

Comments

Add your comment
User 179375 avatar

Ricky Clarkson replied ago:

-1 votes Vote down Vote up Reply

Suppose I should vote for this. ;)

User 175177 avatar

sproket replied ago:

1 votes Vote down Vote up Reply

I still don't understand this obsession with adding properties in Java. It was a dumb idea in VB and it's a dumb idea in C#. Why should Java follow dumb ideas?

Could someone supply a clear example of how this benefits anyone?

User 179375 avatar

Ricky Clarkson replied ago:

0 votes Vote down Vote up Reply

Properties remove the readability price that we currently pay for using accessors instead of public fields.

Properties remove the code duplication price that we currently pay for getters and setters. That price is better measured in time to read code than keypresses.

User 187417 avatar

sproketboy replied ago:

0 votes Vote down Vote up Reply

See comments in your blog since this crud service doesn't support formatting.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (0)