Discussion:
xUnit and Refactoring for Oberon-2
(too old to reply)
Mario Knezovic
2005-12-30 04:03:55 UTC
Permalink
Hi!

I'm new to Oberon-2 programming and wonder if there is an xUnit like
tool for O2 programming and if there are Refactoring tools/IDEs
available for the O2 language.

The language itself should be pretty well suited for such tools as it
seems pretty clean to me, so I guess there are such tools around which I
just weren't able to find...

Right now I'm using a (Windows) command line compiler only.

Thank you.

Mario
llothar
2006-01-01 11:24:45 UTC
Permalink
There are no refactoring tools and there is no advanced IDE.
Tools like this are only available if the interest in the language is
large enough and this is not the case for Oberon.
August Karlstrom
2006-01-01 16:22:42 UTC
Permalink
Mario Knezovic wrote:
-snip-
Post by Mario Knezovic
I'm new to Oberon-2 programming and wonder if there is an xUnit like
tool for O2 programming and if there are Refactoring tools/IDEs
available for the O2 language.
The language itself should be pretty well suited for such tools as it
seems pretty clean to me, so I guess there are such tools around which I
just weren't able to find...
Right now I'm using a (Windows) command line compiler only.
-snip-

What's wrong with a language neutral IDE such as GNU Emacs?


August
--
I am the "ILOVEGNU" signature virus. Just copy me to your
signature. This email was infected under the terms of the GNU
General Public License.
llothar
2006-01-02 00:51:36 UTC
Permalink
Well, Emacs is a nice text based operating system, but it really needs
a good editor.
August Karlstrom
2006-01-02 03:29:51 UTC
Permalink
Post by llothar
Well, Emacs is a nice text based operating system, but it really needs
a good editor.
Well, this is the standard joke among among Vim fundamentalists. To hear
it from a guy who prefers programming IDE:s is somewhat unexpected.
Please, mention an editor you think is superior to Emacs cause I might
have missed it.


August
--
I am the "ILOVEGNU" signature virus. Just copy me to your
signature. This email was infected under the terms of the GNU
General Public License.
Ulrich
2006-01-02 23:35:37 UTC
Permalink
Post by August Karlstrom
Well, this is the standard joke among among Vim fundamentalists. To hear
it from a guy who prefers programming IDE:s is somewhat unexpected.
Please, mention an editor you think is superior to Emacs cause I might
have missed it.
Ich hab jahrelang mit XEmacs gearbeitet, finde aber die klassische Oberon-System-Umgebung viel praktischer. Ich hab ein paar wenige Kommandos selbst geschrieben - z.B. Umwandlung in Groß- oder Kleinbuchstaben - und trauere einzig der schönen Darstellung von Unterschieden in XEmacs nach. Zum Teil wird dieses Manko durch eine Vergleichsroutine im Oberon-System aufgewogen, die Oberon-Kommentare ausspart.

Es wäre zwar gut, wenn ein Editor alles könnte, aber mir ist keiner begegnet. Von Zeit zu Zeit möchte ich beispielsweise spaltenweise selektieren - das kann ich aber mit XEmacs nicht (vielleicht geht es, aber ich weiß nicht wie). Für diesen Fall nehme ich dann einen 3.Editor. Dann gibt es noch gewisse repetitive Editierabläufe, die ich mit einem 4.Editor am einfachsten programmieren kann.

Fast alles editiere ich innerhalb des Oberon-Systems, aber für die 3 genannten Sonderfälle greife ich auf 3 externe Editoren zurück.
llothar
2006-01-03 22:15:27 UTC
Permalink
Na ja man braucht eigentlich immer min. 2 Editoren.
Eines für grosse Files und einen anderen fürs komfortable Editieren.
Beides geht nämlich fast nicht. Zumindest lohnt es sich nicht das zu
implementieren.
n***@absamail.co.za
2006-01-04 11:31:11 UTC
Permalink
Post by Ulrich
Post by August Karlstrom
Well, this is the standard joke among among Vim fundamentalists. To hear
it from a guy who prefers programming IDE:s is somewhat unexpected.
Please, mention an editor you think is superior to Emacs cause I might
have missed it.
Ich hab jahrelang mit XEmacs gearbeitet, finde aber die klassische
Oberon-System-Umgebung viel praktischer.
Well I'm pleased to hear this. Apparently Emacs is magical; so
now I need not waste time testing it. Because editor usage is so
subjective, it's difficult to describe to others ?
Post by Ulrich
Ich hab ein paar wenige
Kommandos selbst geschrieben - z.B. Umwandlung in Groß- oder
Kleinbuchstaben - und trauere einzig der schönen Darstellung von
Unterschieden in XEmacs nach. Zum Teil wird dieses Manko durch eine
Vergleichsroutine im Oberon-System aufgewogen, die
Oberon-Kommentare ausspart.
If you mean eth-Sys3, then it's in EditTools.Tool ->
EditTools.ChangeSize ? => 8 ....24
But the proper way is to realise it's in the mouse 'via your thoughts'.
You just look at your motley-private-Tool for some text which has the
'right:size-font-colour' and 'THINK-make-that-text-stretch-have-this
-appearance' and the mouse 'does-it' !
Post by Ulrich
Es wäre zwar gut, wenn ein Editor alles könnte, aber mir ist keiner
begegnet. Von Zeit zu Zeit möchte ich beispielsweise spaltenweise
selektieren - das kann ich aber mit XEmacs nicht (vielleicht geht es,
aber ich weiß nicht wie). Für diesen Fall nehme ich dann einen
3.Editor. Dann gibt es noch gewisse repetitive Editierabläufe, die
ich mit einem 4.Editor am einfachsten programmieren kann.
Yes, eg. increasingly inet-fetched-text has annoying/funny chars
these days, which need to be remapped to ascii/ISO like:
"a^809C" -> "`", "—" -> "-" , – -> "'" ....etc.

