eiffelroom

Beginner

article

Eiffel exceptions

A common question asked about Eiffel, especially those coming from Java or C# backgrounds is, where's my try...catch...finally block?

article

Getting Started with Db4o for Eiffel

This page provides a step-by-step guide, showing you how to use db4o databases within Eiffel for .NET applications.

Step 1: Download Db4o Assembly

article

EiffelVision 2 HowTo's

How do I set the size of an EV_PIXMAP?

article

Random numbers

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.
article

Eiffel compilation and tuning execution speed

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++.
article

How to compile examples using Gobo

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.

article

How to compile examples using EiffelStudio

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.

article

Reading File Content

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

article

Comment Documentation for Use In Eiffel Development Tools

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.

article

Calculator

Basic calculator in reverse Polish form.

Syndicate content
about - contact