Small things that can prevent bugs or are neat tricks do to something. But where a whole new topic seems a bit much.
Things that might a obvious for some, things you learned to do over time, or are in the manual, but you never noticed.
I start with one. Don't do this (as I did a few minutes ago):
Code: Select all
dim as integer i
'code
for i = 0 to 9
print i
'code
next
Code: Select all
dim as integer i
for i = 0 to 9
print i
'code
for i = 0 to 4
'code
print i;
next
print
next
Instead use:
Code: Select all
for i as integer = 0 to 9
print i
'code
for i as integer = 0 to 4
'code
print i;
next
print
next
Code: Select all
dim as integer iBox, iCorner
for iBox = 0 to 9
print iBox
'code
for iCorner = 0 to 3
'code
print iCorner;
next
print
next