And like your post didn't have line-breaks at len < 80. Then
various existing [eg. Mail.CutLines 76 * ] or private commands do.
Post by Ulrich
Fast alles editiere ich innerhalb des Oberon-Systems, aber für die
3 genannten Sonderfälle greife ich auf 3 externe Editoren zurück.
The reason why/how oberon-S3 got such a good editor,
which isa human-interface/psychology aspect, needs to be
analysed and explained, for 'deeper reasons'.

The beauty of S3 editor bringsd a dilema for me: linux & Wxx are
comparetively?sp lame, so I have to move all serious text to S3 for
'digestion'. But S3 inet tools are relatively rudamentary [eg. I've just
re-patched my News Reply facility to restore the "References:" field,
because News-users cursed me for 'breaking the thread'. Does
THIS reply 'follow the threading' ?]. So I'd like to be able to use
linux for inet-fetches, and *.pdf, *.ps viewing, [which nobody will
program for S3] and then, on the same box & immediately, be able
to use the text with S3's text facilities [editor(s)].

This idea points to a need for LNO [native oberon under linux]
support. Which is currently weak.

== Chris Glur.

Mario Knezovic
2006-01-02 01:50:08 UTC
Permalink
Post by August Karlstrom
What's wrong with a language neutral IDE such as GNU Emacs?
Nothing in general. But that's a stone age programming approach to me in
the 21st century ;-)

But you are missing the point in my question.

While I know that emacs has certain refactoring support lately for
certain languages, it does not have for Oberon-2. And since I am
planning to do a lot of Oberon-2 programming during this brand new year,
I would like to have (nearly) the same luxury like in Java ... or
Smalltalk ... or even C++.
Chris Burrows
2006-01-01 23:28:38 UTC
Permalink
I'm new to Oberon-2 programming and wonder if there is an xUnit like tool
for O2 programming
I'm not aware of any xUnit-like tool. A tool designed to help with testing
Oberon programs however is the Test Coverage Analyzer:

http://www.oberon.ethz.ch/software/TCA.html

Also potentially useful for unit testing is the fact that ANY global,
parameterless, exported Oberon procedure in any module may be executed by an
end-user (in this case, developer). This is in contrast to other languages /
systems that produce target executables with only one entry point.
and if there are Refactoring tools/IDEs available for the O2 language.
Tools for helping with refactoring / restructuring include:

The Oberon Slicing Tool
http://www.ssw.uni-linz.ac.at/Staff/CS/Slicing.html/

Wasp for Modula-2 / Oberon-2 (Static Error Checker)
http://www.waspsoft.com/waspm2.html

Stefan Ludwig's Analyzer Tool (included in the ETH Oberon distribution and
BlackBox)
http://www.oberon.ethz.ch
http://www.oberon.ch/blackbox.html

A Software Restructuring Tool for Oberon:
http://www.cs.sun.ac.za/~eloff

The Masters thesis can be downloaded - you will need to contact the author,
Johannes Eloff, about the availability of the software.

--
Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp
Mario Knezovic
2006-01-02 01:55:09 UTC
Permalink
Chris Burrows wrote:
[A lot of useful things]

Thanks a lot for your great list!

Gonna try those tools during the next weeks/months.
Post by Chris Burrows
I'm not aware of any xUnit-like tool.
Okay, seems like a first candidate for me to write myself if I do not
find one within the next few weeks. Not too much work and probably very
useful to others also. Once I have a beta, I'll post news about it here,
so anybody who is interested can give it a try.

Mario
Loading...