I’ve been hard at work on More Things Need To this weekend and have learned lots of things in the process. One of these things was a handy bit of Ruby that seemed worth sharing for other newcomers.
Recent Blog Posts
There are numerous awesome new features introduced in HTML5 and CSS3, but neither specification is finalized and browser support for them is still pretty unreliable. After getting a taste of what these new technologies can do, it can be hard to resist using them and to wait for better browser support. My position for a long time has been that, although it’s frustrating as a developer, it’s best to create things for the lowest common denominator and not use features that don’t have reliable support across browsers. But my thoughts on the subject have been changing recently.
No sooner than I wrote about how to control a JavaScript function’s context with the Prototype Function.bind(), jQuery 1.4 is released and one of its new tricks is $.proxy(), which we can use for exactly the same purpose.
Keeping your JavaScript code organized and readable can be a bit of a task. Since I started with jQuery, most of the JavaScript for my applications has just been inside a giant $(function() { }) block, and as the code grows longer and more complex, it becomes much harder to find the thing you’re looking for and edit it later. I was searching for a design pattern that would help me organize my code in a way such that I wouldn’t dread looking at my JavaScript files in the future. My solution came in the form of namespacing and building modules with function prototypes.
It’s been a while since I posted so I thought I’d do a general update. At the start of November I started a new position as a front end developer for Eventful, a site which maintains a listing of various local events. Of course this means that I’ve had much less time to work on JCWS projects, but it also means I’ve been gaining a truckload of valuable experience with things I haven’t done before.
Find content by tags
- actionmailer
- ajax
- applescript
- authentication
- best practice
- cakephp
- content management
- css
- css3
- eventful
- firefox
- frameworks
- gmail
- google chrome frame
- html5
- internet explorer
- iphone
- javascript
- jquery
- kalena bovell
- launch
- more things need to
- moxiemaster
- namespaces
- new features
- object oriented programming
- perceptes
- perl
- php
- pick an item
- poetry
- pragmatic programmers
- progressive enhancement
- prototype
- ruby
- ruby on rails
- security
- ssl
- twilight
- wow