-
Recent Posts
Building Backbone Plugins
Backbone apps are plagued with boilerplate code. Eliminate the cruft by building the add-ons and abstractions that you need.
Buy it now, before the price increases (again)!
Amazon affiliate
Recent Comments
Archives
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
Categories
- .NET
- Accessibility
- Agile
- AJAX
- Albacore
- Analysis and Design
- Android
- AntiPatterns
- AppController
- AppleScript
- Arduino
- Async
- Austin Code Camp
- AutoMocking
- Backbone
- Backbone.EventBinder
- Backbone.Memento
- Backbone.ModelBinding
- Backbone.Syphon
- Behavior Driven Development
- Books
- Books Reviews
- Bootstrap
- Branch-Per-Feature
- Branching Strategies
- Brownfield
- Build Tools
- Bundler
- Business
- C
- C#
- Capybara
- Certification
- ChaiJS
- Classy Inheritance
- Coaching
- Code Review
- Command Line
- CommonJS
- Community
- Compact Framework
- Composite Apps
- Consulting
- Continuous Improvement
- Continuous Integration
- CQRS
- Craftsmanship
- Cucumber
- Daily Standups
- Data Access
- Database
- Debugging
- Deployment
- Design
- Design Patterns
- DLR
- Documentation
- DOM
- Domain Driven Design
- DSL
- E-Books
- ECMAScript
- Education
- Ember
- Fluent NHibernate
- FNH.Contrib
- Functional
- Git
- Goals
- Growl
- HAML
- Handlebars
- Hardware
- Haskell
- HTML5
- IronRuby
- Jasmine
- jasmine-async
- Java
- Javascript
- JohnnyFive
- JQuery
- JSFiddle
- JSON
- Kaizen
- Kanban
- KendoUI
- Knockout
- Lambda Expressions
- Lean Systems
- Linux
- Logs
- LSSC
- LSSC10InfoQ
- MacRuby
- Management
- Marionette
- Math
- Messaging
- Metrics
- Mobile
- MochaJS
- Model-View-Controller
- Model-View-Presenter
- Monads
- MongoDB
- Mongoid
- Networking
- NHibernate
- Ninject
- NodeJS
- NPM
- Open Source
- OSX
- Performance
- Philosophy of Software
- PHP
- Podcast
- Pragmatism
- Presentations
- Principles and Patterns
- Product Reviews
- Productivity
- Prototypal Inheritance
- Prototype
- Pusher
- PushState
- Quality
- Rails
- Rake
- Re-Post
- Refactoring
- Resharper
- REST
- Retrospectives
- RhinoMocks
- Risk Management
- RSpec
- Ruby
- SASS
- Screencast
- Security
- Selenium
- Semantics
- SEO
- SignalR
- Sinatra
- Smoke Test
- Socket.IO
- Source Control
- Stack Trace
- Standardized Work
- Subversion
- Technical Debt
- Telerik
- Test Automation
- Testing
- Theory Of Constraints
- Thor
- Throughput
- Tools and Vendors
- Twitter Bootstrap
- Uncategorized
- Underscore
- Unit Testing
- User Experience
- Validation
- Vim
- Visual Studio
- Vlad
- WatchMeCode
- Web Sockets
- WinForms
- WinJS
- Workflow
- Xcode
Meta
Category Archives: Ruby
Debugging Cucumber Tests With Ruby-Debug
Today I ran into a scenario where I needed to step through some ruby code and examine the state of various objects in my rails app. I’ve used the ruby-debug gem a number of times to do exactly this. However, … Continue reading
Also posted in Cucumber, Debugging
5 Comments
Making Mongoid Play Nice With Backbone.js
Backbone has some great features that make it dirt-simple to integrate with a Rails back end. For example, the Backbone models have a .fetch(), .save() and .destroy() method on them. These methods make a call back to your server, based … Continue reading
Also posted in Backbone, Javascript, JSON, MongoDB, Mongoid, Rails
11 Comments
Partially Solving The Date Validation Deficiency Of Rails 3 And Mongoid 2 Models
A while back, I posted a question on stack overflow on how to properly validate a date input from a text field input, without throwing exceptions when the string provided is not a valid date. The core of the problem … Continue reading
Also posted in Mongoid, Rails
Leave a comment
Using ActiveSupport::Notifications and ActiveSupport::Concern To Create An Audit Trail
In my previous post, I outlined a scenario that needs to be audited for HIPAA compliance – a patient with a list of medications. Every time a medication is added, updated or deleted, an audit record has to be created … Continue reading
Also posted in Analysis and Design, Logs, Rails
2 Comments
How do you handle simple pub-sub, evented architecture in rails apps?
I’ve been asking this question in various forms, via twitter, for a few days now. I’ve received a number of answers from people and have spent some time talking with Jak Charlton about the patterns that I would have used … Continue reading
Also posted in Analysis and Design, AppController, Messaging, Principles and Patterns
14 Comments
A Couple Of Tips For Ruby Code Blocks
Ruby’s code blocks (a.k.a “lambdas” or anonymous functions in .net) are powerful little tools that get used everywhere, and for good reason. But, every now and then I run into a little trick or issue related to them. For example: … Continue reading
Sometimes It’s Better To Use A Ruby Hash Than Create A Custom Class
The Eloquent Ruby book talks about the use of hashes and arrays vs classes. One of the things it covers is how hashes and arrays are often used by experienced ruby developers in place of custom classes. Coming from a … Continue reading
Also posted in AntiPatterns, Model-View-Controller, Pragmatism, Principles and Patterns
6 Comments
Don’t Do Role-Based Authorization Checks; Do Activity-Based Checks
I’ve built a few dozen security mechanisms in my career. Unfortunately, I kept getting it wrong, hence the need to keep building them. Over the years, though, I learned a number of different ways that a security system can be … Continue reading
Also posted in .NET, Analysis and Design, AntiPatterns, C#, Model-View-Controller, Rails, Security
41 Comments
Mongoid: Polymorphic Find Or Create New On Embedded Document Collections
In the old v2.0.beta.20 version of Mongoid, I was able to call .find_or_create_by on an embedded document collection and pass a type as a second parameter to the method. This would allow me to create a document of a specific … Continue reading
Also posted in Mongoid
Leave a comment
Re-learning The Meaning of ! in Ruby Methods
Hugo Bonacci has been tweeting a lot about the Eloquent Ruby book, so I decided to pick up a copy. In spite in my year or two of working with Ruby, I still feel like a n00b most of the … Continue reading
Also posted in Community
6 Comments
