Ruby in the middle of .NET world

3 Oct

We work with .NET all day long and use all .NET and Microsoft stuff like TFS, C#, WPF, ASP.NET, SQL Server. That is pretty cool, but also there are some nice non-Microsft stuff that are really awesome.

For example, this sprint I have used Ruby to automate a task related to a story that I was working. Long story short I had to copy values from a spreadsheet to a sql query, creating calls to procedures with the appropriate values.

I started copying the values manually, but after almost 1 hour I had done only a small part and every moment was even more boring than the last. So driven by my lazyness I decided automate it and ruby was perfect for it! Perfect, just because I really like it. #noflamewars

Then I created the GroupRolesParser class to parse values from the spreadsheet to a text file and the main.rb runs it passing the proper values:

This is a sample of the generated output file, the whole file has 1233 lines.

RoleOutput

So, due to my laziness of doing repeated tasks, I saved some time and built a nice tool in ruby.

ruby_lazy_yeah

Advertisements

One Response to “Ruby in the middle of .NET world”

  1. OberdanF October 3, 2013 at 8:21 pm #

    That’s very cool, Max!

    I think it’s nice when you automate your work and learn at the same time! 😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: