STYLE
(C) 1996 Fes'kov Kuzma
Hello! Again with you
Category STYLE.
Often in the speech of programmers can hear such a word
as a "glitch" that is, error, negligence in the program and know
Do you, dear readers,
what on earth was this composer? Christopher Willibald Gluck.
Once he was walking down the street and accidentally broke a
window in a grocery store. Asked the owner how much is glass.
It turned out - a half francs. Gluck gave the ECU (three
franc), and when the owner began count the change, composer
stopped him:
- Do not trouble yourself, my dear, I
better to break one more glass ...
*
Well, let's say
it was
lyric by
NTRY in on
Shay heading,
however, it is possible
open from
delny section
if such
information on
taken much
it's up to you!
*
If you pom
filamentary, in asking
ly once we
Talked
about structured programming and
learned how to distribute their work so as to spend on
it as less as possible time.
As I said then about
structured programming
enough, today I will not talk about it in general, but I
still dwell on some
points that were not addressed last time.
Like any other scheme
scheme of the program is subject to certain rules:
1.Otvetvleniya from head
programs are strictly in the order
performance routines (strangely
would look scheme of the program print the sprite, if we first
drew a block drawing sprite, and then calculate the unit
address in the screen). This is called an equitable
subordination and depicted as:
As you can see,
the main block of this scheme, block 1
and Block 2 ravnop
equal. And izobra1 bl. 2 Bl. wives in order
repetition in the program.
2.Sleduyuschy kind of subordination,
this subordination:
As seen from
the main block of this scheme, the heads of
nym here is
Xia block 2 and block
1 unit 1 serves as a binder
schim link (under
be compiled data
Unit 2 nye, etc.).
3.I third type of submission -
attached submission:
How vidglavny block but this
circuit block
2 is
Unit 1 Unit 2 nested
to block
1, that is located inside the
(This may be a cycle
inside a procedure).
I have considered here the main
types of schemes, obviously, with these (core) structures
You can get more complicated,
I think an example of result is not needed.
Again, I want to remind you not get carried away excessively
structuring better select individual routines, and write them
scheme separately!
*
A theme of today's
Talk will design your
programs.
Yes, yes, this is to talk very seriously, because at
Today the problem
has become a stumbling block for
Many of our programmers. Here
because of that, and there we have
program of whole groups (some
paints, someone plays music, and
someone wrote the program itself).
Today I will address the most
important issues concerning this
problems. And since the topic
virtually inexhaustible, we'll talk about it almost
every article from the "Style".
The most urgent and important
problem facing the prog
rammistami on
the first stage cos
denmark software
this study
interface progressive
FRAMEWORK. Remember
how many times you
had an hour
mi sit
in front of a group
openly break
ratsya in any program, even if
at hand was her description? At this spent a lot of precious
time, as a result, either you put this program into a corner,
or just get rid of it, and meanwhile, it can be wonderful in
its capabilities program.
Consider the most commonly used interfaces:
1.Strelochny. This is an excellent
form of communication with the user system software. Here,
everything is clear and understandable. It would seem that
there is no any shortcomings in this interface, but, in
practice, carried away by the beauty, the programmer often
forgets about the program itself, about its purpose. And now
arrow is flashing, poured, there is a large, here a little. And
what about the program, please tell me why, such bells and
whistles to the program format (for example)? In my opinion, it
would be sufficient availability of most hands. It should be
noted also that some are trying to use the same interface in
all its programs without paying for it at then the suitability
of this interface program? Yes, yes,
Is the program as
people are extremely sensitive to
Moreover, in some "clothes" she wore. Recently I came across a
program, something like DIZZY, where hero is managed by the most
arrow, I will explain, you should
poke the arrow in the direction
where you want to go, well, stuff.
I tell you, play it clean
torment.
2.Menyu with the boat moving strip. This kind of interface
(it used in the shell of the journal)
most acceptable of all. He
suited to virtually any
program, whether it's the system, game, or anything else. This
interface is always accurate, as well as easy to use.
3.K third kind of interface
I'll take the menu, where every
point fixed some keys (you could meet him
when the program asks you
"Immortality 1-2-Normal
game).. Just like interface familiar to owners
Scorpio. What can we say about
this interface, as well as
arrow, it should be applied carefully, I do not recommend using
it if such items have you have more than 5-7, since it requires
the user to enhanced attention, as well as difficult
the program. From this situation there is a way - make a dual
control, both the key letters, for example, and using the menu
bar with the boat moving. This allows the user cause the most
frequently used options through keys, and the rest of the
cursor.
There are certainly a lot
other interfaces, but they
tend to be the elements
above. Suggest
a contest "The most friendly program." Write to us
work with some programs give you pleasure and do not
caused difficulties.
The next, equally important
aspect
writing
program -
this way
communication with
users
field.
As the set
th at ce
godnyashny
day prog
Ramm grew
sian authors
tori, which
torye
izesnyayut
Xia Us
in English
Scoma language.
It's very sad, I would even
called it a pathology. Dear
my, now, tell us who need this
your English, for example, I highly doubt that
west hunt for your programs, but the domestic
user suffers. Here are sitting at home, translate any game, and
then you drive by Company Inforkom comes even
lose heart when peredomnoy beautiful Russian programs in
English. I'll so I say - LIVE IN RUSSIA
Speak Russian!
And finally, the last thing I
I want today to talk to you,
this font design programs.
Take a look at the program of foreign programmers, you will
never do not see it in a program of
adventures in the castle with ghosts edakogo "fun" font, and
Playing on
adventures
multiplicative
gravitational lane
sonazha font
"Terrible"
that often
found in
programs
home
programmers.
In the program,
especially igro
howl, all long
zhno correspond to the plot, including
font, good, today it can make such programs
as Turbo font editor Starkova
Paul, Professional font editor
designed by me, as well as
program, which contain already
ready-made fonts. They open
in front of you great scope for
creativity, and common opinion,
that the format 8 of 8 can not create anything good, it does
true, you just have not tried!
Speaking of fonts, you should
say about their ergonomics, then
is how easily they
read. Do not get involved in all sorts of swirls and other
twists as this font
then it will be extremely difficult to read, this font can be
used when writing the name of the program, if you insert any
minor posts, but they should be avoided when printing large
amounts of text. Compare for example, how much you
spend time reading the first text and second.
Let's stop for today, but the subject is still open,
I'm waiting for your mail at
662613, Abakan, Leninskaya str
Komsomol, Building 3, Apartment 16,
Telephone (39022) 6-42-63