Here is my take:

http://paste.factorcode.org/paste?id=213

Your version is not a good example for beginners to look at, for
several reasons:

- It is too complex. There is no need to change co-ordinate systems or
use locals just to plot the sine function.
- It doesn't use standard naming conventions (uppercase locals, <foo>
for classes rather than constructors) When I'm reading code and I see
<foo>, I don't want to think "oh, is this a constructor, or is it one
of Ed's vocabularies where it's just the class symbol for no good
reason".
- It doesn't use standard indentation.
- Cleave with two or three quotations should be written using 'bi' and
'tri' instead.

Also your example refers to words which do not exist anywhere I could
find (fill-mode, line-strip), and there is no USING: form, so it's not
even complete.

Slava

On Wed, Nov 26, 2008 at 11:35 AM, Eduardo Cavazos
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> Here's an example of advanced gadget implementation. I say advanced because it
> ventures into the territory of changing the coordinate system of the gadget,
> which at this point isn't supported in an idiomatic way by the basis ui
> library.
>
>    http://paste.factorcode.org/paste?id=211
>
> It sort of reminds me of those 'Xlib' tutorials which show the X11 version of
> Hello World. :-) Deep inside a few pages of code, you see the text "Hello
> World".
>
> Similarly, in the above example you'll find hidden the line which does the
> work:
>
>    -10 10 0.5 <range> [ dup sin 2array ] map line-strip
>
> I.e. plot the sine function from -10 to 10.
>
> To all those interested in Factor gadget development, hopefully the above
> example can get you going.
>
> Ed
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to