eiffelroom

Intermediate

article

C/C++ calls and callbacks

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

This is a C example: <eiffel> class APPLICATION

create make

feature -- Initialization

make is -- Run application. do

article

How to save a Jpg file with quality option

The result

First let's see the results of images in different quality levels. The highest quality is 100, the lowest quality is 0.

Original image: Goleta_Flower_orignal

Quality 100 image: (Maybe because the image is too big, 2.6mb, we can't upload it now. Sorry.) Goleta_Flower_with_quality_100

Quality 75 image: Goleta_Flower_with_quality_75

article

Fun with Generics

Intro

We all know about generics as a wonderful help to implement container data structures like lists, sets, bags etc. Much later than Eiffel, object-oriented programming languages like Java and C# have understood that generic parameters are a powerful extension to the type system and remove the need for many casts. So, what else can we do with generics beyond containers?

article

Simple timer class

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$"

article

Create .NET Properties in Eiffel

.NET properties are a fundamental part of the CLR and CTS. They are used in a plethora of ways by Microsoft, ISVs and your other developers. For a number of users .NET properties are just a syntactical sugar unifying a getter function and setter routine, and opening up access to encapsulated internal fields.

article

How to use multi-constraint generics to implement reusable numeric algorithms

Introduction

The goal of this tutorial is to show you how you can harness the power of multi-constraint generic type parameters to implement versatile numerical algorithms.
Syndicate content
about - contact