improving print-it in playground

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

improving print-it in playground

Tudor Girba-2
Hi,

I worked with Andrei to find a solution for improving the print-it support. You can take a look here:

The current solution can be found in the latest Pharo image.

Cheers,
Doru

--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

wernerk
Hi Doru,
works nicely and makes the playground for the first time actually usable
for me. i like the way it works: the automatic commenting and that i
only need to press enter.
werner


Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

Tudor Girba-2
Thanks for the feedback.

I am still looking for concrete use cases why people need to see the printout in the editor. Could you provide an example of when you need it?

Cheers,
Doru

On Mon, Jan 19, 2015 at 10:01 AM, Werner Kassens <[hidden email]> wrote:
Hi Doru,
works nicely and makes the playground for the first time actually usable for me. i like the way it works: the automatic commenting and that i only need to press enter.
werner





--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

wernerk
In reply to this post by wernerk
one thing, i guess it could eventually be preferable if the comment
would go on the next line so that one can repeatedly evaluate or print
that line. this is at least a common use case for me.
werner

On 01/19/2015 10:01 AM, Werner Kassens wrote:
> Hi Doru,
> works nicely and makes the playground for the first time actually usable
> for me. i like the way it works: the automatic commenting and that i
> only need to press enter.
> werner
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

Tudor Girba-2
Hi Werner,

Aha. So, you want to compare multiple runs of the same code? Do you use the print-it for anything else?

Cheers,
Doru



On Mon, Jan 19, 2015 at 10:15 AM, Werner Kassens <[hidden email]> wrote:
one thing, i guess it could eventually be preferable if the comment would go on the next line so that one can repeatedly evaluate or print that line. this is at least a common use case for me.
werner


On 01/19/2015 10:01 AM, Werner Kassens wrote:
Hi Doru,
works nicely and makes the playground for the first time actually usable
for me. i like the way it works: the automatic commenting and that i
only need to press enter.
werner







--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

wernerk
In reply to this post by Tudor Girba-2
On 01/19/2015 10:07 AM, Tudor Girba wrote:
> I am still looking for concrete use cases why people need to see the
> printout in the editor. Could you provide an example of when you need it?
for example for making documentation like
https://github.com/SergeStinckwich/SciSmalltalk/wiki/Math-DHB-wk
werne

Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

wernerk
In reply to this post by Tudor Girba-2
> Aha. So, you want to compare multiple runs of the same code?
very often, yes
werner

Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

Sven Van Caekenberghe-2
In reply to this post by Tudor Girba-2
For me, you nailed it.
It makes Playgrounds even more useful.
I also want this in every code pane, including all browsers.

> On 19 Jan 2015, at 08:33, Tudor Girba <[hidden email]> wrote:
>
> Hi,
>
> I worked with Andrei to find a solution for improving the print-it support. You can take a look here:
> http://www.humane-assessment.com/blog/improving-print-it-support-in-gtplayground
>
> The current solution can be found in the latest Pharo image.
>
> Cheers,
> Doru
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"


Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

Mark Rizun
Hello!

Thanks for the change, I think it will come in handy.

2015-01-19 10:27 GMT+01:00 Sven Van Caekenberghe <[hidden email]>:
For me, you nailed it.
It makes Playgrounds even more useful.
I also want this in every code pane, including all browsers.

+1, if it's possible, I would like to see it in all code panes as well.

Mark 

 
Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

Marcus Denker-4
In reply to this post by Tudor Girba-2

> On 19 Jan 2015, at 06:07, Tudor Girba <[hidden email]> wrote:
>
> Thanks for the feedback.
>
> I am still looking for concrete use cases why people need to see the printout in the editor. Could you provide an example of when you need it?

I like to construct expressions step by step, printing the result inbetween.

        Marcus


Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

jfabry
In reply to this post by Tudor Girba-2

Yes, the print-it now is much better than the classic ST behavior! I appreciate the latest feature of being able to get the response as commented text. I have needed that in the past, sporadically. (But I don’t remember specific cases, sorry.)

On Jan 19, 2015, at 08:33, Tudor Girba <[hidden email]> wrote:

Hi,

I worked with Andrei to find a solution for improving the print-it support. You can take a look here:

The current solution can be found in the latest Pharo image.

Cheers,
Doru

--

"Every thing has its own flow"



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile

Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

stepharo
In reply to this post by wernerk

Le 19/1/15 10:01, Werner Kassens a écrit :
> Hi Doru,
> works nicely and makes the playground for the first time actually
> usable for me. i like the way it works: the automatic commenting and
> that i only need to press enter.

:)
I suggested to put it on the next line in addition :)
> werner
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

stepharo
In reply to this post by Marcus Denker-4

Le 19/1/15 14:18, Marcus Denker a écrit :
>> On 19 Jan 2015, at 06:07, Tudor Girba <[hidden email]> wrote:
>>
>> Thanks for the feedback.
>>
>> I am still looking for concrete use cases why people need to see the printout in the editor. Could you provide an example of when you need it?
> I like to construct expressions step by step, printing the result inbetween.

but you have to remove them after.
Normally for inbteween I look and discard it with esc then continue to
the next one.
>
> Marcus
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

stepharo
In reply to this post by wernerk

Le 19/1/15 10:15, Werner Kassens a écrit :
> one thing, i guess it could eventually be preferable if the comment
> would go on the next line so that one can repeatedly evaluate or print
> that line. this is at least a common use case for me.

yes me too.

> werner
>
> On 01/19/2015 10:01 AM, Werner Kassens wrote:
>> Hi Doru,
>> works nicely and makes the playground for the first time actually usable
>> for me. i like the way it works: the automatic commenting and that i
>> only need to press enter.
>> werner
>>
>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

