Scala JavaBean example with a lot less redundant code than corresponding Java code

January 23rd 2010

PermaLink Saturday 23:25 pm, by admin >>>MSGFORM<<<, 80 words, VIEWED 876 TIMES   English (US)
Categories: Scala (english)

This post title is "Scala JavaBean example with a lot less redundant code than corresponding Java code"

I have added a new code example to Scalaforum about how Scala can be used for less verbose coding, compared to Java (!), regarding (for example) not having to declare the type of Javabeans multiple times
The example also provides a JUnit example which, through a common Java interface, verifies the same behaviour for the Java implementation and the Scala implementation, even though the Scala class does not seem to define any getter/setter methods.

http://www.scalaforum.se/scala-for-java-developers/scala-less-redundant-verbose-than-java/

Permalink BEFORESend feedbackAFTER • Trackback (0)

Trackback address for this post:

http://tomas.programmerare.com/blog/htsrv/trackback.php?tb_id=91

Trackbacks, Pingbacks:

No Trackbacks/Pingbacks for this post yet...

This post has 695 feedbacks awaiting moderation...

Tomas Johansson's blog

Tomas Johansson is a Swedish developer, located in Stockholm, with a very strong interest in software development principles leading to long-term maintainable software. Some of these principles include Test-Driven Development, Domain-Driven Design, Architectural and Design patterns, SOLID Principles and GRASP patterns. Currently, my favorite programming language is Scala, but otherwise I am also generally interested in C#.NET and Java.

September 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

Search

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 2

powered by
b2evolution