Liberty BASIC Community Forum
« Liberty BASIC Rosetta Code Project »

Welcome Guest. Please Login or Register.
Jan 22nd, 2018, 6:01pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1 2 3  ...  5 Notify Send Topic Print
 sticky  Author  Topic: Liberty BASIC Rosetta Code Project  (Read 11653 times)
Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2294
xx Liberty BASIC Rosetta Code Project
« Thread started on: Jul 11th, 2010, 12:10pm »

Good morning, LB community! I am very happy to announce the opening of the LB Rosetta Code Project!

Rosetta Code is a programming chrestomathy site. "Chrestomathy" is a collection of various phrases told in many different languages, to aid learning those other languages.

Programming chrestomathy is the same basic idea: A website, like Rosetta Code, has many Tasks that can be completed in any programming language and put onto the website. It is meant to aid people trying to learn programming, as well as helping them learn new languages to program in.

What we intend to do is get the LB community working together on solving these tasks in LB itself, and putting them onto Rosetta Code. We believe that this will help everyone in many ways. Newbies can use it as another resource for code, as well as helping them come from another language. They can also help contribute themselves, and in doing so, socialize and get to know this great community better. Even LB itself will benefit from this, as doing this will help spread knowledge about LB.

The plan is to have the community solve a couple tasks at a time, which will then be put up to the RC Wiki. While I don't have the starting tasks planned out yet, I am going to be out all day and will not be able to do so, so I wanted to get this announcement out so everyone can familiarize themselves with the site, as well as try out some of the easier tasks if they wish.

LB's page on RC is here: http://www.rosettacode.org/wiki/Liberty_BASIC. As you can see, some tasks are there already, and I would like to thank Janet Terra for her great early contributions to this grin

While the Wiki is open to everyone to edit, I do request that you post any submissions you would like to make on this board, and let me add them. It will help me keep track of what's already been done, and it will let the LB community make any improvements they can to it. Take a look at the LB page, and look at the kinds of tasks that need to be done, and which ones you would like to do.

I do encourage you to update the main LB page, though, as right now it's just a very basic page. Again, if there's any simple tasks you feel you can do right now, feel free to do it and post it here; it'll be great to get some early momentum on Rosetta Code.

I'll probably be able to post more information tomorrow, but as I said, I most likely won't be able to be on too much today.

Finally, I'd like to thank the staff here for considering me as a leader for this project. I'm extremely excited for this opportunity, and hope I live up to your expectations grin
User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Janet
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 4111
xx Re: Liberty BASIC Rosetta Code Project
« Reply #1 on: Jul 11th, 2010, 12:43pm »

The site looks great, Chris! You must have been working on it all weekend. This promises to be a wonderful community project. I've looked at some of the tasks, and many are programs that I've seen posted by our members. Fractals and Mandelbrot set quickly come to mind. I'd encourage everyone to head over to the site and see if you have existing code that can be used 'as is' or slightly modified to fill the qualifications of the selected task. Or maybe there's a task that interests you to begin a new program / snippet.

I like the idea of posting the programs here first.

Oh, and Chris, I just noticed your name here as one of the Moderators. Congratulations! I'm proud to be one of your colleagues. cheesy
User IP Logged

Windows 7 Professional, SP1, 64 bit Intel Core i5-4200U CPU @ 1.60 GHz 2.30 GHz 6.00 GB

"I am very busy finding out what people mean by what they say." -
Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14918
xx Re: Liberty BASIC Rosetta Code Project
« Reply #2 on: Jul 11th, 2010, 12:52pm »

I'm looking forward to tackling the challenges you select, Chris! There are hundreds of tasks there, so it's a bit overwhelming to me.

The Liberty BASIC page at Rosetta Code looks wonderful! Wow, six tasks listed already.

We cannot thank you enough for heading this project! You are doing a fantastic job.

MANY THANKS!
User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
Janet
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 4111
xx Re: Liberty BASIC Rosetta Code Project
« Reply #3 on: Jul 11th, 2010, 1:09pm »

Following Stefan's excellent suggestion in the next reply, the contents of this reply has been moved to a new thread.
[RC] Animation

« Last Edit: Jul 11th, 2010, 2:31pm by Janet » User IP Logged

Windows 7 Professional, SP1, 64 bit Intel Core i5-4200U CPU @ 1.60 GHz 2.30 GHz 6.00 GB

"I am very busy finding out what people mean by what they say." -
Stefan Pendl
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Computers are like babies, you must teach them what you like them to do ...


