-
Recent Posts
Recent Comments
Archives
Categories
- Analytics
- AppHarbor
- ASP.NET MVC
- ASP.NET Web API
- AutoMapper
- Best Practices
- Book Review
- Books
- Comments
- Communication
- Continuous Improvement
- Continuous Integration
- CSS
- Deployment
- Design
- Design Patterns
- Design Principles
- Development
- DRY
- Favorites
- Fluent NHibernate
- For Fun
- git
- IoC
- IowaCodeCamp
- JavaScript
- jQuery
- Legacy Code
- LINQ
- LosTechies
- Members
- Moq
- NUnit
- Open Source
- Personal
- Project Management
- Rant
- Reading Code
- RhinoMocks
- SEO
- SOLID
- Spark
- StructureMap
- Testing
- Uncategorized
Meta
Category Archives: JavaScript
$(function(){…}) vs (function($){…})($) or DOMReady vs The Module Pattern
This was originally a StackOverflow question. I’m re-posting here because I think the question is fairly common, and I like the answer that I provided. Why define anonymous function and pass it jQuery as the argument? This is the original … Continue reading
Backbone.Syphon: Serialize Form Inputs To JavaScript Objects
Working with form elements in a Backbone view can become very tedious very quickly. You will either end up writing a lot of repetitive code to read values from the form, or end up using a key-value-observer or data-binding solution … Continue reading
Workflow In Backbone Apps: Triggering View Events From DOM Events
In my previous blog post, I talked about modeling an explicit workflow in JavaScript and Backbone application. The last code sample I showed had the implementation of the workflow object itself, but omitted all of the details of the views … Continue reading
Modeling Explicit Workflow With Code, In JavaScript And Backbone Apps
A long time ago, in what seems to be a previous life at this point, I wrote a small blog post about modeling and creating an explicit return value from a dialog form in a Windows application. Fast forward a … Continue reading
View Helpers For Underscore Templates
Underscore’s template engine lets you run any arbitrary JavaScript code that you want, within a template. You could write an entire JavaScript application within an underscore template if you want. But this is a really bad idea. Templates should be … Continue reading
Executing A Project-Specific Node/NPM Package A-la “bundle exec”
It’s no secret that I love NodeJS, though I really haven’t blogged about it much (if at all). Frankly, I think Node and NPM are going to be eating Ruby, RubyGems and Bundler’s $25,000 lunch – at least on OSX. … Continue reading
Decoupling Backbone Apps From WebSockets
I’ve been doing a lot of work with web sockets lately, in my Backbone applications. And I’ve fallen in to a pattern that I really like, where my Backbone application doesn’t actually know anything about web sockets. All it knows … Continue reading
Managing A Modal Dialog With Backbone And Marionette
My current client project is using Twitter Bootstrap, and I have to say I’m loving it. It provides a simple way to get started with common layout and design elements, and includes a handful of UI widgets and features that … Continue reading
ClassyObjects: A JavaScript Class-y Inheritance Example
I recently released a screencast that covers JavaScript Objects & Prototypes on my WatchMeCode site. In this screencast, I go through all of the basics of working with objects in JavaScript, including prototypal inheritance. Toward the end of the video, … Continue reading
JavaScript Performance: Pre-Compiling And Caching HTML Templates
If you’re using HTML templates with a JavaScript application, you need to be caching the template’s raw text and/or pre-compiled version of the template. All of this spawned from a fun thread of discussion on a StackOverflow question. DOM Selection … Continue reading
