because XML is often used to simulate dynamic coding a great example of this
is XAML right?

XAML is excecutable code expressed as XML every self-respecting enterprise
architect thinks XML is the second coming and will put loads of it in there.
So instead of describing stuff in XML and giving your whole team carpal
tunnel you can do the same thing by using Ruby to configure your application

The argument is often yeah we did it in XML because then we didn't have to
compile again to make  a quick change.
The news is :) You don't have to compile Ruby AND you can do more stuff with
it than you can do with XML.

Now if you were to ask me when should I use XML => when you need validation
of data coming from an external source or when you need some form of
namespacing when communicating with 3rd parties all other cases are YAGNI.

---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Google Wave: portocarrero.i...@googlewave.com
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Tue, Dec 15, 2009 at 9:17 AM, Shay Friedman <shay.fried...@gmail.com>wrote:

> Hi there,
>
> Jimmy wrote in one of his latests posts that Ruby can replace XML. I didn't
> understand this statement because XML files are static configuration files
> (and Ruby also has an equivalent - YAML)...
>
> How can Ruby code replace XML files?
>
> Thanks!
> Shay.
>
> --
> --------------------------------------------------
> Shay Friedman
> Author of IronRuby Unleashed
> http://www.IronShay.com
> Follow me: http://twitter.com/ironshay
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to