Submitted by Francesco Ferreri on Mon, 08/25/2008 - 16:52.
After several months programming with Ruby scripting language, and related libraries, I got quite used to the intensive use of iterators and blocks (closures) that give Ruby programs a particular coding flavour.
Submitted by Colin LeMahieu on Mon, 06/16/2008 - 16:33.
Most existing examples on how to do external calls contain a lot of English explanation which can distract people, like myself, who learn by example. This is intended to be a compilable, terse example of how to call in and out of C/C++.
Submitted by Patrick Ruckstuhl on Wed, 06/20/2007 - 19:36.
Since some time Eiffel supports a serialization method completely written in Eiffel. It directly supports serialization to a file or to memory. This example shows how to use this to serialize an arbitrary object structure to a string.
Submitted by Martin Seiler on Mon, 05/07/2007 - 16:26.
People who are used to other programming languages usually use some kind of rand, rnd or similar function to generate random numbers. This article shows how you can do it in Eiffel.
Generating a random number
The base library's RANDOM class is modeled as a sequence of random numbers.
Submitted by Patrick Ruckstuhl on Thu, 04/19/2007 - 17:55.
Sometimes in an application, some actions have to be repeatedly performed in a certain interval. This could for example be some cleanup of external data. To do this I wrote a small class that takes an agent and an interval. <eiffel> indexing description: "Execute an action every interval until stopped." author: "Patrick Ruckstuhl <patrick@tario.org>" date: "$Date$"
Submitted by Patrick Ruckstuhl on Tue, 04/03/2007 - 22:39.
On Unix/Linux a daemon is a program that runs in the background independent from the logged in user.
The way to achieve this is normally to directly fork after the execution and let the parent process exit. This results in the child process having lost its parent which leads to the init process automatically inheriting this process.