hoodwink.d enhanced

Thu Sep 15



Build a hash from two arrays

keys = [:a, :b, :c, :d] values = [:one, :two, :three, :four] Hash[*keys.zip(values).flatten] # => {:a=>:one, :d=>:four, :b=>:two, :c=>:three}

Wrap instance variables in accessors without exposing them

class Image [:name, :path].each do |sym| attr_reader sym private sym end def initialize(name, path) @name, @path = name, path end # ... end

What happens when t approaches 0?

Andy Hunt ponders the implications of rapid (and I mean rapid) application development.
There are a number of additional UI enhancements that you can take advantage of in the ASP.NET ‘Atlas’ framework. For example:

  1. Coming soon
  2. Coming soon


Microsoft Atlas: Let the “embracing” begin

The new Atlas Ajax framework from Microsoft features a $() function, lifted wholesale from Prototype where it debuted in March with Rails 0.10.

I couldn’t find mention of its origin anywhere on the Atlas site. Fancy that! The Atlas team should take a cue from David Flanagan, author of O’Reilly’s JavaScript: The Definitive Guide, who politely asked if he could include $() in the next edition of his book.

Update Thomas Fuchs has more on the Scriptaculous/Prototype ripoff.


12:49 < madrobby> hmm. M$ put up a 17-page document on how to create a autocompleting textbox with their Atlas ajax-framework.
12:54 < madrobby> they have a "_loadIECompatLayer" function in AtlasCore.js
12:54 < madrobby> so they need extra functions to be compatible to their own products