At the Forge - Getting Started with Ruby

What's behind all the Ruby hype? Reuven walks us through a couple of examples to let the code speak for itself.
______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Setting up a Linux Rails Development Environment

Jim Rutherford's picture

If you looking to give Rails a try on linux, checkout my tutorial on Installing Ruby on Rails with Lighttpd and MySQL on Fedora Core 4

Cheers!

indention in CGI code

Robby Russell's picture

Is the weird indenting in the CGI example intentional?

A few python pals looked at that and immediately thought it might be some Ruby-ism. I showed them an example like this to clear up the confusion:

nevermind, linuxjournal doesn't allow a pre tag so my indenting doesn't stay in the comment. I'd prefer not confuse anyone else. :-)

indents in ruby are 2 spaces

Anonymous's picture

indents in ruby are 2 spaces...if you want the community to like you.

Thanks

Eric Anderson's picture

Thanks for the quick intro, it's a good starting point for server-side Java developers. I'm looking forward to the Rails article.

One thing though: how about a look into the Ruby debugging environment. What tools/approaches do I use to debug complex server-side Ruby applications? I hope the answer is not "use print statements" ... effectively taking us back to the Dark Ages of programming. I like the idea of object-oriented scripting, but do not like the idea of _not_ having tools as powerful as say, the Eclipse or Netbeans debuggers for my work.

You can use Eclipse, for sure :o)

mpathy's picture

There is a very nice plugin for eclipse I use.

Use the Eclipse Update Manager with this URL:
http://rubyeclipse.sf.net/updatesite

There is a Test::Unit included.
Thats what you need (if I understood you right).

Try Ruby on Rails

michael's picture

RoR has a console for debugging purposes which allows you to directly interact with your development model.

Webcast
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers

Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.

Learn More

Sponsored by AMD

White Paper
Red Hat White Paper: Using an Open Source Framework to Catch the Bad Guy

Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6

Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.

Learn more about catching the bad guy in this free white paper.

Learn More

Sponsored by DLT Solutions