Wednesday, June 18, 2008

I love me some Ruby

So, I'm learning Ruby and Rails at home, and I'm absolutely loving it.

I love the little idiomatic stuff that make typing in it so concise.

Let's say that I have a list called mylist. I want to add an object to the list, foo.

In Java, I'd have to go something like this.



In Ruby, it's just this:



It's not earth shattering, but there are a dozen examples like this that I really like. If you understand the symbols and operators of the language, it actually reads just fine. Maybe I'm getting cranky in my old age and not wanting to type out all that stuff as much anymore.

Another perhaps bigger example was the "attr_accessor" convenience method.



What just happened here? For me, the critical part was the getter/setter bits. In Java, I'd have to select a menu option in Eclipse to generate the getter's and setter's for this class. Imagine a class with 10 fields in Java. You are NOT gonna type out those methods.

In the Ruby case, it's just 1 line of code. And, you can add more fields to the same line. "attr_accessor" tells us that what are our accessor methods. Nice!

See also attr_reader and attr_writer which do as you would expect, allowing only read or only write methods.

Alfresco partnering with Adobe

I just randomly hit my bookmark for the Alfresco blog today and was like...whoa!

It appears Alfresco is partnering with Adobe now on forms. They're gonna embed the Alfresco repository as part of the LiveCycle suite. Wow. Congrats if that works out for ya. Not sure how that works yet but I'm intrigued. I was just speaking with a colleague about forms applications and how badly OpenText did it in the past. Not sure if their competitors did it any better. Having not worked with LiveCycle directly, I cannot say that this is a good thing, only it's a big thing. Something to keep an eye on.

Here's the Press Release.

Read more... on their blog.

Wednesday, June 11, 2008

MyEclipse Quirk

I discovered a really weird UI quirk with MyEclipse today. I updated a thread on the MyEclipse forum for good measure. But, this is the issue:

I've seen this where case where the Add button on the Manage Deployments dialog is grey or greyed out. It's the weirdest thing. This was happening to me on Ubuntu Linux today but I don't think that matters. Also, I'm using MyEclipse 6.x. And, this also happened to a colleague of mine using Windows a few weeks ago. It was maddening and I couldn't figure it out at the time.

It seems that if the current open project doesn't have focus, this occurs. Make sure to click somewhere on your project in your project explorer. Then click the Deploy button again to bring up the Manage Deployments dialog.

So, to re-create this problem click on a closed project on your package explorer then try to deploy. It should be greyed out.

I don't know if this is really a bug as much as it is a UI quirk?