Easy to use execution counter with Icon in Editor

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Easy to use execution counter with Icon in Editor

Marcus Denker-4
Hi,

In the 60#103 there will be a new kind of “Watcher”: an execution-counter.

Using the “suggestion” menu one can add a counter to any AST node.
After, the editor shows a (c) Icon. Mouse over —> current state of the counter is shown.

Of course, UI is just a stand-in and could be *much* better. But from a debug
perspective, it already should be quite useful to get a feel of how often something
gets executed.

Henrik suggest this as a demo (and an example of how to install a Counter without using
the UI):

        ExecutionCounter installOn: (RubParagraphDecorator >> #doesNotUnderstand:) ast

        Marcus
Reply | Threaded
Open this post in threaded view
|

Re: Easy to use execution counter with Icon in Editor

Tudor Girba-2
He he! I love these goodies.

Doru


> On Jun 21, 2016, at 5:45 PM, Marcus Denker <[hidden email]> wrote:
>
> Hi,
>
> In the 60#103 there will be a new kind of “Watcher”: an execution-counter.
>
> Using the “suggestion” menu one can add a counter to any AST node.
> After, the editor shows a (c) Icon. Mouse over —> current state of the counter is shown.
>
> Of course, UI is just a stand-in and could be *much* better. But from a debug
> perspective, it already should be quite useful to get a feel of how often something
> gets executed.
>
> Henrik suggest this as a demo (and an example of how to install a Counter without using
> the UI):
>
> ExecutionCounter installOn: (RubParagraphDecorator >> #doesNotUnderstand:) ast
>
> Marcus

--
www.tudorgirba.com
www.feenk.com

"Quality cannot be an afterthought."


Reply | Threaded
Open this post in threaded view
|

Re: Easy to use execution counter with Icon in Editor

Mariano Martinez Peck


On Tue, Jun 21, 2016 at 5:47 PM, Tudor Girba <[hidden email]> wrote:
He he! I love these goodies.


Yes, me too. This little things make the "IDE" look more "proffesional" and more welcoming to newbies as they are used to that in others environments. 
 
Doru


> On Jun 21, 2016, at 5:45 PM, Marcus Denker <[hidden email]> wrote:
>
> Hi,
>
> In the 60#103 there will be a new kind of “Watcher”: an execution-counter.
>
> Using the “suggestion” menu one can add a counter to any AST node.
> After, the editor shows a (c) Icon. Mouse over —> current state of the counter is shown.
>
> Of course, UI is just a stand-in and could be *much* better. But from a debug
> perspective, it already should be quite useful to get a feel of how often something
> gets executed.
>
> Henrik suggest this as a demo (and an example of how to install a Counter without using
> the UI):
>
>       ExecutionCounter installOn: (RubParagraphDecorator >> #doesNotUnderstand:) ast
>
>       Marcus

--
www.tudorgirba.com
www.feenk.com

"Quality cannot be an afterthought."





--
Reply | Threaded
Open this post in threaded view
|

Re: Easy to use execution counter with Icon in Editor

Tudor Girba-2
Hi,

> On Jun 22, 2016, at 4:23 AM, Mariano Martinez Peck <[hidden email]> wrote:
>
>
>
> On Tue, Jun 21, 2016 at 5:47 PM, Tudor Girba <[hidden email]> wrote:
> He he! I love these goodies.
>
>
> Yes, me too. This little things make the "IDE" look more "proffesional" and more welcoming to newbies as they are used to that in others environments.

I think that with these abilities we start to surpass what exists in other environments. Remember that this addition takes a few lines of code. In other environments, this would take a whole plugin with orders of magnitude more code. Our environment is disruptive, at least in this regard.

Cheers,
Doru

>  
> Doru
>
>
> > On Jun 21, 2016, at 5:45 PM, Marcus Denker <[hidden email]> wrote:
> >
> > Hi,
> >
> > In the 60#103 there will be a new kind of “Watcher”: an execution-counter.
> >
> > Using the “suggestion” menu one can add a counter to any AST node.
> > After, the editor shows a (c) Icon. Mouse over —> current state of the counter is shown.
> >
> > Of course, UI is just a stand-in and could be *much* better. But from a debug
> > perspective, it already should be quite useful to get a feel of how often something
> > gets executed.
> >
> > Henrik suggest this as a demo (and an example of how to install a Counter without using
> > the UI):
> >
> >       ExecutionCounter installOn: (RubParagraphDecorator >> #doesNotUnderstand:) ast
> >
> >       Marcus
>
> --
> www.tudorgirba.com
> www.feenk.com
>
> "Quality cannot be an afterthought."
>
>
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com

--
www.tudorgirba.com
www.feenk.com

"Every thing has its own flow."