Approximity blog home
794 to 803 of 900 articles

Ruby-talk at BMW   25 Sep 04
[print link all ]
Enjoy the slides of our Ruby-talk presented to BMW.

German English

Sony details PlayStation Portable's chips   25 Sep 04
[print link all ]
(Source: The Register)

The PSP chipset comprises a number of components: the CPU, a media processor, a 3D graphics engine, a security processor and a power manager. The PSP’s MIPS R4000-based CPU will run at up to 333MHz, Sony chip designer Masanobu Okabe revealed at the Hot Chips conference in Stanford University, California. Its frontside bus runs at up to 166MHz, with both frequencies controlled by processor load. It contains a vector processing engine. link

Test First, by Intention   25 Sep 04
[print link all ]
(Source: rubycentral) A code and culture translation from the original Smalltalk to Ruby.

Original by Ronald Jeffries, translation by Aleksi Niemela and Dave Thomas. www.rubycentral.com/articles/pink/index.html

ANN: Lafcadio 0.4.0   25 Sep 04
[print link all ]
Lafcadio is an object-relational mapping layer for Ruby and MySQL. It lets you treat database rows like first-class Ruby objects, minimizing the amount of time you have to spend thinking about MySQL vagaries so you can spend more time thinking about your program’s logic.

Its features include:

  • A test-centric design that allows you extensively unit test any program that runs on top of Lafcadio. It comes with a MockObjectStore, which mimics the database and allows you to test database interactions without all the annoying setup code of a real database-driven test.
  • A block-driven querying language that will cover 99% of the ad-hoc queries you have to do. These queries look like: child_users = object_store.getUsers { |user| user.age.lt( 18 ) }

These queries can be run against the MockObjectStore, meaning they can be unit-tested.

  • In-Ruby triggers that can be written per domain class. These triggers can be tested, too!
  • Lafcadio makes very few assumptions of how your database was setup, and comes complete with a lot of hooks to allow you to fit your pre-existing database. Because programming’s a messy job, and we’re always cleaning up after somebody’s mistakes (even if they were our own).

Lafcadio is production-ready and runs a number of websites, including Rhizome.org, which more than 3 million hits a month.

link

Using the right hammer ..   25 Sep 04
[print link all ]
(Source: Robert Martin (UncleBob) in the pragprog-list) As a contractor you must do the best job you can for your client. This includes picking the best language for the situation. I agree that there are situations in which Ruby might be the best technical solution, but the worst political solution. In that case, you cannot use Ruby — you must use a technically inferior, but politically preferable language. There are other situations — more and more of them — in which Ruby is politically acceptable, and technically superior.

YAPV: yet another pickaxe version   25 Sep 04
[print link all ]
phrogz.net/ProgrammingRuby/ is ‘done’. Enjoy!

RubyGems, the apt-get for ruby   25 Sep 04
[print link all ]

Why do I love Debian? Coz of the package management system. Now Ruby has the same nice feature, called RubyGems

Install:

ruby install.rb
See what is available:
gem --remote --list
Search for the string Doom in descriptions:
gem --remote --search Doom
Install progressbar:
gem --remote --install progressbar

Now relax, have a good milkshake in the sun. A big big thanks to the developers: Rich Kilmer, Chad Fowler, David Black, Paul Brannan, Jim Weirch, Curt Hibbs, Gavin Sinclair, etc.

A Little Ruby, A Lot of Objects   25 Sep 04
[print link all ]
This is a draft book titled A Little Ruby, A Lot of Objects. It’s in the style of Friedman and Felleisen’s wonderful The Little Lisper, but on a different topic.

Welcome to my little book. In it, my goal is to teach you a way to think about computation, to show you how far you can take a simple idea: that all computation consists of sending messages to objects. Object-oriented programming is no longer unusual, but taking it to the extreme - making everything an object - is still supported by only a few programming languages.

Can I justify this book in practical terms? Will reading it make you a better programmer, even if you never use "call with current continuation" or indulge in "metaclass hackery"? I think it might, but perhaps only if you’re the sort of person who would read this sort of book even if it had no practical value.

The real reason for reading this book is that the ideas in it are neat. There’s an intellectual heritage here, a history of people building idea upon idea. It’s an academic heritage, but not in the fussy sense. It’s more a joyous heritage of tinkerers, of people buttonholing their friends and saying, "You know, if I take that and think about it like this, look what I can do!"

link

Can You Learn YAML in Five Minutes?   25 Sep 04
[print link all ]

Source: _why, yaml.freepan.org) YAML is extremely simple to learn. The basics are extraordinarily simple. You may even find that you have unintentionally used YAML syntax when building lists or simple file formats.

It also helps if you have experience with any agile language (such as Ruby, Python, Perl or PHP). YAML was designed to suit these languages well and borrows a few basic ideas from them.

And look at the clock before you start. Jot the time down and we'll see how fast you are. [http://yaml.freepan.org/index.cgi?YamlInFiveMinutes]

ObjectGraph: a Ruby class inheritance hierarchy graph   25 Sep 04
[print link all ]
(Source: Mehr, Assaph, ruby-ML) A simple script that generates a graph of the ruby class hierarchy. The script relies on graphviz for generation of the PNG and HTML map files. Take a look at the basic Ruby class hierarchy on the project web site: link

 

powered by RubLog
794 to 803 of 900 articles Syndicate: full/short