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 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 Martin Seiler on Thu, 04/05/2007 - 16:08.
Introduction
For a beginner the different compilation modes of EiffelStudio can be confusing and I've heard people mention that they don't want to use Eiffel because it's runtime execution is considered too slow. The fact of the matter is, it is not slow! It is only slow when using all or the most aggressive contracts in "workbench" mode, which is by no means the result of an optimized final compilation. Such aggressive checking is sometimes what is needed when developing a new project, and sometime you can throttle back on such aggression. This article explains the various compilation modes and their pros and cons. The results will demonstrate that Eiffel is just as fast as C or C++.
Submitted by Julian Tschannen on Mon, 02/26/2007 - 22:21.
Most of the examples and tutorials you will find here come with an archive containing the source code and the files required to compile the code. Here you will find the information required to use the examples together with Gobo.
Submitted by Julian Tschannen on Wed, 03/14/2007 - 23:27.
Most of the examples and tutorials you will find here come with an archive containing the source code and the files required to compile the code. Here you will find the information required to use the examples together with EiffelStudio.
Submitted by Martin Seiler on Mon, 02/26/2007 - 22:21.
In this tutorial I'll briefly explain how one can load the content of an ASCII file into a single string.
The deferred class FILE cannot be used directly as it is deferred.
The descendant PLAIN_TEXT_FILE is what we're actually looking for.
Basic steps
The basic steps are the following:
local
l_file: PLAIN_TEXT_FILE
l_content: STRING do create l_file.make_create_read_write(a_path)
l_file.read_stream(l_file.count)
l_content := l_file.last_string.twin
l_file.close end
Submitted by Paul Bates on Mon, 02/26/2007 - 22:18.
When getting started with any language it's always good to start on the right foot and do things correctly. It just saves time and frustration later down the line when something needs to be changed. In this tutorial I'll introduce you to the Eiffel comment markup that allows tools, such as EiffelStudio, to extract meaningful segments of information and provide context about them.