This page is no longer maintained — Please continue to the home page at www.scala-lang.org

A Christmas Tree

10 replies
dcsobral
Joined: 2009-04-23,
User offline. Last seen 38 weeks 5 days ago.
This is so way cool that I decided to take up Josh's challenge to add some fun to the mailing list and add a link here. Here's the main method to this Christmas Tree program:

object ChristmasTree extends DecorationBuilder {

  def main(args: Array[String]) {
           \-/.
         -->*<--
            .
           /.\
         ./.|.\.
         /.oxo.\
       ./.*.|.x.\.
       /.oo.|.oo.\
     ./.oxo.|.***.\.
     /.*.oo.|.*.oo.\.
           |||
  }

}


You can find the rest of it here: http://www.cakesolutions.net/teamblogs/2011/12/22/merry-christmas/

--
Daniel C. Sobral

I travel to the future all the time.

Doug Tangren
Joined: 2009-12-10,
User offline. Last seen 42 years 45 weeks ago.
Re: A Christmas Tree


On Fri, Dec 23, 2011 at 7:44 AM, Daniel Sobral <dcsobral [at] gmail [dot] com> wrote:
This is so way cool that I decided to take up Josh's challenge to add some fun to the mailing list and add a link here. Here's the main method to this Christmas Tree program:

object ChristmasTree extends DecorationBuilder {

  def main(args: Array[String]) {
           \-/.
         -->*<--
            .
           /.\
         ./.|.\.
         /.oxo.\
       ./.*.|.x.\.
       /.oo.|.oo.\
     ./.oxo.|.***.\.
     /.*.oo.|.*.oo.\.
           |||
  }

}


Haha. Nice.
 

You can find the rest of it here: http://www.cakesolutions.net/teamblogs/2011/12/22/merry-christmas/

--
Daniel C. Sobral

I travel to the future all the time.


nilskp
Joined: 2009-01-30,
User offline. Last seen 1 year 27 weeks ago.
Re: A Christmas Tree
On Fri, Dec 23, 2011 at 6:44 AM, Daniel Sobral <dcsobral [at] gmail [dot] com> wrote:
This is so way cool that I decided to take up Josh's challenge to add some fun to the mailing list and add a link here. Here's the main method to this Christmas Tree program:

object ChristmasTree extends DecorationBuilder {

  def main(args: Array[String]) {
           \-/.
         -->*<--
            .
           /.\
         ./.|.\.
         /.oxo.\
       ./.*.|.x.\.
       /.oo.|.oo.\
     ./.oxo.|.***.\.
     /.*.oo.|.*.oo.\.
           |||
  }

}


Please tell me that's not valid Scala code??

Som Snytt
Joined: 2011-09-19,
User offline. Last seen 42 years 45 weeks ago.
Re: A Christmas Tree

It is more festive if you extend App and omit the boilerplate.

On Fri, Dec 23, 2011 at 1:50 PM, Nils Kilden-Pedersen <nilskp [at] gmail [dot] com> wrote:
On Fri, Dec 23, 2011 at 6:44 AM, Daniel Sobral <dcsobral [at] gmail [dot] com> wrote:
This is so way cool that I decided to take up Josh's challenge to add some fun to the mailing list and add a link here. Here's the main method to this Christmas Tree program:

object ChristmasTree extends DecorationBuilder {

  def main(args: Array[String]) {
           \-/.
         -->*<--
            .
           /.\
         ./.|.\.
         /.oxo.\
       ./.*.|.x.\.
       /.oo.|.oo.\
     ./.oxo.|.***.\.
     /.*.oo.|.*.oo.\.
           |||
  }

}


Please tell me that's not valid Scala code??


