Blog

A tester tribute to Ruby ecosystem (zagorski software tester)

On August 30, 2014, in Syndicated, by Association for Software Testing
0

 Four years ago, I saw my first lines of Ruby, written by Zeljko Filipin in interactive ruby shell:

require 'watir-webdriver'
b = Watir::Browser.new
b.goto 'bit.ly/watir-webdriver-demo'

What? Tester is under control of Firefox browser!?
Software testing is hard and challenging job. Ruby ecosystem is one thing that help testers in their daily job. In this post I will provide one proof of that fact. I will compare code for checking email written in Java and Ruby.

Tribute to java.com
Tribute to ruby-lang.org

Here is example of Java code (tribute to Vishvas Kumar), and here is my gist written in Ruby. Open those links in two tabs and compare them.

What do you think, which code is more maintainable?

 

Comments are closed.


Looking for something?

Use the form below to search the site:


Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!