I often come across projects that are built with a multitude of layers to the application. When asked why, I am often given the following response: “We wanted to have this application be more maintainable and flexible, so we put in layers to keep things separate and pluggable.” Somehow, the architectural goal of maintainability has [...]
No Fluff Just Stuff – Ruby and Rails, myths and half truths is a great article by Bruce Tate that debunks some of the FUD around Ruby and Rails. Here is a summary of his myth-busting:
1. Rails can be all things to all people.
2. Ruby on Rails has not been proven scalable.
3. Rails is just [...]
It can be difficult to track down Ruby on Rails ActionMailer issues. If you are in the development environment (i.e. not production), change the following setting in your config/environments/development.rb:
config.action_mailer.raise_delivery_errors = true
This will allow you to have errors raised for catching and display (or falling into the default error-trapping routines).
If you then see the error [...]
InfoQ is a new service by Floyd Marinescu that provides news feeds about all that is happening across Java, Ruby, .Net, Agile, and SOA (Think of TSS for multiple platforms). This is great for technical leads that have to deal with multiple technologies on their projects (like myself) or those that want to keep up [...]
I was on the hunt for a Rails cheatsheet and found a blog posting with links to quite a few cheatsheets, done by Dave Child. Others that I’ve found along the way:
Blaine Kendall’s Rails PDF Sheet (14 pages)
Scriptaculous PDF Sheet from Slash7
Rails Forms from Slash 7
Rails Migration PDF from Garrett Snider
Ruby Quick Ref from Zen [...]
sbecker has a great post with some of the most common domain relational patterns needed for Rails apps. Examples include CRM, e-commerce, roles-based access, mailing lists, surveys, content/blogs, and social networking.
I stumbled across a great resource for using regular expressions to validate different types of data. Here is a subset of the list that I found most useful:
EMAIL:
^[\w\-\+\&\*]+(?:\.[\w\-\+\&\*]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$
CREDIT CARD:
^((4\d{3})|(5[1-5]\d{2})|(6011))-?\d{4}-?\d{4}-?\d{4}|3[4,7]\d{13}$
MAC ADDRESS :
^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$
IP ADDRESS :
^\b((25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)\.){3}(25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)\b$
REASONABLE DOMAIN NAME:
^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$
For Ruby, you can use String::match method to determine if any results were [...]
This blog is focused on the discussion of software solutions, including Java, Rails, software architecture, and leadership. If you prefer to be notified via email rather than using an RSS reader, you can subscribe to our email notification service.
Recent Comments