Ask Your Question
7

How to make my code available

asked 2012-01-30 09:52:06 +0100

Matthieu Deneufchâtel gravatar image

I wrote some functions and would like to make them available. I don't really want to integrate them into Sage, because I think it is too complicated for me. I also doubt that these functions are interesting for so many people that it is worth adding them to the standard libraries.

Is there a way to "publish" my code as it is now to get some feedback and advice ?

edit retag flag offensive close merge delete

5 Answers

Sort by » oldest newest most voted
2

answered 2012-01-30 12:41:58 +0100

Mike Witt gravatar image

updated 2012-01-30 12:45:17 +0100

If the amount of code involved isn't too large, you could publish it as one or more worksheets on sagenb.org. But that's a fairly limited approach. Actually I'm curious too if there is a convenient way to share code other than integrating it into Sage. And, I think the point about getting feedback is an interesting one. There are probably people, knowledgeable in Sage and Python, who might be willing to comment on less experienced people's code. It might be nice to have an established mechanism for this. I would love to take advantage of something like that myself.

edit flag offensive delete link more

Comments

I was wondering about this exact issue the other day. It would be great to have an easy-to-use repository/sharing site with a low bar of entry. I took a look at sagenb.org, but I found that difficult to wade through. I would be too embarrassed to offer up any of my wobbly, duct-taped code for inclusion in any official library, but I might participate in something more informal. And if something posted there turned out to be very popular or useful, more savvy coders could help bring it up to speed and incorporate it into Sage.

jdc gravatar imagejdc ( 2012-01-30 14:05:48 +0100 )edit
1

answered 2012-02-01 02:30:26 +0100

pang gravatar image

A wild suggestion: how about here? Why not make a new post with a title like: "code for doing this and that", put a link to the code and ask for comments and feedback?

edit flag offensive delete link more

Comments

That seems to me like an idea worth considering. The code itself could be in one of the places mentioned in the other answers, but having the discussion about it here could make the process more ... visible(?)

Mike Witt gravatar imageMike Witt ( 2012-02-01 10:45:05 +0100 )edit
0

answered 2012-01-30 13:45:40 +0100

Volker Braun gravatar image

updated 2012-01-30 13:53:00 +0100

I would suggest you post to sage-devel with a description of what your code does and if anybody is interested in collaborating and/or reviewing.

edit flag offensive delete link more
0

answered 2012-01-31 17:47:31 +0100

If you have only a couple of functions in a .sage file, you could post it on github's gist service.

I suggest creating a repository for more involved code that you do not want to submit for inclusion in Sage. There are many online services such as bitbucket, Google Code and github providing hosting service as well as a wiki and an issue tracker for such repositories.

William Stein's psage is hosted on Google Code for example.

edit flag offensive delete link more
0

answered 2012-02-01 02:28:21 +0100

pang gravatar image

If you can write an interact that illustrates the use of your code, you can post it in the sage wiki. If your code can be used to generate an image or animation, there are other wiki pages. However, no one will comment or improve your code.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-01-30 09:52:06 +0100

Seen: 687 times

Last updated: Feb 01 '12