-
Recent Posts
Recent Comments
- GoDaddy.com on Domains available
- Chad Myers on Domains available
- Adam Rackis on Domains available
- Gleb on Domains available
- Joey on Sweet, sweet vindication
Archives
- February 2012
- December 2011
- October 2011
- July 2011
- June 2011
- May 2011
- March 2011
- February 2011
- January 2011
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- February 2010
- January 2010
- November 2009
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
Categories
- .NET
- 1998
- ad nauseum
- Advice
- Agile
- Agile Arguments
- ALT.NET
- altdotnet
- ASP.NET
- ASP.NET MVC
- ATX Code Lunch
- Austin
- Code Examples
- CoDe Magazine
- Code Specifications
- code-review
- CodeCamp
- CodingDojo
- composition
- Consulting
- Controllerless
- Conventions
- cool
- cool-stuff-in-fubu
- Database
- datetime
- Deployment
- Design
- DimeCasts
- Domain
- Dovetail
- DSL
- Enforcement
- Expression Trees
- Extension Methods
- Fiesta
- Fluent API
- Fluent NHibernate
- fubucore
- FubuMVC
- GenericFun
- Guidance
- Hiring
- Humor
- internationalization
- IoC
- jQuery
- Kaizenconf
- leadership
- LINQ
- LiveMeeting
- LosTechies
- Mangement
- Mean
- Misc
- Mocks
- MVC
- MVP
- NHibernate
- OffTopic
- Open source
- ORM
- Oxite
- parsing
- Patterns
- PDoTDD
- Plan
- Premature optimization
- Principles
- professionalism
- Programming
- Proof
- PTOM
- Quality
- quiz
- QUnit
- Rails
- rant
- regex
- Repositories
- ReSharper
- RSS
- Ruby
- Sad
- sanctus bovis
- Screencast
- Self-examination
- ShadeTree
- SQL is evil
- Static Reflection
- StructureMap
- TDD
- Tips
- Twitter die die die
- Uncategorized
- Unmaintainability
- VAN
- Video
- WCF
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
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
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
Comments Off
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
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
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
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
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
Comments Off
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
