Enterprise 1.0.0 Released

enterprise version 1.0.0 has been released!

Wish you could write your Ruby in XML? Has the fact that Ruby is not
“enterprise” got you down? Do you feel like your Ruby code could be
made to
be more “scalable”? Well look no further my friend. You’ve found the
enterprise gem. Once you install this gem, you too can make Rails
scale, Ruby
faster, your code more attractive, and have more XML in your life.

I’m sure you’re asking yourself, “how can the enterprise gem promise so
much?”. Well the answer is easy, through the magic of XML! The
enterprise
gem allows you to write your Ruby code in XML, therefore making your
Ruby and
Rails code scale. Benefits of writing your code in XML include:

  • It’s easy to read!
  • It scales!
  • Cross platform
  • TRANSFORM! your code using XSLT!
  • Search your AST with XPath or CSS!

The enterprise gem even comes with a handy “enterprise” binary to help
you
start converting your existing legacy Ruby code in to scaleable, easy
to
read XML files. Let’s start getting rid of that nasty Ruby code and
replacing
it with XML today!

FEATURES/PROBLEMS:

  • require files completely written in XML
  • convert existing legacy ruby code to XML

SYNOPSIS:

Let’s say you have some legacy Ruby code that looks like this:

class Foo
def hello_world
“bar”
end
end

puts Foo.new.hello_world

Let’s convert that crappy ruby code to XML:

<?xml version="1.0"?>

Now, simply save that XML file out to “test.xml”. With the enterprise
gem,
to execute this xml file, we just do:

$ enterprise_ruby test.xml

enterprise lets you do a require on pure xml files too. We can load the
test.xml file like so:

require ‘rubygems’
require ‘enterprise’
require ‘test’

The final feature is an enterprise migration assistant. To migrate an
entire
project to be enterprise, just do this:

$ enterprise some_directory

To make a single file enterprise, just give it the filename:

$ enterprise some_file.rb

I’m sure you’re asking yourself, “how much does this enterprise solution
cost
me?”. Well, like any good enterprise system, it is insanely expensive.
This
gem will cost you eleventy billion dollars payable to me, now.

REQUIREMENTS:

Like all good enterprise solutions, we do our best to get you stuck in a
web
of dependencies. We are working hard to increase the number of
dependencies,
but here is the current list

  • ruby2ruby
  • ruby_parser
  • nokogiri
  • polyglot

INSTALL:

  • sudo gem install enterprise
    Changes:

1.0.0 / 2009-06-17

  • 1 major enhancement

    • Entering in to the enterprise
    • Bringing ruby in the back door

On Wed, Jun 17, 2009 at 9:15 PM, Aaron
Patterson[email protected] wrote:

I’m sure you’re asking yourself, "how can the enterprise gem promise so
The enterprise gem even comes with a handy “enterprise” binary to help you

Let’s convert that crappy ruby code to XML:





require ‘rubygems’
$ enterprise some_file.rb

1.0.0 / 2009-06-17

  • 1 major enhancement

  • Entering in to the enterprise

  • Bringing ruby in the back door

Sorry, but it ain’t enterprise unless it costs at least $1500 per
developer seat!


Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

On Jun 17, 2009, at 8:15 PM, Aaron P. wrote:

enterprise version 1.0.0 has been released!

Wish you could write your Ruby in XML? Has the fact that Ruby is not
“enterprise” got you down? Do you feel like your Ruby code could be
made to
be more “scalable”? Well look no further my friend. You’ve found the
enterprise gem. Once you install this gem, you too can make Rails
scale, Ruby
faster, your code more attractive, and have more XML in your life.

     <defn type="Symbol" value="defn"/>
           <bar type="String" value="bar"/>
 <s>
       <s>

Priceless. :slight_smile:

James Edward G. II

On Wed, Jun 17, 2009 at 6:15 PM, Aaron
Patterson[email protected] wrote:

   <s>
           <str type="Symbol" value="str"/>
 <puts type="Symbol" value="puts"/>
       <new type="Symbol" value="new"/>

Now, simply save that XML file out to “test.xml”. With the enterprise gem,
to execute this xml file, we just do:

$ enterprise_ruby test.xml

This is just too awesome for words.

Aaron P. wrote:

I’m sure you’re asking yourself, "how can the enterprise gem promise so
The enterprise gem even comes with a handy “enterprise” binary to help you

Let’s convert that crappy ruby code to XML:





require ‘rubygems’
$ enterprise some_file.rb

1.0.0 / 2009-06-17

  • 1 major enhancement

    • Entering in to the enterprise
    • Bringing ruby in the back door

Can’t wait to show that to the decision makers.

Thanks!

t.

I seem to recall seeing an “acts_as_enterprisey” plugin for Rails
which just inserted some sleeps in certain critical paths to simulate
the performance of enterprise code.


Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

On Thu, Jun 18, 2009 at 10:50:28AM +0900, Rick DeNatale wrote:

faster, your code more attractive, and have more XML in your life.

  • Search your AST with XPath or CSS!

puts Foo.new.hello_world





test.xml file like so:
To make a single file enterprise, just give it the filename:
of dependencies. We are working hard to increase the number of dependencies,
Changes:

1.0.0 / 2009-06-17

  • 1 major enhancement

  • Entering in to the enterprise

  • Bringing ruby in the back door

Sorry, but it ain’t enterprise unless it costs at least $1500 per
developer seat!

Sorry, we don’t do per-seat pricing. We only do lump sum of eleventy
billion dollars, or $1500 per XML node (don’t forget! attributes are
nodes too!). Some companies like to go with the lump sum because they
get
unlimited nodes, but the per-node price might be better for smaller
companies.

I can offer a discount on whitespace nodes, but I’d have to ask my
manager.

Aaron P. wrote:

enterprise version 1.0.0 has been released!

You are hereby nominated for the 2009 ruby chindogu prize. If only it
existed :slight_smile:

(http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/40998)

On Jun 17, 9:15 pm, Aaron P. [email protected]
wrote:

I’m sure you’re asking yourself, "how can the enterprise gem promise so
The enterprise gem even comes with a handy “enterprise” binary to help you
start converting your existing legacy Ruby code in to scaleable, easy to
read XML files. Let’s start getting rid of that nasty Ruby code and replacing
it with XML today!

Cool. Now I can use XSLT to transform my code into XHTML and finally
get some really nice code highlighting. Can I make it a feature
request?

:wink: T.

On Fri, Jun 19, 2009 at 02:48:24AM +0900, Joel VanderWerf wrote:

Aaron P. wrote:

enterprise version 1.0.0 has been released!

You are hereby nominated for the 2009 ruby chindogu prize. If only it
existed :slight_smile:

(http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/40998)

ありがとうございます!

Maybe they’ll make one for RubyConf this year. :wink:

2009/6/18 Aaron T. [email protected]

 <s>
         <block type="Symbol" value="block"/>
 <call type="Symbol" value="call"/>
         <Foo type="Symbol" value="Foo"/>
   </s>

This is just too awesome for words.

Indeed, my hat goes off to you. Consider this a small tribute…
Yes, even us Schemers need enterprise support. · jcoglan/heist@3b8ef60 · GitHub.
Seriously, isn’t this way more beautiful than all those parentheses
those
pesky “Lispers” keep banging on about? enterprise-scheme.xml · GitHub

On Fri, Jun 19, 2009 at 1:28 AM, James C.[email protected]
wrote:

2009/6/18 Aaron T. [email protected]

m/jcoglan/heist/commit/3b8ef60d45d604c3c30d1dcb9a8c3c0580f524bc.
Seriously, isn’t this way more beautiful than all those parentheses those
pesky “Lispers” keep banging on about? enterprise-scheme.xml · GitHub

Why not having both worlds

(define_method :name 'hello_world :as (xml
"<progn
<object name="::Method" id="42" />
<invoke message="new" target=<object ref="42" /> />
/>
") :body '(say “Hello World”))

(xml “
<import-from-caller method="by-name" name="hello_world" />

<[<CDATA
(hello_world)
]]>

”)

Which would raise an Illegal Authorization error first and after that
being fixed we will get a Security error
“cannot say anything in a sandbox”

But do not fear I consider it extremely unlikely that Erlang, Ruby &
Clojure will rule the world :wink:

(cheers :Robert)

Toutes les grandes personnes ont d’abord été des enfants, mais peu
d’entre elles s’en souviennent.

All adults have been children first, but not many remember.

[Antoine de Saint-Exupéry]