H-star Development
Joined: 2010-04-14,
User offline. Last seen 2 years 26 weeks ago.
Re: A Christmas Tree
Am 23.12.2011 22:50, schrieb Nils Kilden-Pedersen:
CABDULvXur--NtXi2SOn6TW4rNWeiE3qakPLK+8SHPjL1MR9MqA [at] mail [dot] gmail [dot] com" type="cite"> On Fri, Dec 23, 2011 at 6:44 AM, Daniel Sobral <dcsobral [at] gmail [dot] com" rel="nofollow">dcsobral [at] gmail [dot] com> wrote:
This is so way cool that I decided to take up Josh's challenge to add some fun to the mailing list and add a link here. Here's the main method to this Christmas Tree program:

object ChristmasTree extends DecorationBuilder {

  def main(args: Array[String]) {
           \-/.
         -->*<--
            .
           /.\
         ./.|.\.
         /.oxo.\
       ./.*.|.x.\.
       /.oo.|.oo.\
     ./.oxo.|.***.\.
     /.*.oo.|.*.oo.\.
           |||
  }

}


Please tell me that's not valid Scala code??

of course it is :)
Russel Winder 2
Joined: 2010-04-06,
User offline. Last seen 42 years 45 weeks ago.
Re: A Christmas Tree

On Fri, 2011-12-23 at 23:22 +0100, HamsterofDeath wrote:
> Am 23.12.2011 22:50, schrieb Nils Kilden-Pedersen:
> > On Fri, Dec 23, 2011 at 6:44 AM, Daniel Sobral > > wrote:
> >
> > This is so way cool that I decided to take up Josh's challenge to
> > add some fun to the mailing list and add a link here. Here's the
> > main method to this Christmas Tree program:
> >
> > object ChristmasTree extends DecorationBuilder {
> >
> > def main(args: Array[String]) {
> > \-/.
> > -->*<--
> > .
> > /.\
> > ./.|.\.
> > /.oxo.\
> > ./.*.|.x.\.
> > /.oo.|.oo.\
> > ./.oxo.|.***.\.
> > /.*.oo.|.*.oo.\.
> > |||
> > }
> >
> > }
> >
> >
> > Please tell me that's not valid Scala code??
> >
> >
> of course it is :)

Oh no it isn't

Yes I know that the full code at
http://www.cakesolutions.net/teamblogs/2011/12/22/merry-christmas/ works
fine but the code above is only a quarter of the story, and, well, I
could resist getting into the festive spirit by starting a traditional
pantomime interaction.

tolsen77
Joined: 2008-10-08,
User offline. Last seen 1 year 38 weeks ago.
Re: A Christmas Tree
Pimp my Christmas Tree?

On 23 December 2011 23:20, Som Snytt <som [dot] snytt [at] gmail [dot] com> wrote:

It is more festive if you extend App and omit the boilerplate.

On Fri, Dec 23, 2011 at 1:50 PM, Nils Kilden-Pedersen <nilskp [at] gmail [dot] com> wrote:
On Fri, Dec 23, 2011 at 6:44 AM, Daniel Sobral <dcsobral [at] gmail [dot] com> wrote:
This is so way cool that I decided to take up Josh's challenge to add some fun to the mailing list and add a link here. Here's the main method to this Christmas Tree program:

object ChristmasTree extends DecorationBuilder {

  def main(args: Array[String]) {
           \-/.
         -->*<--
            .
           /.\
         ./.|.\.
         /.oxo.\
       ./.*.|.x.\.
       /.oo.|.oo.\
     ./.oxo.|.***.\.
     /.*.oo.|.*.oo.\.
           |||
  }

}


Please tell me that's not valid Scala code??



Alec Zorab
Joined: 2010-05-18,
User offline. Last seen 42 years 45 weeks ago.
Re: A Christmas Tree

/Enrich/ my Christmas Tree!

On 24 December 2011 13:24, Trond Olsen wrote:
> Pimp my Christmas Tree?
>
>
> On 23 December 2011 23:20, Som Snytt wrote:
>>
>>
>> It is more festive if you extend App and omit the boilerplate.
>>
>>
>> On Fri, Dec 23, 2011 at 1:50 PM, Nils Kilden-Pedersen
>> wrote:
>>>
>>> On Fri, Dec 23, 2011 at 6:44 AM, Daniel Sobral
>>> wrote:
>>>>
>>>> This is so way cool that I decided to take up Josh's challenge to add
>>>> some fun to the mailing list and add a link here. Here's the main method to
>>>> this Christmas Tree program:
>>>>
>>>> object ChristmasTree extends DecorationBuilder {
>>>>
>>>>   def main(args: Array[String]) {
>>>>            \-/.
>>>>          -->*<--
>>>>             .
>>>>            /.\
>>>>          ./.|.\.
>>>>          /.oxo.\
>>>>        ./.*.|.x.\.
>>>>        /.oo.|.oo.\
>>>>      ./.oxo.|.***.\.
>>>>      /.*.oo.|.*.oo.\.
>>>>            |||
>>>>   }
>>>>
>>>> }
>>>>
>>>
>>> Please tell me that's not valid Scala code??
>>>
>>>
>>
>

Igor Inas
Joined: 2011-01-28,
User offline. Last seen 1 year 18 weeks ago.
Re: A Christmas Tree
I tried to reformat code in latest Intellij Scala Plugin and the IDE stopped responding. Shall I create a ticket?

On Sat, Dec 24, 2011 at 2:37 PM, Alec Zorab <aleczorab [at] googlemail [dot] com> wrote:
/Enrich/ my Christmas Tree!

On 24 December 2011 13:24, Trond Olsen <trond [at] steinbit [dot] org> wrote:
> Pimp my Christmas Tree?
>
>
> On 23 December 2011 23:20, Som Snytt <som [dot] snytt [at] gmail [dot] com> wrote:
>>
>>
>> It is more festive if you extend App and omit the boilerplate.
>>
>>
>> On Fri, Dec 23, 2011 at 1:50 PM, Nils Kilden-Pedersen <nilskp [at] gmail [dot] com>
>> wrote:
>>>
>>> On Fri, Dec 23, 2011 at 6:44 AM, Daniel Sobral <dcsobral [at] gmail [dot] com>
>>> wrote:
>>>>
>>>> This is so way cool that I decided to take up Josh's challenge to add
>>>> some fun to the mailing list and add a link here. Here's the main method to
>>>> this Christmas Tree program:
>>>>
>>>> object ChristmasTree extends DecorationBuilder {
>>>>
>>>>   def main(args: Array[String]) {
>>>>            \-/.
>>>>          -->*<--
>>>>             .
>>>>            /.\
>>>>          ./.|.\.
>>>>          /.oxo.\
>>>>        ./.*.|.x.\.
>>>>        /.oo.|.oo.\
>>>>      ./.oxo.|.***.\.
>>>>      /.*.oo.|.*.oo.\.
>>>>            |||
>>>>   }
>>>>
>>>> }
>>>>
>>>
>>> Please tell me that's not valid Scala code??
>>>
>>>
>>
>

Alefas
Joined: 2009-06-23,
User offline. Last seen 33 weeks 5 days ago.
Re: A Christmas Tree
No, because I fixed it few minutes ago...

Best regards,
Alexander Podkhalyuzin.

04.01.2012 12:46, Igor Inas пишет:
d79qWOQ [at] mail [dot] gmail [dot] com" type="cite">I tried to reformat code in latest Intellij Scala Plugin and the IDE stopped responding. Shall I create a ticket?

On Sat, Dec 24, 2011 at 2:37 PM, Alec Zorab <aleczorab [at] googlemail [dot] com" rel="nofollow">aleczorab [at] googlemail [dot] com> wrote:
/Enrich/ my Christmas Tree!

