Recent Posts

Pages: « 1 2 3 4 5 6 7 8 9 10 »
61
OxygenBasic / Re: O2 Arrays / BASIC Standardization
« Last post by Eduardo Jorge on September 13, 2022, 05:11:00 PM »
Johan Klassen

"goto" and "gosub" created spaghetti code when they were the only ways to structure routines.
"gosub" nowadays is just to avoid creating functions for small routines.
already "goto" I use a lot, "IF" condition "Then" "Goto"
and nowadays the numbers of lines are not used anymore, the labels can be very descriptive, much more than the names of functions.
62
OxygenBasic / Re: O2 Arrays / BASIC Standardization
« Last post by Eduardo Jorge on September 13, 2022, 03:04:20 AM »
Zlatko
no one is doubting your ability.
but the inclusion of multidimensional arrays doesn't denigrate the "O2", it just makes it more practical to use.

just take things more in sport, we are exchanging ideas, or just chatting, not only about "O2" and not only about personal tastes, but about what can bring more visibility about "O2" and about "BASIC ", even if it doesn't lead to anything, it helps us to calm our sorrows

I didn't know you were aurel, so I had no way of knowing that you had written aureledit, I even praised your work and you came to me with irony saying that I had written it,
I don't know if my words had a different meaning using the translator, but I had already exposed that fact and I even apologized for it.
this discussion is only getting in the way of Chales' excellent work.
about "then" , I just exposed the fact that one has it and the other doesn't, "O2" allows both ways of writing and that makes it easier to use ready-made codes.

PEACE.
63
OxygenBasic / Re: O2 Arrays / BASIC Standardization
« Last post by Zlatko Vid on September 12, 2022, 08:12:15 PM »
wait a moment to you two...

what is rude,crude or non-sense?
I am user of o2 more than 10 years and i know what is what in general.

so ..i might be stupid but i made very unique
in ay sense
token interpreter in Oxygen Basic without anyone help
without UDT,without multi-dimensional arrays, without OOP or any other
similar fancy things  >:(
64
OxygenBasic / Re: O2 Arrays / BASIC Standardization
« Last post by Johan Klassen on September 12, 2022, 06:09:39 PM »
hello Eduardo Jorge :)
I disagree that gosub's and goto's would inevitably lead to spaghetti code, gososub' are ok if the programmer self-imposes some basic restrictions
1: clearly delineate the start and end of the routine
2: only 1 entry point
3: don't use goto to jump outside the routine

Quote
on my shelf there are 2 books that I thought would be a bad read, so I ignored them, and never picked them up to read, you have the right to do the same about what I write.
I agree, I do that with Zlatko Vid aka aurel posts, his posts are usually crude and sometimes rude but mot of the time nonsense
65
OxygenBasic / Re: O2 Arrays / BASIC Standardization
« Last post by Eduardo Jorge on September 12, 2022, 12:21:03 AM »
the subject is standard from "BASIC",
it's not what the O2 has or doesn't have, nor what you or I like to use.

on my shelf there are 2 books that I thought would be a bad read, so I ignored them, and never picked them up to read, you have the right to do the same about what I write.
66
OxygenBasic / Re: O2 Arrays / BASIC Standardization
« Last post by Zlatko Vid on September 11, 2022, 11:47:41 PM »
what you talking about ?

then exists in o2 keywords....but i hate to use it
it sucks if you ask me

every REAL language have GOTO
GOSUB is nice and o2 have it ...so please stop "with wall of text about nothing"

then? OMG
67
OxygenBasic / Re: O2 Arrays / BASIC Standardization
« Last post by Eduardo Jorge on September 11, 2022, 11:35:15 PM »
Charles
I think people think that goto and gosub will bring back the spaghetti code.
forget that at the time it was the only way to have independent sections, there is still the case that nowadays the line number is no longer used to indicate where it is jumping.
occasionally they help to have faster and smaller code, in my case I prefer using conditional jumps than using conditional loops.
gosub sometimes helps me to define the logic of what I'm writing but then I write without it.

well remembered on the basis of multidimensional matrices, VB'a also uses column order,
having the selection option will help you migrate projects

but seriously, this default in basic made such a mess that it was practically impossible to migrate between basic
see the simple case of "IF", which code does not have "IF"
in one there is no "then", each one has a way to end "End, endif, end if", I think I've seen one there that is called basic but uses ")" to end the "IF"
has its own MS that made a kind of successor of VB , but uses "endfor" instead of "next"

it would be good to have an agreement on the syntax of the base between so many developers, what could be added to standardize the various existing basics would bring a lot of strength to the language, it would help even those who market it,
like, the ones that use the " if " without the " then ", if you added the option to use the " then " for example, whoever took the " Goto " put it for default reason " uses who wants ",
you have done a great job in this regard, it's a pity and the others just think about their personal taste, or their pocket and create a dialect that those who adopt cannot easily go to another one.
68
OxygenBasic / Re: o2_050P6
« Last post by Zlatko Vid on September 11, 2022, 07:29:07 PM »
Quote
Hi Aurel,

Do you have a permanent link for AurelEdit, where interested users could get your latest versions?

In the long term, I plan to drop Scintilla as an IDE-core and use RichEdit instead, because it works with Unicode. Perhaps you might be interested in doing the same? In any event I can retain the Scintilla folder in projectsC, available on GitHub but not part of the main package.

I also have a tool which is far more powerful than the current Oxide. It's the FindEd utility, which enables coders to track keywords over hundreds of files simultaneously. It is bare-bones at present but it has totally transformed my coding experience managing o2.

Hi Charles
permanent liink is on sourceForge OxygenBasic site under Discussion board:
https://sourceforge.net/p/oxygenbasic/discussion/1224583/thread/5acd9a239e/

is that mean if you drop scintilla that you will remove Scintilla folder from o2 package?

RichEdit ..are you sure , richedit have lot of limitations,syntax coloring,flickering..etc and is slow
and develop such a editor from ground would be frustrating.
I really don't know for any good richedit control based editor written in any indie compiler
(only strange MASMbasic written by jj2007 written in MASM..far away from anything solid).

well ..i don't know for FindEd ..and what is that ?
69
OxygenBasic / Re: O2 Arrays / BASIC Standardization
« Last post by Charles Pegge on September 11, 2022, 06:51:50 PM »
I think a standard BASIC should definitely include gosub and goto. They are most valuable for occasional use, o2 won't be dropping them any time soon.

I've now coded both static and redimable multidimensional arrays but it will need a period of careful testing. We can set the index-base and select column-major order as in PowerBasic, or row-major order (default) as in C and FreeBasic.
70
OxygenBasic / Re: o2_050P6
« Last post by Charles Pegge on September 11, 2022, 06:11:39 PM »
Hi Aurel,

Do you have a permanent link for AurelEdit, where interested users could get your latest versions?

In the long term, I plan to drop Scintilla as an IDE-core and use RichEdit instead, because it works with Unicode. Perhaps you might be interested in doing the same? In any event I can retain the Scintilla folder in projectsC, available on GitHub but not part of the main package.

I also have a tool which is far more powerful than the current Oxide. It's the FindEd utility, which enables coders to track keywords over hundreds of files simultaneously. It is bare-bones at present but it has totally transformed my coding experience managing o2.


Pages: « 1 2 3 4 5 6 7 8 9 10 »