jingweno — 7 posts
PoEAA on Rails amazon.com
The book Patterns of Enterprise Application Architecture (PoEAA) laid the blueprints for Rails’ architecture. However, as applications growing more and more complex, developers are starting to realize these default architectural patterns come with Rails may not scale very well. In the post PoEAA on Rails, I walk you through some enterprise patterns from the same book that Rails’ architecture heavily base upon, and provide suggestions on scaling your Rails codebase.
http://owenou.com/2011/09/24/poeaa-on-rails.html
http://owenou.com/2011/09/24/poeaa-on-rails.html
Testing REST web services has never been easy. It requires a running web server, multiple threads, network conection and complex transaction management.
Ideally, web service test will have the following characteristics:
1. The experience of testing web service API is similar to that of testing a ActiveRecord model
2. Start up and shut down the web server for the purpose of running REST web services
3. Rollback test data after each test
4. Control fixture creation for REST web services
5. All tests are automatic
In this article, I demonstrate solutions to each of those mentioned by using ActiveResource and dRuby.
http://owenou.com/2011/07/20/testing-rest-web-services-with-rails.html.
Ideally, web service test will have the following characteristics:
1. The experience of testing web service API is similar to that of testing a ActiveRecord model
2. Start up and shut down the web server for the purpose of running REST web services
3. Rollback test data after each test
4. Control fixture creation for REST web services
5. All tests are automatic
In this article, I demonstrate solutions to each of those mentioned by using ActiveResource and dRuby.
http://owenou.com/2011/07/20/testing-rest-web-services-with-rails.html.
Agile is an adjective, not a noun! owenou.com
There’s a growing tendency to treat the word “Agile” as a noun. This post discusses what an agile software developer should do: http://owenou.com/2011/02/07/agile-is-an-adjective-not-a-noun.html.
The jekyll_and_hyde gem is a HTML presentation generator that generates a basic Jekyll scaffold with Slippy hooking up. This screencast(http://vimeo.com/jingwenowenou/cook-up-presentations-with-jekyllandhyde) walks you through the ideas behind jekyll_and_hyde and how to create a presentation and then publish it to GitHub Pages. The slide is available at htttp://owenou.com/jekyll_and_hyde_demo.
jekyll_and_hyde is a HTML presentation generator that generates a basic Jekyll scaffold with Slippy hooking up. Combining Jekyll and Slippy can provide a powerful yet simple solution to create presentations: use the jekyll_and_hyde gem to generate a Jekyll template with Slippy properly integrated; write slides with Makrdown or Textile; publish slides by pushing it to a Git repository, present slides in a browser.
Project page: https://github.com/jingweno/jekyll_and_hyde - Demo: http://owenou.com/jekyll_and_hyde_demo
Project page: https://github.com/jingweno/jekyll_and_hyde - Demo: http://owenou.com/jekyll_and_hyde_demo
Loading Path Gotchas in Rails 3 owenou.com
The algorithm of load path inferring in Rails 3 is a bit weird when class caching is turned off. Here is one gotchas http://owenou.com/2011/01/20/loading-path-gotchas-in-rails3.html.