Homepage PM

Gender: Male
Posts: 5303
xx Re: Liberty BASIC Rosetta Code Project
« Reply #4 on: Jul 11th, 2010, 1:33pm »

I would start a new thread for each new task or this thread will be hundred of pages long.

The subject should include something to indicate, that it is related to this project.

For instance, the subject for Janet's submission could have been [RC] Animation, where [RC] signs the thread to be related to the Rosetta Code project.

In addition I would sticky this thread, so it does not get lost, because this project has a really long lifetime.
« Last Edit: Jul 11th, 2010, 1:38pm by Stefan Pendl » User IP Logged

Stefan

Make sure to read and follow the Forum Guidelines

Liberty BASIC Pro 4.04, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
cundo
Guru
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 630
xx Re: Liberty BASIC Rosetta Code Project
« Reply #5 on: Jul 11th, 2010, 4:39pm »

There are some complex tasks in the list: Tasks_not_implemented_in_Liberty_BASIC
But there are others very simple tasks like: Window_creation

User IP Logged

cundo
Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2294
xx Re: Liberty BASIC Rosetta Code Project
« Reply #6 on: Jul 11th, 2010, 9:34pm »

That's exactly the lure of it. While anyone can come up with solutions for the simple tasks, I plan on making the more complex ones into full community projects. We'll make it the best possible grin


EDIT: Oh, and thanks for the sticky!
« Last Edit: Jul 11th, 2010, 9:40pm by Chris Iverson » User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Brandon Parker
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1123
xx Re: Liberty BASIC Rosetta Code Project
« Reply #7 on: Jul 11th, 2010, 10:21pm »

Congratulations on the Moderator status Chris!

I think this is a fantastic project! I am excited to see it grow as I know it will due to the spectacular members of the LB Community. Unless anyone has any objections I would like to contribute by working on the array tasks since I have sort of an affinity for arrays anyway unless anyone has any objections.

Also, can I include some custom array functions to implement the tasks (ex. Array Concatenate)?

Brandon
« Last Edit: Jul 11th, 2010, 10:32pm by Brandon Parker » User IP Logged

Windows 7 Home Premium 64-bit Intel(R) Quad Core(TM) i5 CPU M 430 @ 2.27GHz 4GB DDR3 RAM
Stefan Pendl
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Computers are like babies, you must teach them what you like them to do ...


Homepage PM

Gender: Male
Posts: 5303
xx Re: Liberty BASIC Rosetta Code Project
« Reply #8 on: Jul 12th, 2010, 02:48am »

on Jul 11th, 2010, 10:21pm, nukesrus21 wrote:
Also, can I include some custom array functions to implement the tasks (ex. Array Concatenate)?


I haven't seen any hint about not being allowed to use custom functions, if the language does not have native ones for this.

I have seen some other languages needing custom functions to accomplish a task.

The goal is to show how things are done in different languages, which implies using custom functions for things not supported OOTB by the language.
User IP Logged

Stefan

Make sure to read and follow the Forum Guidelines

Liberty BASIC Pro 4.04, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14918
xx Re: Liberty BASIC Rosetta Code Project
« Reply #9 on: Jul 12th, 2010, 07:38am »

on Jul 11th, 2010, 9:34pm, Chris Iverson wrote:
EDIT: Oh, and thanks for the sticky!


Can you apply the sticky yourself? You are listed as a moderator of this board. (Look at the bottom of the thread for mod functions.)

The animation thread contains a discussion started by Dan regarding the type of code to post -- verbose or lean.

Perhaps that could be debated here, since it is of general interest to the RC project.

I think that the code should adhere as much to classic BASIC syntax as possible. Rod's use of NOT() to flip a flag on and off is better than an if/then block, IMHO.

It's a programming site, so we can assume that those cruising the solved task list already know something and want to compare languages. We don't need verbosity, but we want to avoid obscurity, which can happen when we try to pare it down too much.

It would be grand if Carl joined the Rosetta Code wiki.

I've joined. It only takes a minute and you don't even need to give an email address. Cool, eh?
User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2294
xx Re: Liberty BASIC Rosetta Code Project
« Reply #10 on: Jul 12th, 2010, 10:53am »

on Jul 12th, 2010, 07:38am, Alyce Watson wrote:
Can you apply the sticky yourself? You are listed as a moderator of this board. (Look at the bottom of the thread for mod functions.)




I can see the functions there, but I only see Lock/Unlock and Move Topic. Nothing there about stickies.


