Author |
Topic: Easily add stuff (Read 3455 times) |
|
Matt
Developer
member is offline


Gender: 
Posts: 210
|
 |
Re: Easily add stuff
« Reply #3 on: Oct 7th, 2013, 06:08am » |
|
I have been creating a DLGLIB for myself, which is constantly growing everytime I require another command. However, the constant adaptation and total number of commands that could potentially be included makes the library I'm doing inappropriate for the public domain - IMHO. I could list it here, but I'm sure those with a much higher and more logical programming skill would tear it to shreds.
Matt
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: Easily add stuff
« Reply #4 on: Oct 7th, 2013, 11:14am » |
|
on Oct 7th, 2013, 06:08am, Matt wrote:| I could list it here, but I'm sure those with a much higher and more logical programming skill would tear it to shreds. |
|
Perhaps you could find one or more other BB4W users with whom you could collaborate to develop this further, rather as the 'community edition' of the Dialogue Editor was developed (although that rather seemed to fizzle out at the end).
I would be interested to learn to what extent the GUILIB that I proposed a while ago (and a tentative specification of which was published) would have met your needs. Again that's something that - try as I might - I couldn't drum up enough enthusiasm for to get moving.
If there is one thing that highlights the difference between the BBC BASIC community and the Liberty BASIC community it is the degree to which LB is 'user supported' (look at FreeForm and Liberty BASIC Workshop as examples of tools that have been written by users). With a couple of notable exceptions I have had to write most of the BBC BASIC tools myself.
Richard.
|
|
Logged
|
|
|
|
Edja
Developer
member is offline


Posts: 60
|
 |
Re: Easily add stuff
« Reply #5 on: Oct 7th, 2013, 1:27pm » |
|
On this forum I've never seen anyone "tearing to shreds" someone else's contribution.
In my experience you'll get constructive and usefull tips and suggestions to improve your code and ideas to expand its functionality.
The worst that could happen is that you'll get no response by lack of intrest. But I suppose you'll survive that.
Just list it. Eddy
|
|
Logged
|
|
|
|
Matt
Developer
member is offline


Gender: 
Posts: 210
|
 |
Re: Easily add stuff
« Reply #6 on: Oct 10th, 2013, 05:26am » |
|
on Oct 7th, 2013, 1:27pm, Edja wrote:On this forum I've never seen anyone "tearing to shreds" someone else's contribution. |
| My appologies, Edja. My intension was to imply that others with far more experience and expertise might find the coding primative and crude, thinking to themselves, "why this way, that's just daft". Not that they would write damning reports about it on here.
If others are willing to help produce a community edition, I'm more than happy to list it here. Although, it is long (142 lines) and would be better suited to being place on somewhere like the Wiggio site.
Anyone interested? And where shall I put it?
Matt
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: Easily add stuff
« Reply #7 on: Oct 10th, 2013, 09:12am » |
|
on Oct 10th, 2013, 05:26am, Matt wrote:| And where shall I put it? |
|
That's a good question! With Yahoo having broken the Files List functionality (you can no longer link to an individual file, AIUI) that is no longer suitable. Options you could consider are:
The files folder of the Wiggio group. Although it seems the group is unsuitable as a replacement for Yahoo, its files repository appears to work OK and I believe it can be accessed by non-members. Personal web space, if you have any (e.g. provided by your ISP as part of your broadband package). The Public folder in a free Dropbox account Richard.
|
|
Logged
|
|
|
|
Matt
Developer
member is offline


Gender: 
Posts: 210
|
 |
Re: Easily add stuff
« Reply #8 on: Oct 10th, 2013, 8:46pm » |
|
OK.
It's in the Wiggion Temp folder: DLGLIB.bbc
http://wiggio.com/#tpl=folderlist_1911366
Please feel free to make any constructive comments. The file is uploaded purely as is. I have made no adjustments.
Matt
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: Easily add stuff
« Reply #9 on: Oct 10th, 2013, 9:10pm » |
|
on Oct 10th, 2013, 8:46pm, Matt wrote:| It's in the Wiggion Temp folder: DLGLIB.bbc |
|
I think only members will be able to access it that way, and I certainly don't want more people joining just to be able to download it! Click on the button to make a link, then publish the link, that way everybody will be able to access the file.
I'll save you the trouble this time, but in future that's the best method to use (everybody take note please):
http://wiggio.com/yui/folder/stream_file.php?doc_key=o7Jktoc8GfH9zZPXoTRxC0n8y2cBIJbHocRLDacLjyo=
Richard.
|
| « Last Edit: Oct 10th, 2013, 10:06pm by admin » |
Logged
|
|
|
|
Matt
Developer
member is offline


Gender: 
Posts: 210
|
 |
Re: Easily add stuff
« Reply #10 on: Oct 11th, 2013, 05:36am » |
|
on Oct 10th, 2013, 9:10pm, Richard Russell wrote:Click on the button to make a link, then publish the link, that way everybody will be able to access the file. |
| Hadn't noticed the 'link' link. I was trying to copy a link to the Temp folder, which I found didn't work anyway. Will do it that way in future. Thanks. Matt
|
|
Logged
|
|
|
|
Edja
Developer
member is offline


Posts: 60
|
 |
Re: Easily add stuff
« Reply #11 on: Oct 11th, 2013, 09:32am » |
|
Would you have a minimal program somewhere that uses this libraries' functions just to demonstrate the "mechanics" ?
|
|
Logged
|
|
|
|
Matt
Developer
member is offline


Gender: 
Posts: 210
|
 |
Re: Easily add stuff
« Reply #12 on: Oct 11th, 2013, 5:25pm » |
|
on Oct 11th, 2013, 09:32am, Edja wrote:| Would you have a minimal program somewhere that uses this libraries' functions just to demonstrate the "mechanics" ? |
| Not really. I've just been adding to the lib whenever I've wanted to do something different. I could write something if you wanted, but it might take some time. All I would do is produce a comprehensive array of controls in a dialog box and throw a few of the library elements about. Not exactly a great demonstration, though.
Matt
|
|
Logged
|
|
|
|
Edja
Developer
member is offline


Posts: 60
|
 |
Re: Easily add stuff
« Reply #13 on: Oct 12th, 2013, 11:49am » |
|
on Oct 11th, 2013, 5:25pm, Matt wrote:| All I would do is produce a comprehensive array of controls in a dialog box and throw a few of the library elements about. Matt |
|
Still, this would be useful (if not too much effort !!) Eddy
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: Easily add stuff
« Reply #15 on: Oct 13th, 2013, 11:30am » |
|
on Oct 13th, 2013, 10:30am, Matt wrote:| OK. Slightly edited version of DLG_LIB.bbc |
|
Just a quick query. There are one or two places where you have used a WHILE..ENDWHILE loop when, superficially, a REPEAT..UNTIL or FOR..NEXT loop appears to be more appropriate. WHILE loops are slower than either of the other kinds (because they involve searching through the code at run-time, which is inefficient) so they are best avoided if that is easily achieved.
It's no coincidence that the original BBC BASIC (on the BBC Micro) had FOR..NEXT and REPEAT..UNTIL but not WHILE..ENDWHILE!
Richard.
|
|
Logged
|
|
|
|
Matt
Developer
member is offline


Gender: 
Posts: 210
|
 |
Re: Easily add stuff
« Reply #16 on: Oct 13th, 2013, 3:25pm » |
|
on Oct 13th, 2013, 11:30am, Richard Russell wrote:| There are one or two places where you have used a WHILE..ENDWHILE loop when, superficially, a REPEAT..UNTIL or FOR..NEXT loop appears to be more appropriate. |
| You're probably right. I think the reason I chose WHILE..ENDWHILE is the avoidance of a conditional line to check to see if the second value was 'less than' the first. However, in a procedure that might well require a significant number of loops to complete, a conditional line may well be advised.
Matt
|
|
Logged
|
|
|
|
Matt
Developer
member is offline


Gender: 
Posts: 210
|
 |
Re: Easily add stuff
« Reply #17 on: Oct 13th, 2013, 3:52pm » |
|
on Oct 13th, 2013, 11:30am, Richard Russell wrote:| WHILE loops are slower than either of the other kinds (because they involve searching through the code at run-time, which is inefficient). |
| Out of pure curiosity, I tried some rudimentay experiments and seemed to find that the REPEAT..UNTIL loop had a similar (if not slightly longer) loop time to that of WHILE. Does REPEAT not have to search as well? From previous posts I'm aware that FOR does not recheck a TO <numeric> unlike UNTIL <t-cond> or WHILE <t-cond>? Am I getting somewhere, or am I off the track? This seems to be basic stuff that I should already know, but obviously I don't. 
Matt
|
|
Logged
|
|
|
|
|