Writing an API Wrapper in Ruby with TDD

January 29, 2012  |  Wordpress  |  , ,  |  No Comments

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. Our Goal “Flow is essential: write the tests, run them and see them fail, then write the minimal implementation code to make them pass....

Read More

Writing an API Wrapper in Ruby with TDD

January 29, 2012  |  Wordpress  |  , ,  |  No Comments

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. Our Goal “Flow is essential: write the tests, run them and see them fail, then write the minimal implementation code to make them pass....

Read More

24 Extremely Useful Ruby Gems for Web Development

January 26, 2012  |  Wordpress  |  , , , ,  |  No Comments

One of the nicer things about developing on the Ruby platform is the sheer amount of meticulously categorized, highly reusable code wrapped up as aptly named ‘gems’. I’m sure you’ve heard of popular frameworks like Sinatra or the super popular Rails but you’re missing an entire spectrum of gems that handle issues at a much lower level. Start using these and watch your productivity shoot through the roof! A Quick Note I’m well aware that some of the gems listed here have Rails, or parts of Rails, as a dependency. That doesn’t mean that they are any less useful or need to...

Read More

Meet Crockford’s JSDev

January 25, 2012  |  Wordpress  |  , ,  |  No Comments

Recently, Douglas Crockford released a сlеаn tool thаt mаkеѕ thе process οf developing аnd testing уουr JavaScript a bit simpler. Interested іn learning more? Watch now’s qυісk tip tο find out!


Watch thе Screencast


Shοw Link

  • Douglas Crockford’s Google+ Post
  • JSDev | Github
  • Mаrkеd blocks, useful?
  • Gist οf test_code script I mаdе іn thе screencast

Wіll уου υѕе JSDev?

I’m curious; іѕ thіѕ a touch thаt уου’ll υѕе іn уουr daily coding? I’m still nοt sure, myself. Lеt υѕ hear уουr thουghtѕ іn thе observations!



Nettuts+

.htaccess Files for the Rest of Us

January 24, 2012  |  Wordpress  |  , ,  |  No Comments

.htaccess files are used to configure Apache, as well a range of other web servers. Despite the .htaccess file type extension, they are simply text files that can be edited using any text-editor. In this article, we’ll review what they are, and how you can use them in your projects. Please note that .htaccess files don't work on Windows-based systems, although they can be edited and uploaded to a compatible web server, and on Linux-based systems they are hidden by default. In order to work with htaccess files locally, to see how they work...

Read More