On 24 December 2011 13:24, Trond Olsen <trond [at] steinbit [dot] org" rel="nofollow">trond [at] steinbit [dot] org> wrote:
> Pimp my Christmas Tree?
>
>
> On 23 December 2011 23:20, Som Snytt <som [dot] snytt [at] gmail [dot] com" rel="nofollow">som [dot] snytt [at] gmail [dot] com> wrote:
>>
>>
>> It is more festive if you extend App and omit the boilerplate.
>>
>>
>> On Fri, Dec 23, 2011 at 1:50 PM, Nils Kilden-Pedersen <nilskp [at] gmail [dot] com" rel="nofollow">nilskp [at] gmail [dot] com>
>> wrote:
>>>
>>> On Fri, Dec 23, 2011 at 6:44 AM, Daniel Sobral <dcsobral [at] gmail [dot] com" rel="nofollow">dcsobral [at] gmail [dot] com>
>>> wrote:
>>>>
>>>> This is so way cool that I decided to take up Josh's challenge to add
>>>> some fun to the mailing list and add a link here. Here's the main method to
>>>> this Christmas Tree program:
>>>>
>>>> object ChristmasTree extends DecorationBuilder {
>>>>
>>>>   def main(args: Array[String]) {
>>>>            \-/.
>>>>          -->*<--
>>>>             .
>>>>            /.\
>>>>          ./.|.\.
>>>>          /.oxo.\
>>>>        ./.*.|.x.\.
>>>>        /.oo.|.oo.\
>>>>      ./.oxo.|.***.\.
>>>>      /.*.oo.|.*.oo.\.
>>>>            |||
>>>>   }
>>>>
>>>> }
>>>>
>>>
>>> Please tell me that's not valid Scala code??
>>>
>>>
>>
>


Igor Inas
Joined: 2011-01-28,
User offline. Last seen 1 year 18 weeks ago.
Re: A Christmas Tree
There was supposed to be a smiley in my question about the ticket. The Christmas Tree is not an usual piece of code after all.
It's great though, that you fixed even this one :) Thanks !

On Wed, Jan 4, 2012 at 9:50 AM, Alexander Podkhalyuzin <Alexander [dot] Podkhalyuzin [at] jetbrains [dot] com> wrote:
No, because I fixed it few minutes ago...

Best regards,
Alexander Podkhalyuzin.

04.01.2012 12:46, Igor Inas пишет:
I tried to reformat code in latest Intellij Scala Plugin and the IDE stopped responding. Shall I create a ticket?

On Sat, Dec 24, 2011 at 2:37 PM, Alec Zorab <aleczorab [at] googlemail [dot] com> wrote:
/Enrich/ my Christmas Tree!

On 24 December 2011 13:24, Trond Olsen <trond [at] steinbit [dot] org> wrote:
> Pimp my Christmas Tree?
>
>
> On 23 December 2011 23:20, Som Snytt <som [dot] snytt [at] gmail [dot] com> wrote:
>>
>>
>> It is more festive if you extend App and omit the boilerplate.
>>
>>
>> On Fri, Dec 23, 2011 at 1:50 PM, Nils Kilden-Pedersen <nilskp [at] gmail [dot] com>
>> wrote:
>>>
>>> On Fri, Dec 23, 2011 at 6:44 AM, Daniel Sobral <dcsobral [at] gmail [dot] com>
>>> wrote:
>>>>
>>>> This is so way cool that I decided to take up Josh's challenge to add
>>>> some fun to the mailing list and add a link here. Here's the main method to
>>>> this Christmas Tree program:
>>>>
>>>> object ChristmasTree extends DecorationBuilder {
>>>>
>>>>   def main(args: Array[String]) {
>>>>            \-/.
>>>>          -->*<--
>>>>             .
>>>>            /.\
>>>>          ./.|.\.
>>>>          /.oxo.\
>>>>        ./.*.|.x.\.
>>>>        /.oo.|.oo.\
>>>>      ./.oxo.|.***.\.
>>>>      /.*.oo.|.*.oo.\.
>>>>            |||
>>>>   }
>>>>
>>>> }
>>>>
>>>
>>> Please tell me that's not valid Scala code??
>>>
>>>
>>
>



Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland