Joe Abbate jma@freedomcircle.com [eiffel_software]
2015-07-23 01:47:18 UTC
Hello,
Has someone prepared or perhaps seen a list of Eiffel features organized
not by class but by, shall we call it "common programming task"
categories? For example, taking each Standard C header, listing each
function therein and showing an equivalent way of doing it in Eiffel
(and of course without calling C from Eiffel)?
The reason for asking is that in my experience:
- searching via Google as "Eiffel 'task'" tends to turn up links to the
tour Eiffel, not the language
- adding 'programming' to the above doesn't seem to help much unless
'task' is expressed using a C-specific word, in which case you get links
to C/C++ (e.g., search Google for "eiffel programming scanf")
- using the "search" on eiffel.org/documentation or equivalently using
Google with "site:eiffel.org" doesn't help much if your search terms are
generic descriptions (e.g., "delete file")
- rosettacode.org has task lists like that, but
- some tasks have no examples for Eiffel, e.g., delete a file or
rename a file
- for tasks that do have examples, sometimes the examples are too
simplistic (e.g., under file I/O the example copies a file a character
at a time, while the preceding example --in Delphi-- shows how to write
a structured record.
I'd be willing to collate such a list if there's interest.
I would also like to know if someone has pointers (documentation, blog
posts, samples, etc.) on preferred ways to read and write a multi-field
file in both text and binary formats. The files already exist and have
a particular format so Eiffel object persistence features would not be
of help.
Thanks.
Joe
Has someone prepared or perhaps seen a list of Eiffel features organized
not by class but by, shall we call it "common programming task"
categories? For example, taking each Standard C header, listing each
function therein and showing an equivalent way of doing it in Eiffel
(and of course without calling C from Eiffel)?
The reason for asking is that in my experience:
- searching via Google as "Eiffel 'task'" tends to turn up links to the
tour Eiffel, not the language
- adding 'programming' to the above doesn't seem to help much unless
'task' is expressed using a C-specific word, in which case you get links
to C/C++ (e.g., search Google for "eiffel programming scanf")
- using the "search" on eiffel.org/documentation or equivalently using
Google with "site:eiffel.org" doesn't help much if your search terms are
generic descriptions (e.g., "delete file")
- rosettacode.org has task lists like that, but
- some tasks have no examples for Eiffel, e.g., delete a file or
rename a file
- for tasks that do have examples, sometimes the examples are too
simplistic (e.g., under file I/O the example copies a file a character
at a time, while the preceding example --in Delphi-- shows how to write
a structured record.
I'd be willing to collate such a list if there's interest.
I would also like to know if someone has pointers (documentation, blog
posts, samples, etc.) on preferred ways to read and write a multi-field
file in both text and binary formats. The files already exist and have
a particular format so Eiffel object persistence features would not be
of help.
Thanks.
Joe