Thank you for your replies, guys. The way i comment dosnt really shine here on the forum. The "
" dosnt show how i actually see he comments. I have an Ascii table at hand, i also use the INSERT key to change cursor function (if it fits me better) and then just Alt+ ASCII code. After doin some commenting you start to remember some combinations and turn easier.
things like:
FOR i% = 0 TO 20 ' ┐ comment entire
array(i%) = 1 ' │ block here
NEXT i% ' ┘
i THINK them literally as "ALT191", "ALT179", and so...
But i do this lately, for a begginer commenting line by line sound lke a better idea. I have also seen a conference/class by Uncle Bob who was talking about "Clean code", and he did some mentions on comments. I recall things he said, like:
"If you see "for i = 0, i = 23, i++ ' increase counter" it's rather a stupid comment, and unnecessary. Comment things that really need to be commented. Else, read the code... the code is self explainatorie (and if not it's a disaster)."
Also i'm a hobbist, i don't have any rush to finish anything. I can sit for half hour just watching the code and thinking how can i say and ask for things in the most short and easier way, as long as they are self explainatorie. If it's a cryptic mess i try to rearrenge it to looks cleaner at view... and for the processor too.
About variable types with suffixes, i feel more comftable with them, i feel that i can keep track not just the variable name BUT ALSO IT'S TYPE, so i may have a variable name "number$" and another called "number%" (even this is dangerous)
B+: what you told me about SUB's make me remember about the SHARED stuff, so my question would be ¿If you have a variable on main program and another with same name, but inside a SUB, does the variable in main program seems affected by this other one? (as if the variable in the SUB were the main program one)?