if we are talking a code fragment , say a few dozen lines of code then do
the following:

1)  Open the Playground
2) Type : Transcript open. Transcript show: 'hello world'.
3) Press the Remote publish button ( next to green triangle icon)
4) will give you a link and will paste the link to your keyboard
5) profit !

in my case

http://ws.stfx.eu/HYOEJ3B0WJH9

If you feel adventurous and you want to send the source code of a class
directly to the playground , including all its instance and class methods ,
in order to remotely publish it , you can make a method that does this
using this code

source :=''.
targetClass:= Transcript.
source := source,String cr,'"--------Instance Methods------------"',String
cr.
targetClass class methods do: [:each| source :=  source , (each
sourceCode), String cr,'"-----------------------------"', String cr].
source := source,String cr,'"--------Class Methods------------"',String cr.
targetClass class class methods do: [:each| source :=  source , (each
sourceCode), String cr,'"-----------------------------"', String cr].
x:= GTPlayground openContents: source.


On Sat, Oct 22, 2016 at 5:19 PM Vitor Medina Cruz <[email protected]>
wrote:

> Thanks for the answers!
>
> Charlie: It happens that most people are not willing to download the
> environment, no matter how many times you tell and explain that it is dead
> simple, before look at some code and discuss solutions, so this becomes a
> barrier for them to look further in the Smalltalk world.This is not
> exclusive for Smalltalk, I am in a discussion group that people program in
> Java, Scala, Go, Clojure and Ruby, and no one wants to set up an
> environment of a foreign language before peeking at some code.
>
> Dimitris: I like your idea, I will think in something in these lines if
> fileout don't work.
>
> Dale: Wow! A SmalltalkBrowser in web for Filetree would be awesome! In the
> mean time I think file-per-class, as described Martin, would just do the
> trick. :)
>
> If fileout do the trick I will let you know :)
>
> Thanks you all!
> Vitor
>
> On Sat, Oct 22, 2016 at 10:49 AM, Dale Henrichs <
> [email protected]> wrote:
>
> This is a good suggestion ... along these lines I've always thought that
> it would make a lot of sense to write a SmalltalkBrowser for Github in
> Amber of PHaroJS that would read Filetree package structure and display it
> the "right way" ... For extra credit one could even edit code in the
> browser:)
>
> And of course, the SmalltalkBrowser shouldn't be limited to just GitHub ...
>
> I wish that I had the spare cycles to do this:)
>
> Dale
>
> On 10/21/16 6:06 PM, Charlie Robbats wrote:
>
> I'd like to suggest you teach people Smalltalk natively, so they don't get
> distracted by the false view of a filetree of classes. One huge
> differentiator of Smalltalk, from any other language out there,  is the
> live object environment. You should use that environment to teach from or
> the nuance will be lost and they may well give up. Consider, is there any
> Java IDE that allows any expression anywhere to be evaluated and inspected
> with a mouse click or shortcut? So host your mcz on github but provide an
> install doc to have them install Pharo and load your code, for the lessons.
> They will look at Smalltalk code naturally in Pharo browsers and be exposed
> to an IDE they have never before experienced, as well. In the process you
> can webinar your navigations that they can follow along. Nebraska around?
> Those who consider it worthy will stay. Keep doing what you are doing!
>
> Charlie
>
> On 10/21/2016 8:51 PM, Vitor Medina Cruz wrote:
>
> Thank you for the answers! Actually my question has a rather silly reason:
> I find it difficult to navigate and peek at code in the current format. I
> would like to show ST code to other people through GitHub — it is pretty
> common for me to discuss implementations of katas, for example, from
> multiple platforms only looking at the GitHub project —, but the format get
> in the way. People usually give up of looking it because it is hard to
> navigate through the directory tree and understand all the separate pieces
> as a whole, and so I must explain my solution verbally and people get
> suspicious of ST and unwilling to try the environment for the first time.
> :(
>
> I think I am going to commit a fileout of the project, maybe people will
> find easier to peek at. Do you have other suggestion?
>
> Thanks!
> Vitor
>
> On Fri, Oct 21, 2016 at 4:36 PM, Dimitris Chloupis <[email protected]>
> wrote:
>
> Do you have something specific in your mind ?
>
> What are your needs and desires for an alternate Filetree format ? What
> you want to see changed in Filetreee ?
>
>
> On Fri, Oct 21, 2016 at 7:02 PM Vitor Medina Cruz <[email protected]>
> wrote:
>
> Hello,
>
> I was wondering: is there another format available for Filetree?
>
> Regards,
> Vitor
>
>
>
>
>
>

Reply via email to