[kde-edu]: [KTurtle] Unit tests, OO syntax and the website

cies cies.breijs at gmail.com
Sun Sep 28 18:23:56 CEST 2008


On Sun, Sep 28, 2008 at 12:41 AM, Niels Slot <nielsslot at gmail.com> wrote:
> Hi everyone,
>
> I've been doing some work on KTurtle the last few weeks.

:)

> First I've written a new unit test ruby script. I tried to modify the
> existing script but couldn't really understand what Cies was trying to do.

i think i was trying to test also the state of the AST, but that's
just what i remember.

> My new script requires a KTurtle script like the
> src/interpreter/unittest/test_logic_and_expressions.turtle file. The first
> part of this file is a KTurtle script. The second part (below the '### TEST
> GOAL') is what should be executed by KTurtle. My script simply compares this
> last part with the output from KTurtle.

this what what my script was also doing initially..

> I've attached my script with this e-mail. I'd like to know from Cies if this
> is what he had in mind. And if there's anything more he'd like to see in
> unit tests for KTurtle.

nope.. i mainly would like to see a unittest script that works. even
if minimally. and you made one so i owe you even more cookies that i
already owed you. :)

if there is any bug found in kturtle (and also old bugs) should have
unittest to prevent them from being reintroduced. that is right now
possible, so it 'works'. happy.


> Secondly, I've been working on the object syntax idea that Mauricio and I
> had at Akademy. I've got the following script running:
>
> forward 100
> $x = turtle
> $x.forward 50
>
> This moves the default turtle 100 steps, then creates a second turtle and
> moves that one 50 steps.
>
> I'd like to share this code, can I make a branch in /branches/work?

sure!

i dont know if we should walk the OO path. this has a lot to do with
the difference in interpreter design. OO can be hacked into it (see
php, python, perl) but that is not pretty.

i will do a code review.



> I'd also like to ask about the KTurtle website. It's completely outdated. It
> would be really cool if someone could change this. Some new KDE4 screeshots,
> a change/removal of the 'Current development' and 'Obtain' texts and maybe
> my and Mauricio's name on the page would be great. If nobody steps up i'm
> willing to do the work, but I'm not sure if I have rights to commit in de
> www directory.

i cannot do it now.. maybe in a few weeks (i'll station myself in
bangalore for while -- the plan now). you can ask for www rights for
the simple reason that you need 'm. :)


thanks for raising these issue niels, well appreciated!

ciao! (from pekandaran, sumatra)


More information about the kde-edu mailing list