The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Free e-book: Learn Ruby The Hard Way
Thanks in part to Fog Creek Software’s generous parental leave policy, I was able to translate Zed Shaw’s Learn Python The Hard Way to Ruby and give it away for free. Check out it: Learn Ruby The Hard Way
SMS Messages and Phone Calls with Twilio (Episode 104 from the SD Ruby podcast)
Brian Levine shows how easy it is to add phone services to your application using Twilio. Twilio wraps powerful telecom infrastructure with a simple REST API and offers pay-as-you-go pricing with cloud scalability. Watch episode.
Rails 3 Asset Pipeline & Google Closure
Rails 3.1.0 is on the horizon and Asset Pipeline is the king of the show. A hands on look at some of the internals + example of extending the Asset Pipeline to support Google’s Closure library.
gem install sub_diff
Apply regular expression replacements to strings while presenting the result in a “diff” like format: https://github.com/shuber/sub_diff
Technical Debt
The Ruby Rogues discussed Technical Debt, where it comes from, how to recognize it, and how to avoid it. Our panel included James Edward Gray II, Aaron Patterson, Josh Susser, and Charles Max Wood
An AngelList-like (but much crappier) project, now open sourced!
Here’s the repo (please read the project readme): https://github.com/fredwu/angel_nest [more inside]
Thoughts on Mocking
A few months ago I wrote a two part article about my thoughts about using mock objects for testing Ruby code. You can now find both part 1 and part 2 over on the RBP blog. When I originally released these to the Practicing Ruby newsletter subscribers, they generated a very interesting conversation. I’m hoping to see more of the same now that they’re publicly available.
Vendor - Bringing Bundler to iOS?
Using and sharing iOS libraries is tragically difficult given the maturity of the framework, the number of active developers, and the size of the open source community. Compare with Rails which has RubyGems and Bundler, and you have to ask: Why is there no equivalent solution for iOS? In our latest post, we discuss the feasibility of a new approach to iOS dependency management. We would love to hear your feedback.
Rails Misapprehensions: The Dependency Injection Pattern
A discussion about the Dependency Injection pattern in Ruby/Rails, and the role of components in Rails.
Model Associations with ActiveRecord
If you’re trying to learn Ruby on Rails, here’s a quick audio explanation of model associations with ActiveRecord.
Alf 0.10.0 is out! Relational Algebra in Shell & Ruby.
I just launched Alf 0.10.0 which comes with lots of new features and enhancements and a fresh new web site with documentation and examples. Nice 15/08 to all!
Jetting Rubyist: Meeting fellow developers and attenting groups on the JetBlue BluePass for 3 months
Between August 22nd and November 22nd I’ll be flying around on JetBlue’s BluePass, catching as many Ruby meetups as possible (including RubyConf), and co-working with as many other Ruby developers as possible. [more inside]
Performance Testing Rails Applications — How To?
Gonçalo Silva talks about the built-in performance testing tools in Rails in this new article “Performance Testing Rails Applications — How To?” on RubyLearning.
Mass assignment security shouldn't happen in the model
I think we should be filtering parameters in the controller, not the model. Here’s why.
Understanding Include and Extend in Ruby
Simple post explain the Extend and Include in Ruby.
A keyboard shortcut to run tests with watchr
When developing in rails I use watchr to run the tests each time a file is saved, but lots of times I find my self adding a whitespace or a newline and saving just to trigger watchr and run the tests. [more inside]
Leading the Open Source Ruby Community
New on the Collective Idea blog: a look into leadership and how it ties in to the open source community. It’s more than superiority; it is social influence and deeply impacts how we communicate and work on projects.
Acceptance tests are slow. How do we get them fast?
Acceptance testing, whatever your preferred flavor, e.g. Cucumber or Coulda, are super-helpful. But once you have a large enough suite of tests, they can sometimes run upwards of 10 minutes! [more inside]
Video: How Ruby Koans Works
Are you looking at learning Ruby better? Here’s a quick video showing how Ruby Koans works.
Simple Ruby Version Management: rbenv
Simple ruby version manager makes us easily switches between multiple versions of Ruby. It’s simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.
Metior 0.2.0 – A source code history analyzer and report generator
Metior 0.2.0 includes a much smarter API, the ability to generate HTML reports (based on Mustache templates) and overall performance improvements through better caching and lazy loading. Additionally, a lots of bugs have been fixed. [more inside]
Cramp: Real-time web application framework in Ruby
Cramp [http://cramp.in] is a fully asynchronous real-time web application framework in Ruby, with in built support for WebSockets, Server-Sent Events, Streaming APIs and a lot more.
How do I test? Spork and Emacs experience
How do I test? Spork and Emacs experience Article about using Spork drb server with Rails application, and smart test running directly from Emacs. Save your time and start use Spork!
Interview with Josh Berkus
I’ve posted the second half of my interview with Josh Berkus from the PostgreSQL Core Team. In this episode, we talked about the interesting parts of and merits of the various NoSQL/non-relational databases.
Tips: Multiple pagination with will_paginate
I just wrote a simple tips about will_paginate Multiple pagination with will_paginate. A simple tip for paginate two or more list on the same page.