source code

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

source code

Erik Itter
Hello,

being new to Smalltalk I wonder how I exchange source code both with
collaborators and with my papers. Is there any view on the code basis
where I see the complete class I wrote in order to use the source code
in my papers without the need to collect pieces from the individual methods?

best regards
Erik

Reply | Threaded
Open this post in threaded view
|

Re: source code

jtuchel
Erik,

for your collaborators, using a scm tool like Monticello is probably the
best you can do.
To print a class in your papers, you can probably get there fastest by
doing a fileOut of your class(es) and import the resulting .st file into
your word processor. There will be a lot of exclamation marks and stuff
that make the .st file easier to parse, so you may want to edit the
fileout before "citing" your code.

hth,

Joachim


Am 13.10.14 um 11:32 schrieb Erik Itter:

> Hello,
>
> being new to Smalltalk I wonder how I exchange source code both with
> collaborators and with my papers. Is there any view on the code basis
> where I see the complete class I wrote in order to use the source code
> in my papers without the need to collect pieces from the individual
> methods?
>
> best regards
> Erik
>
>


--
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          mailto:[hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1


Reply | Threaded
Open this post in threaded view
|

Re: source code

kilon.alios
In reply to this post by Erik Itter
I am not aware of tools that do this inside pharo (I am also using pharo for only a year now) but you can do this via code for example lets say you want to see the source code for TaskbarMorph both instance and class methods you can use this code to output the source code to the transcript

Transcript clear.
Transcript show:'***********INSTANCE SIDE*********';cr.
(TaskbarMorph methods) do:[:each| Transcript show:each sourceCode;cr;show:'---------------------';cr].
Transcript show:'***********CLASS SIDE*********';cr.
(TaskbarMorph class methods) do:[:each| Transcript show:each sourceCode;cr;show:'---------------------';cr].

Alternatively you can file out a source file for the class which will be saved in the pharo folder with a st file extension. You just right click on the class (in system browser) and choose file out. 

For sharing code you use monticello and either smalltalkhub or git/github. I use github personally. 

On Mon, Oct 13, 2014 at 12:32 PM, Erik Itter <[hidden email]> wrote:
Hello,

being new to Smalltalk I wonder how I exchange source code both with collaborators and with my papers. Is there any view on the code basis where I see the complete class I wrote in order to use the source code in my papers without the need to collect pieces from the individual methods?

best regards
Erik


Reply | Threaded
Open this post in threaded view
|

Re: source code

stepharo
In reply to this post by Erik Itter
welcome.

Create an account on SmalltalkHub and you will be able to share code
with your collaborators.
You can create a team to manage your rights for a set of projects.


On 13/10/14 11:32, Erik Itter wrote:

> Hello,
>
> being new to Smalltalk I wonder how I exchange source code both with
> collaborators and with my papers. Is there any view on the code basis
> where I see the complete class I wrote in order to use the source code
> in my papers without the need to collect pieces from the individual
> methods?
>
> best regards
> Erik
>
>