maybe im just becoming that old grumpy c++ coder in the corner cubicle of
every company ive ever worked for that believes his language is the bomb and
nothing else will do.  kevin, i personally prefer the first immutable
example you gave.  maybe its because ive been doing it so long it just comes
naturally to me to do it that way.    i like the boilerplate code.  i like
seeing all the pieces and knowing for certain what they are doing.  to have
a language tell me, trust me, i got this.  will drive me out of my mind.  i
don't want to trust you, i wanna see it.

i do want to get to know scala more. i think of all the next generation
languages that have come out in the past few years, scala is the most
promising.  when they slow down the release cycle to one release every year
or two i will be VERY happy about it.  the next side project i get i want to
write in scala simply to see what all the fuss is about.  but right now, i
understand what your saying, i just don't get the difference between the
two.

ive never been a person to change just for the sake of changing.  i better
have a damn good reason to change.  hell, this coming from a guy that still
uses windows 2000 advanced server on all his home servers and FreeBSD 4 on
all his company production servers.  why change what works, LOL

On Sat, Sep 18, 2010 at 5:08 AM, Kevin Wright <[email protected]>wrote:

>
>
> On 18 September 2010 10:01, Kevin Wright <[email protected]> wrote:
>>
>>
>> This is the same approach that Scala takes, but with Scala all the
>> construction and copy logic is built in:
>>
>> case class Haha(firstName : String, lastName : String) {
>>   val name = firstName + " " + lastName
>> }
>>
>>
>>
> I can actually go a bit further here:
>
>   trait Named {
>     def name : String    // it's a def, so could be implemented by a
> method...
>   }
>
>   case class Haha(firstName : String, lastName : String) extends Named {
>     val name = firstName + " " + lastName    // ... but can also
> implemented by a val
>   }
>
> This is the essence of the uniform access principle.
>
> --
> Kevin Wright
>
> mail / gtalk / msn : [email protected]
> pulse / skype: kev.lee.wright
> twitter: @thecoda
>
>  --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<javaposse%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>



-- 
You want it fast, cheap, or right.  Pick two!!

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to