Read my latest article: 8 things I look for in a Ruby on Rails app (posted Thu, 06 Jul 2017 16:59:00 GMT)

PHP versus Ruby, round two

Posted by Tue, 04 Oct 2005 14:22:00 GMT

2 comments Latest by ronald Sat, 22 Jul 2006 15:35:36 GMT

Apparently, there was a double booking at the venue tonight where the Portland Ruby Brigade is having the monthly meeting at.

Who are we double booked with? The Portland PHP user’s group. I’m not kidding!

First of all, this kind of puts a minor blow to our plan for tonight. We have Derek and Jeremy (bitsweat) coming by to discuss their work with Ruby on Rails and PostgreSQL. We’re not sure yet how the double-booking happened… so that remains to be figured out. However, the other group starts a hour earlier, so we can probably sneak in towards the end and then show them the Ruby way.

The funny part? The discussion with Derek from CD Baby is supposed to surround their move from PHP to Ruby. We might be able to pick up a few more PHP coders tonight. :-)

Wish us luck… it could get dirty tonight.

Master, console, and servant part two

Posted by Tue, 04 Oct 2005 03:54:00 GMT

This is a brief addition to the post from a few days ago, Master, console, and servant.

Noradio on IRC pointed out one thing that I did not mention in my previous blog entry… that you can bind a subsession of irb to a specific object. What??

Okay, let me explain this a bit more. Instead of always setting a variable to hold an instance of an object, you can be a bit more creative with irb.

I present…

So, for example. You can perform the following in script/console.

irb Model.find(4) name

If there is an attribute/method called name in your model, then it will call it there. See my screen shot for some more details of how I used the jobs and fg # commands to switch jobs…. and I even found out what happens when you attempt to switch to the current thread. :-)

Until next time…

Master, console, and servant

Posted by Sun, 02 Oct 2005 00:47:00 GMT

I love console in Rails. It is absolutely one of my favorite tools in Rails. I probably spend more time testing stuff in console than I do in a browser, which is a good thing. Right?

Today, I was reading through a part of Programming Ruby (I like to open up to a random page and read something every once in a while) and came across a section on page 189. Subsessions and Bindings I was not aware that I could do this within irb and immediately thought to myself, “can I do that with console?” Console is afterall…just irb with all the Rails features pre-configured. So, I decided that I would try this out the next time I was in console.

That time came and passed… so, does it work?

The answer: YES!

I even have proof… :-)

This should eliminate a few tabs in iterm for me and works just like the Unix jobs and fg commands do.

If you are still not using console yet, why?

Perhaps you enjoy the pain of constant browser reloads because you keep trying to figure out if that method works. Often times, you can copy and paste your code right into console. It’s beautiful and gives you a quicker response than your browser will ever. But, you already knew that. Right?

Don’t get me wrong, I can totally understand your justifications for the extra pain. Who wants to work in their terminal more than they have to? (I do… but I do it because I am at home in my terminal.) There is nothing pretty about the terminal… but I feel in control. Are you a servant of your pretty GUI IDE and browser or are you the master of your terminal? ;-)

Okay, I will end this nonsense with my new console marketing campaign. I have employeed three pigeons to help me work on this one and the end result of our hard work?

Have you ruby script/console‘d today?

Yes. Classy and Original. :-)

Back to writing…

Is the Ruby community... nicer?

Posted by Mon, 26 Sep 2005 15:15:00 GMT

Our favorite programming guru, Martin Fowler has written a post on his bliki about Ruby People

From my years of working in the open source community, I have not seen a community so friendly and so cultured (meaning, we come from PHP, Java, .NET, Perl, Python, etc.) The elitism is minimal in the Ruby community… we all just want to have fun and write elegant code. :-)

Do you find the Ruby community friendlier?

Planet Argon now a RubyForge mirror

Posted by Sun, 25 Sep 2005 11:44:00 GMT

Finally got everything setup with the initial RSYNC and wanted to let it keep syncing overnight. We (PLANET ARGON) are excited to announce that we will be an official mirror of RubyForge.

The RubyForge.org downloads currently take up just over 1GB in disk space and they say that they are getting just over 200GB of transfer a month now. We’re happy to help out. :-)

We should be put into the rotation sometime in the next day. Until then you can start downloading stuff now at http://rubyforge.planetargon.com/.

CDBaby Q&A at next Portland Ruby Brigade meeting

Posted by Fri, 23 Sep 2005 19:06:00 GMT

I just posted on the Portland Ruby Brigade blog that Derek Sivers and Jeremy Kemper (bitsweat) will be coming to the next PDX.rb user group meeting. Derek and Jeremy will field questions from all of us in regards to their complete rewrite of CD Baby from PHP+MySQL to Ruby+Rails+PostgreSQL. (my favorite open-source projects!)

This will take place at FreeGeek in Portland, Oregon on October 4th, 2005!

For more information, see the Portland Ruby Brigade website

Older posts: 1 ... 7 8 9 10 11