JavaScript

Practical example of need for prototypal inheritance

Alex Sexton wrote a wonderful article about how to use inheritance pattern to manage large piece of code. His code also has a pratical need for prototypal inheritance for writing modular code.
creating standard jQuery plugin
Given below is code that does exactly what Alex’s code does.

Dragonfly: Image Handling For Champions

Dragonfly is a new(-ish!) ruby gem for handling images and other content in Ruby web apps (including Rails). “What – another one?!”.. I hear you exclaim.

prototypal inheritance in JavaScript

One of the key features of JavaScript language is its support for prototype method. This feature could be used bring inheritance in JavaScript.

Michael Fogus talks to RubyLearning’s Clojure Course Participants

On the eve of the first free, online “Clojure 101” course, Michael Kohl of RubyLearning caught up with Michael Fogus, author of the forthcoming book – The Joy of Clojure. In this interview, Michael Fogus talks to the Clojure 101 course participants on Clojure.

SimplyStored and CouchDB

Yesterday I gave a presentation about CouchDB and SimplyStored, our convenience Ruby library, at the Ruby User Group Berlin.

There is a recording of the presentation at ustream.tv.

Unobtrusive, yet explicit

A few weeks ago I started a new side project (a string-figure catalog, not yet ready for an audience, sadly), and I figured it would be a good opportunity to dabble in the new goodies in Rails 3. It’s been a fun experience, for the most part, but I’ll save my “wins and fails” for a separate post.

Ruby is NOT a Callable Oriented Language (It’s Object Oriented)

I recently ran across a presentation entitled Python vs. Ruby: A Battle to the Death. I didn’t consider it to be a particularly fair battle, and may well reply in more detail in a later post.

However, what struck me as most worthy of explanation was the presenter’s concern about the fact that Procs are not callable via parens.

Simplest jQuery slideshow code explanation

Jonathan Snook wrote a blog titled Simplest jQuery SlideShow . Checkout the demo page .

The full JavaScript code in its entirety is given below. If you understand this code then you don’t need to read rest of the article.

Unit Testing JavaScript using Qunit . See live result and test code.

If you are in a hurry then take a look at these two links and you are done.

How jQuery selects elements using Sizzle

Introduction

jQuery’s motto is to select something and do something with it. As jQuery users, we provide the selection criteria and then we get busy with doing something with the result. This is a good thing. jQuery provides extermely simple API for selecting elements. If you are selecting ids then just prefix the name with ’#’. If you are selecting a class then prefix it with ’.’.

Syndicate content