class Array
def apply
collect! { |number| yield number }
end
end
a=[1,2,3]
a.apply { |i| i * i }
p a.to_s
The accuracy of metadata is inversely proportional to the square of the distance between the data and the metadata.
Thou shalt have no other gods before Me. Thou shalt not make unto thee a graven image, nor any manner of likeness, of any thing that is in heaven above.
To paraphrase the Matrix, XML guys don't even see the angle brackets anymore
they just see blonde, brunette, redhead
class Array
def apply
each_index { |i| self.[]=(i, yield(self.[](i))) }
end
end
a=[1,2,3]
a.apply { |i| i*i }
p a.to_s
Need to connect any service to another service on the Web (or anywhere else)? Trying to mash together data? Building supply chains? There is generally no need to ever ask anyone to stand up a new web service. Pull everything you need via its RSS feed. Some software developers will disagree with this and say there are better methods, but to this I point out: 1) RSS is robust enough that it's all you'll ever need nine times out of ten and 2) it's what you're going to offered automatically anyway, take it and get something done.
RSS creates the Web 2.0 information ecosystem by enabling interconnectedness, network effects, emergent behavior, and much more as well. And RSS doesn't demand control of the other end of the conversation. This is a big enabler all by itself and is a classic Web 2.0 force. By letting consumers of RSS use any tool or service they want on their side, barriers are eliminated and connectivity is encouraged.
about a triangular relationship - producer, consumer and directory.