Page 1 of 2
Rosetta Code
Posted: Wed Feb 24, 2010 1:12 pm
by Vera
Hello,
yesterday Kiffi posted on the
german forum: '
I have found an interesting page: Rosetta Code '
This page shows how common programming tasks are transcribed within different languages.
To contrast with the known '99 bottles of beer' the aim is to supply mostly practical examples (like reading & writing of files, opening windows, etc. ...)
Rosetta Code wrote:Rosetta Code is a programming chrestomathy site. The idea is to present
solutions to the same task in as many different languages as possible, to
demonstrate how languages are similar and different, and to aid a person
with a grounding in one approach to a problem in learning another.
Rosetta Code currently has 376 tasks, and covers 200 languages, though
we do not (and cannot) have solutions to every task in every language.
A variety of tasks are listed, and visitors to this site are invited to solve
the tasks in the language of their choice. The tasks cover everything from
the mundane Empty Program to the classic Towers of Hanoi, the practical
User Input, the mathematically-inclined Lucas-Lehmer test, and the involved
yet entertaining RCRPG.
'Unfortunately PureBasic is not (yet) represented' - well - that was yesterday
today
(thanks to Little John) it's here:
http://rosettacode.org/wiki/PureBasic
The opening is done - and I / we would be happy if you find it a good project too and join in building it up snip by snip
Request: would someone be so kind to announce this in the french forum as well ~ thanks
regards ~ Vera
Re: Rosetta Code
Posted: Wed Feb 24, 2010 5:23 pm
by rsts
Very interesting. Thanks for the heads up.
cheers
Re: Rosetta Code
Posted: Wed Feb 24, 2010 6:33 pm
by Little John
Hi,
I think we should make a decision in which category the PureBasic example code is to be posted.
I myself have added examples for
PrintN() and for
MessageRequester() in the
BASIC category, while someone else posted an example for
Comments in a separate
PureBasic category. We should handle that consistently, of course. Which category is best?
//edit:
It's probably best to put the example code in a separate
PureBasic category. This way, the examples will be automatically added to the list on the
main PureBasic page. (I've removed my examples mentioned above from the BASIC category.)
Regards, Little John
Re: Rosetta Code
Posted: Thu Feb 25, 2010 10:57 pm
by Vera
Hello,
I've made PureBasic an autonomous language again but still kept the
'Implementation of Basic', as it's handled this way for PowerBasic too.
(If we know what it means it could be removed any time.)
Now PB appears as a separate language on the main list.
All codes, which are included with
=={{header|PureBasic}}==
will then appear as sides of PureBasic on its category-page.
[Hint: one can even set up own pages independent from the comparing examples. Specialities ... history ..?]
Those 8 out of 10 codes
could only be found by search and I assigned them to PureBasic and re-placed them in by alphabetical order.
By dedicating this 'Top-Level' the two boxes
'language' and '
not yet implementierten Tasks' appeared, so the tasks can be found quickly now.
[The language-box may contain more characteristic features, which I couldn't evaluate. (see:
http://rosettacode.org/wiki/Template:Language )
On the
not implemented Task someone might have look which ones don't apply to PureBasic at all and hide them by adding
{{omit from|PureBasic}} towards them.]
Recommendation: introduce new solutions with
=={{header|PureBasic}}== and maybe verify the version with e.g.
{{works with|PureBasic|4.41}}
Also highlighting is possible, if the code is enclosed in
<lang PureBasic>CODE
</lang>
like to be seen under
Primality by trial division
hoping this suites us fine

have a look on the
main PureBasic page again and maybe find a challenge to be solved.
best regards ~ Vera
edit: removed 2.dot of versiontagging
Re: Rosetta Code
Posted: Mon Mar 01, 2010 12:55 pm
by Vera
Hello,
just to leave a happy note : It's overwhelming to see how this project proceeds _
Let's say: starting of in a bit uncoordinated way with 2 - 10 examples, the next day another 13 were added. This morning further 11 solutions were solved and now additional 9 joined up - looks like it's growing at minute intervals _
What a remarkable sign of a brilliant community _
Thanks to those who joined and those who are heading to come _
cheers ~ Vera
(27.02)
~~~~~
to keep you update: reached 76 solutions this morning _

Re: Rosetta Code
Posted: Mon Mar 01, 2010 1:16 pm
by KJ67
Well, we have started the work.
Maybe we can get more people involved and maybe Fred or Freak could do a presentation of PureBasic and also fill in the
Language_Comparison_Table?
The more the merrier!

Re: Rosetta Code
Posted: Mon Mar 01, 2010 2:19 pm
by Vera
Hello,
I've tried to find out what an 'implementation of a language' means and have come to the conclusion that 'PureBasic is an implementation of BASIC.' cannot be correct.
Still I'm not doubtlessly sure, so please can someone confirm this so that I may remove that assignment.
thanks ~ Vera
Re: Rosetta Code
Posted: Sun Mar 07, 2010 10:17 am
by KJ67
This morning Mike Mol (aka Short Circuit) has deleted 30 submissions in the
PureBasic category, please recheck to see if your submission(s) has been left or not.
Re: Rosetta Code
Posted: Sun Mar 07, 2010 10:30 am
by Vera
Hi KJ67,
yes I've seen this and don't understand at all why this was done. Also 'private' messages have been removed. I just asked Mike what it is about.
KJ67 wrote: see if your submission(s) has been left
Sorry I don't get what you mean.
greetings ~ Vera
Re: Rosetta Code
Posted: Sun Mar 07, 2010 3:57 pm
by Demivec
@KJ67: This was the response on Rosetta Code site to Vera's inquiry concerning the massive rollbacks:
A lot more than just PureBasic was affected. Looks to me like a web spider gone wrong. MediaWiki has a bug: the “rollback” command on edits is a hyperlink, not a button (violating the no-side-effects-for-GET principle), and so if a spider ran with User:Short Circuit's credentials this effect would result. I recommend waiting for this to be fixed everywhere rather than doing anything different on your part or attempting to restore the removals individually. —Kevin Reid 14:36, 7 March 2010 (UTC)
Re: Rosetta Code
Posted: Sun Mar 07, 2010 9:45 pm
by KJ67
Demivec wrote:MediaWiki has a bug: the “rollback” command on edits is a hyperlink
This would be a explanation I like, RosettaCode is a nice place to show and compare languages.
Re: Rosetta Code
Posted: Sun Mar 07, 2010 10:49 pm
by Trond
The bulls and cows code gave made secret numbers that included 0, this isn't right.
Re: Rosetta Code
Posted: Sun Mar 07, 2010 11:55 pm
by Demivec
Trond wrote:The bulls and cows code gave made secret numbers that included 0, this isn't right.

The code's been corrected.
Re: Rosetta Code
Posted: Mon Mar 08, 2010 12:21 am
by Vera
Hello,
except for todays postings everything had been reinstalled successfully - so everything is
'uptoyesterday' again

- and all solutions have returned.
--Michael Mol 18:46, 7 March 2010 (UTC) wrote:I ran a spider when I logged in. It was an accident, reverted about 500 edits,
Re: Rosetta Code
Posted: Mon Mar 15, 2010 1:38 pm
by Vera
Today we've reached
154 solutions
To all those helping hands

a small Video~Greeting in a
Computer Song
enjoy ~ Vera