Recent Posts

banner image

Writing an API Wrapper in Ruby with TDD

[vc_row][vc_column width="1/1"][vc_column_text][templatera id="4031"][/vc_column][/vc_row][vc_row][vc_column_text]Sooner or later, all developers are required to interact with an API. The most difficult part is always related to reliably testing the code we write, and, as we want to make sure that everything works properly, we continuosly run code that queries the API itself. This process is slow and inefficient, as we can experience network issues and data inconsistencies (the API results may change). Let's review how we can avoid all of this effort with Ruby.
Flow is essential: write the tests, run them and see them fail, then write the minimal implementation code to make them pass. Once they all do, refactor if needed.
[/vc_column_text][/vc_row]
Writing an API Wrapper in Ruby with TDD Writing an API Wrapper in Ruby with TDD Reviewed by Crisher Entertainment on February 03, 2012 Rating: 5

No comments:

Home Ads

Powered by Blogger.