![]() |
|
ruby
python 1
rails
spidering
python 2
I have put together a nice little demonstration of the Bauble concept. You may recall that I first wrote about it here . Baubles are a simple component scheme for Ruby, good for when you want a component, but don’t need something as heavy as a gem. orbit.zip contains all the files for this demonstration. I suggest you download and unpack it.
Baubles in Orbit
Fiber? Fibers are a new and a note worthy addition to Ruby that appeared with 1.9. They are essentially code blocks that can be paused and resumed.
An Introduction To Fibers
Better Ruby Idioms
I don’t blame the author of the guide; the idioms presented are roughly the same that have been used since the early days of Rails. However, looking at them brought back memories of my early days using Rails, when the code made me feel as though Ruby was full of magic incantations and ceremony to accomplish relatively simple things. Here’s an example: Carl and I have been working on the plugins system over the past few days.
JRuby 1.1 Released
applications exceeding Ruby 1.8.6 performance; we are even beating Ruby 1.9 in some microbenchmarks. Please try your applications against JRuby 1.1 and during the last nine months. There have been more and more reports of
Over the next few days, I’m going to add a Memprof.dump_all method to dump out the entire ruby heap. This full dump will contain complete knowledge of the ruby object graph (what objects point to other objects), and its json format will allow for easy analysis. I’m envisioning a set of post-processing tools that can find leaks, calculate object memory usage, and generate various visualizations of memory consumption and object hierarchies.
What is a ruby object? (introducing Memprof.dump)
Infinite Ranges in Ruby
First let’s define an Infinity constant (since Ruby does not come with one): Now let’s see if we can create a Range Object with it: Posted on October 2, 2009 by banisterfiend Okay, no errors. Now let’s try to use it:
I have participated heavily during the last 2 weeks in answering Ruby tagged questions on stackoverflow . That took place mainly after Ryan Bates tweet wishing to see more Ruby developers on stackoverflow. Since then I have enjoyed reading various kinds of questions that range in level from basic to professional ones and which cover various stuff like normal questions, tricks, meta programming, best practices and language specific features. So, I’m announcing in this post an endless series called “Stackoverflow cool Ruby questions” which will target cool Ruby questions on stackoverflow. I strongly recommend that you visit Stackoverflow on daily basis and try to participate if you have the time, but if you don’t, then I hope that you will enjoy this educational series. There are currently more than 4,640 tagged Ruby questions, I’ll try to mix old + recent questions.
StackOverflow cool Ruby questions
We've been notified about this issue and we'll take a look at it shortly.
eval() Isn't Quite Pure Evil
Avi Bryant on Trendly, Ruby, Smalltalk and Javascript
The belief has always been, anyway that there was a lot more Smalltalk out there than anyone knew. Of course, I have no way of knowing whether this is true, but the only indication that I have is simply that there is all of this continued commercial activity around Smalltalk and so, presumably, it's doing OK. My position has always been to some degree that the rise of Ruby, for example, is Smalltalk winning. Yes, there is lots of stuff that the Ruby community hasn't taken from Smalltalk, that I wish they would, but they will increasingly, over time and Rubinius is a great example of this, of explicitly saying there was a lot of good stuff in Smalltalk-80 that we could bring to Ruby and I feel such nostalgia looking through the Rubinius source because all the names are right - it's called MethodContext, it's called MethodDictionary. I'm sure that will be true for any Smalltalker.
I've been reading books on Ruby. I want to know the language really well. I'm that kind of programmer. I love to know the exact details of a language as much as possible. By far the thing I like least about the Ruby language at this point is that it feels like two languages, Ruby 1.8.x and Ruby 1.9.x.
Multiple Programming Language Implementations - This Annoys Me t
JavaScript Eye for the Ruby Guy
This article is an introduction to JavaScript for those who already know Ruby. Its focus is mostly on the differences between the two. JavaScript and Ruby are very similar in many respects, but they’re also very different in some areas.
Though the Ruby Best Practices book covers Ruby 1.9, it is decidedly not a “Ruby 1.9 Best Practices” book. The reason for this, of course, is that common idioms for Ruby 1.9 haven’t evolved yet. Let’s work together to change that. Every week until Ruby 1.9.2 comes out, I’ll be coming up with short, manageable bits of Ruby 1.9 code for discussion, as part of a “Ruby 1.9 Style” series.
Ruby Best Practices - Should I Tap that Hash? (Ruby 1.9 Style)
Really useful anamorphisms in Ruby Really simple anamorphisms in Ruby introduced a very simple unfold . Its chief characteristics were that it generated an Array from a value of some sort, and it did so by applying an incrementor block to its seed recursively until it generated nil. For example: 10.class.unfold(&:superclass)
raganwald
a tornado of razorblades
Perhaps the app owner has renamed it, or you mistyped the URL. There is no app configured at that hostname.
Programming Ruby: The Pragmatic Programmer's Guide
Tighter Ruby Methods with Functional-style Pattern Matching, Usi
The Ruby Language @ Programming Ruby
RE: Ten Things a Java Programmer Should Know About Ruby



