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/
I added a new example to Scalaforum of how Scala can be used for less verbose coding, compared to Java (!), without having to create an interface with only one method (including having to create a bunch of implementations, which you have to do in Java)
http://www.scalaforum.se/scala-for-java-developers/using-scala-functions-to-reduce-duplication/
Jag har fyllt på den nya webbplatsen 'Scalaforum' med lite mer innehåll, bl.a. en FAQ.
Det finns nu också en särskild feed-länk med uppdaterat innehåll på den webbplatsen.
Jag har idag registrerat en ny domän scalaforum.se som f.n. inte har mycket innehåll, men avsikten med webbplatsen är att på sikt försöka bidra till att öka intresset för programmeringsspråket Scala.
Homepage for the book:
http://programmer.97things.oreilly.com
The article I commented:
http://programmer.97things.oreilly.com/wiki/index.php/Test_for_Required_Behavior%2C_not_Incidental_Behavior
My comments about the above article:
http://programmer.97things.oreilly.com/wiki/index.php/Talk:Test_for_Required_Behavior%2C_not_Incidental_Behavior
My contributions:
http://programmer.97things.oreilly.com/wiki/index.php/Special:Contributions/TomasJohansson
/ Tomas Johansson
Though, the book seems to be scheduled for printing in february 2010, according to statement at:
http://groups.google.com/group/97things-programmer/browse_frm/thread/ba60d1c1fd9e3e95
so, my contributions may not become included in the book, even if the decision makers would agree about my opinions there...
Homepage for the book:
http://programmer.97things.oreilly.com
The article I commented:
http://programmer.97things.oreilly.com/wiki/index.php/Thinking_in_States
My comments:
http://programmer.97things.oreilly.com/wiki/index.php/Talk:Thinking_in_States
/ Tomas Johansson
Idag besvarade jag en fråga i diskussionsforumet "Javaforum" angående hur man skall modellera organisationsstrukturer, dvs enligt det generella koncept som Martin Fowler beskriver som "Party" i sin bok Analysis patterns, och som kan representera subtyper såsom Person och Organisation.
Vidare beskriver jag i in lägget även hur man ska tänka angående Liskovs substitutionsprincip, dvs att det inte räcker med den klassiska "IS-A"-relationen utan att man även måste beakta hur klienten kommer att vilja använda bastypen på ett transparent sätt.
En Division som består av bl.a. många Departments fungerade också ganska bra som ett exempel på Composite pattern, och att man då kan iterera över olika Departments (men representerade av en bastyp) för att erhålla det totala antalet anställda inom divisionen.
Länk:
http://www.javaforum.se/jforum/posts/list/835.page#4678
/ TomasJ
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 |
|---|---|---|---|---|---|---|
| << < | Current | > >> | ||||
| 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 |
| 31 | ||||||