stepharo
In reply to this post by Tudor Girba-2

Le 19/1/15 10:21, Tudor Girba a écrit :
Hi Werner,

Aha. So, you want to compare multiple runs of the same code?

not necessarily

Do you use the print-it for anything else?

keep trace.

Cheers,
Doru



On Mon, Jan 19, 2015 at 10:15 AM, Werner Kassens <[hidden email]> wrote:
one thing, i guess it could eventually be preferable if the comment would go on the next line so that one can repeatedly evaluate or print that line. this is at least a common use case for me.
werner


On 01/19/2015 10:01 AM, Werner Kassens wrote:
Hi Doru,
works nicely and makes the playground for the first time actually usable
for me. i like the way it works: the automatic commenting and that i
only need to press enter.
werner







--

"Every thing has its own flow"

Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

Martin Bähr
In reply to this post by Tudor Girba-2
Excerpts from Tudor Girba's message of 2015-01-19 08:33:04 +0100:
> I worked with Andrei to find a solution for improving the print-it support.
> You can take a look here:
> http://www.humane-assessment.com/blog/improving-print-it-support-in-gtplayground

have not tried it yet, but i wondered about this problem.
as mentioned elsewhere, i too would like this in every textbox.

most notably in the debugger where i do a lot of print-it to find out the value
of some expression.

i'd also like to pick up on the idea that when there is no selection the whole
line will be evaluated (btw, there is a typo, you wrote like), and that line
will only be highlighted.

the idea is great, but what about if i do evaluate a selection?
could in that case the selection be turned into a highlight?
there is no way around to make a selection in order to evaluate it, (unless
some form of shift-control-whatver-key+mouse selection is introduced) but once
evaluated it is clear that i didn't intend to select to replace the text, and
i'd like to avoid doing so accidentally.

also, would it make sense to keep the highlight until another piece of code is
evaluated?

greetings, martin.

--
eKita                   -   the online platform for your entire academic life
--
chief engineer                                                       eKita.co
pike programmer      pike.lysator.liu.se    caudium.net     societyserver.org
secretary                                                      beijinglug.org
mentor                                                           fossasia.org
foresight developer  foresightlinux.org                            realss.com
unix sysadmin
Martin Bähr          working in china        http://societyserver.org/mbaehr/

Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

Brian Krent
In reply to this post by Tudor Girba-2
A two-column UI similar to the Swift playground may be useful. Everything would be printed in parallel in a separate column. (The aforementioned output may be partially visually obscured by half a dozen means for output "typically" considered irrelevant — for example, perhaps a disclosure triangle for excessive lines.) And if one did a Do It on a selection in the "print" column, it would echo (copy) the selection over in the "workspace" column and show the printed action in the "print" column accordingly. There are many, many ways to implement all the details for smooth workflow behavior. 

On Jan 19, 2015, at 1:33 AM, Tudor Girba <[hidden email]> wrote:

Hi,

I worked with Andrei to find a solution for improving the print-it support. You can take a look here:

The current solution can be found in the latest Pharo image.

Cheers,
Doru

--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

stepharo
can you send a screen shot?

Le 20/1/15 05:17, Brian Krent a écrit :
A two-column UI similar to the Swift playground may be useful. Everything would be printed in parallel in a separate column. (The aforementioned output may be partially visually obscured by half a dozen means for output "typically" considered irrelevant — for example, perhaps a disclosure triangle for excessive lines.) And if one did a Do It on a selection in the "print" column, it would echo (copy) the selection over in the "workspace" column and show the printed action in the "print" column accordingly. There are many, many ways to implement all the details for smooth workflow behavior. 

On Jan 19, 2015, at 1:33 AM, Tudor Girba <[hidden email]> wrote:

Hi,

I worked with Andrei to find a solution for improving the print-it support. You can take a look here:

The current solution can be found in the latest Pharo image.

Cheers,
Doru

--

"Every thing has its own flow"

Reply | Threaded
Open this post in threaded view
|

Re: improving print-it in playground

Ben Coman
In reply to this post by Tudor Girba-2


On Mon, Jan 19, 2015 at 5:07 PM, Tudor Girba <[hidden email]> wrote:
Thanks for the feedback.

I am still looking for concrete use cases why people need to see the printout in the editor. Could you provide an example of when you need it?


Here is one I just had.  I wanted to select the result of this...

     Object allMethods detect: [ :m | m senders size = 1 ]  

so that I could press the shortcut key for "all senders" on it to view that code.

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

Re: improving print-it in playground

Martin Bähr
Excerpts from Ben Coman's message of 2015-01-25 04:55:45 +0100:
> > I am still looking for concrete use cases why people need to see the
> > printout in the editor. Could you provide an example of when you need it?
> Here is one I just had.  I wanted to select the result of this...
>      Object allMethods detect: [ :m | m senders size = 1 ]
> so that I could press the shortcut key for "all senders" on it to view that
> code.

shortcuts and mouse-clicks should work on the popup as they work on a selection.

i had a case where the popup was to on the right edge partly off the screen
that the inspect icon was not accessible. a problem in itself, but being able
to use short-cuts as normal would have helped.

greetings, martin.

--
eKita                   -   the online platform for your entire academic life
--
chief engineer                                                       eKita.co
pike programmer      pike.lysator.liu.se    caudium.net     societyserver.org
secretary                                                      beijinglug.org
mentor                                                           fossasia.org
foresight developer  foresightlinux.org                            realss.com
unix sysadmin
Martin Bähr          working in china        http://societyserver.org/mbaehr/

12