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.
DataMapper 2 Status and Roadmap
Just wrote a quick blog post about DataMapper 2 status and roadmap.
The Simplest Possible Rails Decorator Implementation That Just Might Work
Interested in decorators/presenters in a Rails app? [more inside]
Request for feedback: Models, Roles, Decorations, and Interactions
I’m in the very early stages of trying to find a reasonable balance between Rails concerns and the DCI paradigm. I plan to work on an implementation to test the ideas myself, but I’d appreciate your feedback on the basic ideas before I do. Direct and blunt criticism, as well as any questions are welcome!
Code With Clarity
My colleague at MojoTech, David Leal, just published an exploration of using software contracts in Ruby. Check out Code with Clarity and weigh in with any comments or suggestions.
Baruco 2013 officially announced: 14 & 15 September 2013.
Checkout our new website for speakers and sponsors information.
Android applications with Ruby
This week’s Crowd Interactive’s blog post: Android applications with Ruby written by Paul Estrada (@paulemtz).
New gem: tries
I am always watching out for chunks of code that I seem to reuse in every new project and the “tries” pattern is definitely one of them. So finally I found some time to wrap it up into a gem and even come up with a nifty tagline: Solidify your code and retry on petty exceptions
King of Nothing, the DCI paradigm is a scam
Linkbait title, I know. But I feel like to avoid more design cargo culting, we must balance the hype of DCI with some solid critical review. Here are some specific suggestions for possibly convincing evidence that DCI can live up to its promises.
Here be Wagons!
Wagons are extensions to your application train running on Rails. Or, simply put, a plugin framework that allows you to extend the behavior of your specific Rails application in various ways. Have a look at this introduction or go directly to the source.
DCI, Concerns and Readable Code
I just published a blog post about DCI, Concerns and Readable Code by Giles Bowkett. It explores some recent discussion about ActiveSupport::Concern vs DCI vs class-based composition in Rails models.
Mocking in RubyMotion: OCMock, motion-stump
Using OCMock in a RubyMotion project works pretty well, but motion-stump provides a compelling alternative.
Fixing multithreading for Rails in development mode
Development mode doesn’t work with multithreading in Rails. It’s especially critical if you use JRuby. So, here is the recipe to fix Rails multithreading in development mode.
Setup multiple servers easily with Chef
Let’s dive deep into the features the Chef gem has to offer in this article about setting up multiple server easily .
Delicious Soap
I just released Savon 2.0. Hope you like it.
Magma Rails 2013: Keynotes & CFP Dates!
We just launched a new edition of Magmazine [more inside]
Chubby Models Are Still Fat With Concerns. DCI Focuses On How Things Work Together
Read about how ActiveSupport::Concern won’t reveal how your system works or why any of those concerns exist where they do. DCI is an approach to help you capture how objects collaborate and not just separate methods into modules.
Deploying New Image Formats on the Web
If we really want to make an impact on web performance, then image formats is the place to do it. There is absolutely no reason why we shouldn’t have dozens of specialized formats, each tailored for a specific case and type of image. But before we get there, we need to iron out some kinks…
Netzke 0.8 is out - revised API, much improved docs, more fun
Netzke - a library for building client-server GUI components with Sencha Ext JS and Ruby - was updated to version 0.8. It brings a major, backward-incompatible update to the API (making it more intuitive and fun to use), more thorough docs, and cleaner code. The project website, a few tutorials, and a couple of satellite apps have been updated, too - so it’s even easier to start writing your own complex backend apps.
DCI: The King of the Open/Closed Principle
In DCI: The King of the Open/Closed Principle, I look at how DCI guides developers towards following the open/closed principle. OCP is baked into the core of DCI!
Just released Juno 0.3.0
I just released Juno 0.3.0. Juno provides a standard interface for interacting with various kinds of key/value stores. Juno is based on Moneta and replaces it with a mostly compatible interface but supports much more features and backends.
Rails Tips part 2
Just blogged with some Rails tips which may or may not make your life easier Rails Tips part 2.
Ruby, Smalltalk and Class Variables
Last week I decided to look into the details of how Ruby implements class variables, and ended up learning all about Smalltalk instead :) [more inside]
OAuth too big? Try SSL Authentication.
OAuth is great… sometimes a little too great. When the bells and whistles of OAuth aren’t worth the hassle of building your own provider, consider SSL Authentication. Collective Idea outlines the approach in their latest blog post.
Complete lineup for day 2 of La Conf Paris 2013 announced
With an emphasis on practical demonstrations instead of long technical talks, Jon Leighton, Geoffrey Grosenbach, Katrina Owen, Jeremy McAnally, Avdi Grimm, Amy Hoy, Randall Thomas and Tammer Saleh will be showing us what they’re made of, live on the 10th May 2013 in Paris. [more inside]