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/
http://tomas.programmerare.com/blog/htsrv/trackback.php?tb_id=91
No Trackbacks/Pingbacks for this post yet...
This post has 695 feedbacks awaiting moderation...
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.
| 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 | ||