And this main topic would be a good place for the discussion. While I figured verbosity would be better, seeing the conversation there has made me think differently. I think that's what I was trying to say: We don't want the code stripped down purely for optimization.
User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14918
xx Re: Liberty BASIC Rosetta Code Project
« Reply #11 on: Jul 12th, 2010, 11:20am »

Chris, you should be able to sticky/unsticky now. ("Sticky" is a verb?) We were getting large numbers of sticky posts on the forum and the amount of scrolling necessary to get to an actual new thread was annoying. I removed the power to make posts sticky from all but admins, but I'd forgotten that fact.

Regarding verbosity and optimization... I'm in favor of descriptive variable and procedure names, which should make comments unnecessary.

"Optimization" is not the same as "fewest lines or characters of code" is it? I thought it was more about speed and efficiency.

I'm not in favor of the dot-notation that some people use with Liberty BASIC. For instance, some coders like to give similar variables a prefex, dot, name. An example, of sorts:

person.Name$
person.Age
person.Position$

The dot-notation has a very specific meaning in some other languages and might be confusing. It's use appears to indicate that Liberty BASIC allows TYPEs, like

TYPE person
Name$ as string
Age as integer
Position$ as string
END TYPE

There are other usages for the dot in other languages. I suggest that we reserve its use for the handle.extension that Liberty BASIC uses to designate controls.

(I'm as guilty as the next guy of replacing the underscore in Windows constants with a dot, because Liberty BASIC chokes on constants not in its lookup table.)
« Last Edit: Jul 12th, 2010, 11:20am by Alyce Watson » User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2294
xx Re: Liberty BASIC Rosetta Code Project
« Reply #12 on: Jul 13th, 2010, 7:11pm »

Sorry about not being on today - I'm getting busy lately, with work and getting ready for college again. I've been going through the tasks, seeing which ones would be good challenges to put to the community. I'll decide on something soon.

Meanwhile, I thank everyone who's already contributed! The things I'm seeing so far are pretty much exactly what I had in mind!
User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Dan Teel
Guru
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 1130
xx Re: Liberty BASIC Rosetta Code Project
« Reply #13 on: Jul 13th, 2010, 10:50pm »

on Jul 12th, 2010, 11:20am, Alyce Watson wrote:
Chris, you should be able to sticky/unsticky now. ("Sticky" is a verb?) We were getting large numbers of sticky posts on the forum and the amount of scrolling necessary to get to an actual new thread was annoying. I removed the power to make posts sticky from all but admins, but I'd forgotten that fact.

Regarding verbosity and optimization... I'm in favor of descriptive variable and procedure names, which should make comments unnecessary.

"Optimization" is not the same as "fewest lines or characters of code" is it? I thought it was more about speed and efficiency.

I'm not in favor of the dot-notation that some people use with Liberty BASIC. For instance, some coders like to give similar variables a prefex, dot, name. An example, of sorts:

person.Name$
person.Age
person.Position$

The dot-notation has a very specific meaning in some other languages and might be confusing. It's use appears to indicate that Liberty BASIC allows TYPEs, like

TYPE person
Name$ as string
Age as integer
Position$ as string
END TYPE

There are other usages for the dot in other languages. I suggest that we reserve its use for the handle.extension that Liberty BASIC uses to designate controls.

(I'm as guilty as the next guy of replacing the underscore in Windows constants with a dot, because Liberty BASIC chokes on constants not in its lookup table.)
Fewer lines of code doesnt mean faster thats for sure. I was just trying to make it as small as possible being silly.



I'm in favor of dot notation, it helps keep source code looking clean and easier to read, in my eyes anyways. Much easier to scan through code looking for car.Owner(p) instead of carOwner(p), just having that extra break is nice.

Other languages may make use of dot notation, but I dont think we should care about that at all.
User IP Logged

ZPtr.net
Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5618
xx Re: Liberty BASIC Rosetta Code Project
« Reply #14 on: Jul 16th, 2010, 09:12am »

On this capitalisation thing. I'm not used to . notation though I see the point. As it is actually part of our STRUCT command set perhaps we should set it aside for that use. carOwner is the way I would label variables or arrays. In fact its the only time I introduce capitals. Since commands don't require capitalisation we shouldn't.

Code:
for carOwner = 1 to 3
next

not

For carOwner = 1 To 3
Next 


Picky picky picky, oh and the other thing is array examples look best using index 1 to n not 0 to n.
User IP Logged

Pages: 1 2 3  ...  5 Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls