Archives for: January 2010

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)

January 19th 2010

PermaLink Tuesday 19:10 pm, by admin >>>MSGFORM<<<, 51 words, VIEWED 5083 TIMES   English (US)
Categories: Scala (english)

This post title is "Using Scala functions to reduce duplication, as alternative to Strategy and Template method design patterns"

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/

Permalink BEFORESend feedbackAFTER • Trackback (0)

January 17th 2010

PermaLink Sunday 17:04 pm, by admin >>>MSGFORM<<<, 39 words, VIEWED 201 TIMES   Swedish (SE)
Categories: Scala (swedish)

This post title is "Uppdaterat innehåll på Scalaforum"

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.

http://www.scalaforum.se/feeds/feedburner/

Permalink BEFORESend feedbackAFTER • Trackback (0)

January 15th 2010

PermaLink Friday 15:33 pm, by admin >>>MSGFORM<<<, 43 words, VIEWED 244 TIMES   Swedish (SE)
Categories: Scala (swedish)

This post title is "Scalaforum"

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.

http://www.scalaforum.se

Permalink BEFORESend feedbackAFTER • Trackback (0)

January 13th 2010

PermaLink Wednesday 13:32 pm, by admin >>>MSGFORM<<<, 91 words, VIEWED 1646 TIMES   English (US)
Categories: Software design

This post title is "Thinking in States (my feedback for a book article at "97 Things Every Programmer Should Know")"

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

Permalink BEFORESend feedbackAFTER • Trackback (0)

January 12th 2010

PermaLink Tuesday 12:27 pm, by admin >>>MSGFORM<<<, 148 words, VIEWED 625 TIMES   Swedish (SE)
Categories: Systemutveckling (blog posts in swedish)

This post title is "Analysmönstret "Party" och Liskovs substitutionsprincip"

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

Permalink BEFORESend feedbackAFTER • Trackback (0)

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.

January 2010
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            

Search

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 7

powered by
b2evolution