﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Evan Hoff commented on By the DSL, guess what I am reading</title><description>haha..looks like i should have read the other comments first..lol
  
  
i'd like to hear what you thought of the erlang book..been eyeing it myself..
</description><link>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment9</link><guid>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment9</guid><pubDate>Sun, 14 Oct 2007 22:03:46 GMT</pubDate></item><item><title>Evan Hoff commented on By the DSL, guess what I am reading</title><description>enterprise integrations patterns...great book
</description><link>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment8</link><guid>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment8</guid><pubDate>Sun, 14 Oct 2007 22:01:10 GMT</pubDate></item><item><title>Ayende Rahien commented on By the DSL, guess what I am reading</title><description>Chad,
  
There are several purposes for creating a DSL.
  
This is not one that I will show to a business user, it is something that I want to do for myself.
  
The idea here is that the receive / message primitives are going to handle non-blocking waits on the thread, erlang style.
  
This is very powerful concept when you are talking about concurrent programming
</description><link>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment7</link><guid>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment7</guid><pubDate>Sun, 14 Oct 2007 16:35:45 GMT</pubDate></item><item><title>Chad Myers commented on By the DSL, guess what I am reading</title><description>Blasted whitespace stripping...
</description><link>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment6</link><guid>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment6</guid><pubDate>Sun, 14 Oct 2007 15:49:04 GMT</pubDate></item><item><title>Chad Myers commented on By the DSL, guess what I am reading</title><description>What is that trying to accomplish?
  
  
I thought DSLs were supposed to present something that a mere mortal (non-IT user) could understand.
  
  
Heck, I can barely understand that.  I think old if(){ } statements would better. I've had luck in the past showing well-constructed, simple business logic in C# to non-IT folks and having them understand it.
  
  
It seems like this might be preferable:
  
  
public void OnReceive( Message message )
  
{
  
    if( message.AddressID == null )
  
    {
  
	Address.FromMessage(message).Create();
  
    } 
  
    else if
  
    {
  
        Address addr = LoadAddress(message.AddressID);
  
        Address.FromMessage(addr, message).Save();
  
    }
  
    else
  
    {
  
        throw new MessageNotUnderstoodException();
  
    }    
  
}
</description><link>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment5</link><guid>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment5</guid><pubDate>Sun, 14 Oct 2007 15:48:40 GMT</pubDate></item><item><title>Thomas Eyde commented on By the DSL, guess what I am reading</title><description>That DSL is just gibberish to me. The only thing I could parse was MessageNotUnderstood().
</description><link>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment4</link><guid>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment4</guid><pubDate>Sun, 14 Oct 2007 13:21:44 GMT</pubDate></item><item><title>Ayende Rahien commented on By the DSL, guess what I am reading</title><description>Hehe, yeah.
  
I am going to finish it and post about, very interesting.
</description><link>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment3</link><guid>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment3</guid><pubDate>Sun, 14 Oct 2007 13:04:12 GMT</pubDate></item><item><title>David commented on By the DSL, guess what I am reading</title><description>Joe Armstrong's book on erlang (which I've just read). 
</description><link>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment2</link><guid>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment2</guid><pubDate>Sun, 14 Oct 2007 12:33:31 GMT</pubDate></item><item><title>Ken Egozi commented on By the DSL, guess what I am reading</title><description>The Yellow Pages
  
  
Ha ha  gotcha.
</description><link>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment1</link><guid>http://ayende.com/2870/by-the-dsl-guess-what-i-am-reading#comment1</guid><pubDate>Sun, 14 Oct 2007 11:48:25 GMT</pubDate></item></channel></rss>