PBasic Code Suggestions
Although ive come to love pbasic and how well it was written, i have noticed that alot of it takes VB as its inhertiance, I think that there are a few things that could be changed very easily which would make the coding standards a little bit easier... by taking in some of c++ standards i think you could gain alot more efficient· coding... such as
variable = variable + 1 translates to Variable++
the for loop could be changed also to be made simpler, im sure there are many other suggestions but i figured ide make a suggestion! thanks for listening!
variable = variable + 1 translates to Variable++
the for loop could be changed also to be made simpler, im sure there are many other suggestions but i figured ide make a suggestion! thanks for listening!
Comments
If you want to develop in a language/syntax similiar to c++, you should take a look at the javelin stamp. It has common elements found in java, like OO, exceptions and strings.
my .02
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
brackets would make the clarity of pbasic alot better, and the editor has to background color changer! it stays white regardless ide like to see that changed.
im sure you all agree that
IF(Variable < variable1)
{
variable++
}
looks alot easier then
if(variable < variable1) THEN
variable = variable + 1
ENDIF
maybe its because im used to reading c++ as thats where my core is. just my opinion!
I do prefer x++ or x += 1 over x=x+1, especially when the variable names are long.
Mike
Post Edited (MikeK) : 8/10/2006 2:11:40 AM GMT
/mourn VB6
I also never understood why Microsoft didn't make the VB files part of the default Windows installation. It made no sense whatsoever.
In the early years it may have bloated the basic Windows install a bit, but from the late 90s on, the additional disk space needed was trivial.
- Rick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com