Stupid Blog Meme's

Posted by Christopher Smith Sat, 11 Oct 2008 08:39:00 GMT

Because I just do whatever Corey tells me to do, here is perhaps the greatest waste of my blog’s resources (and that is something). I present “Page 56 of the book nearest to you”:

The rules:

  • Grab the nearest book.
  • Open the book to page 56.
  • Find the fifth sentence.
  • Post the text of the next two to five sentences in your journal along with these instructions.
  • Don’t dig for your favorite book, the cool book, or the intellectual one: pick the CLOSEST.

And my entry:

“We’ve also provided a name field, which gives us a way to uniquely identify a particular shared variable without having to subclass SharedVar for each shared variable we need to create. To create a shared variable, we simply pass a unique name and initial value to the SharedVar constructor, and write the result to a space:

SharedVar myvar = new SharedVar("duke's counter", 0);
space.write(myvar, null, Lease.FOREVER);

“3.2 Shared Variables” from Chapter 3, “Building Blocks”, in Freeman, Hupfer & Arnold’s “JavaSpaces Principles, Patterns, and Practice”, laying amongst the junk on my desk for reasons long since forgotten.