How to wean from the Goto / Gosub style programming?
Posted: Sun Mar 31, 2013 2:32 am
My friend programs on PureBasic of nearly 7 years.
You could see its game: http://www.purebasic.fr/english/viewtop ... 14&t=54133
[source code sample: https://dl.dropbox.com/u/6439155/Otter%26Fench.pb]
However its level and style of a code doesn't develop absolutely.
It as well as uses 7 years ago GOTO and GUSUB.
Loads pictures separately, doesn't use a constant, variables calls short names, doesn't use structure, etc.
As a result the code 3-4 times bigger turns out than had to be, and anybody except the author can't understand it.
Couple of words about the person:
It programmed 6 years on the Z80 assembler for ZX Spectrum (did games). And as wrote 8 bit music.
Now it has a musical group. as it issues the magazine and writes books.
From everything the person of a humanitarian is higher listed clearly that.
It is all about it? Or matter in traits of character? (sees things as a whole, but isn't able to concentrate on trifles)
You could see its game: http://www.purebasic.fr/english/viewtop ... 14&t=54133
[source code sample: https://dl.dropbox.com/u/6439155/Otter%26Fench.pb]
However its level and style of a code doesn't develop absolutely.
It as well as uses 7 years ago GOTO and GUSUB.
Loads pictures separately, doesn't use a constant, variables calls short names, doesn't use structure, etc.
As a result the code 3-4 times bigger turns out than had to be, and anybody except the author can't understand it.
Couple of words about the person:
It programmed 6 years on the Z80 assembler for ZX Spectrum (did games). And as wrote 8 bit music.
Now it has a musical group. as it issues the magazine and writes books.
From everything the person of a humanitarian is higher listed clearly that.
It is all about it? Or matter in traits of character? (sees things as a whole, but isn't able to concentrate on trifles)