O
optimistx
In profiling it is typical that some few lines of the code take a major part
of the total execution time.
Graphically like this( letters a program part names, numbers time consumed
in time units) :
A: 0000000000 1111111111 2222222222 3333333333 4444444444 555555555 666
B: 0000000000 1111111111 2222222
C: 0000000000 1
D: 000
E: 00
F: 0
G: 0
H: 0
I:
J:
K:
L:
M:
N:
If one tries to reduce to execution time it is useful to concentrate to A,
and perhaps to B, C but
forget D..N totally.
This is probably a trivial fact for every reader when talking about program
execution time or memory usage.
But what about learning javascript, is there also this kind of phenomenon?
Some people seem to think linearly all the time: proceed pedantically from A
to N (or from N to A ), devoting as much time and attention to all the
items. For them there is no intermediate possibility: either one has know
thoroughly every item A, B,...N, or none.
Knowing A, B, C well and knowing very little or hardly anything about D..N
is very difficult to imagine for them. To change the attitudes, point of
views, or even imagine others to have different point of views is almost
impossible for them.
Of course, if one has much time in one's disposal, e.g. 10 years of full
time job in javascript and additional hobby time, one has learnt all the
items A...N thoroughly.
If one tries to simply express some rule of thumb or recommendation about
javascript here, e.g. about passing objects to functions , the discussion
goes from the essential A to random parts in K or L, and after a while a
non-expert has not any good idea, how things are. Or a simple, clear, easy
to understand and maintain example is rejected on the basis that it might
waste some microseconds during the whole lifetime of the program. Sigh.
If one tries to learn a new natural language, it is sensible to learn some
frequently used things first and not wait some years first to open one's
mouth publicly.
I would like to see the same to happen here: pedagocically correct approach,
concentrating to the essential things. Linear thinking has its advantages
at the most advanced level, but in learning it is better to simplify things.
of the total execution time.
Graphically like this( letters a program part names, numbers time consumed
in time units) :
A: 0000000000 1111111111 2222222222 3333333333 4444444444 555555555 666
B: 0000000000 1111111111 2222222
C: 0000000000 1
D: 000
E: 00
F: 0
G: 0
H: 0
I:
J:
K:
L:
M:
N:
If one tries to reduce to execution time it is useful to concentrate to A,
and perhaps to B, C but
forget D..N totally.
This is probably a trivial fact for every reader when talking about program
execution time or memory usage.
But what about learning javascript, is there also this kind of phenomenon?
Some people seem to think linearly all the time: proceed pedantically from A
to N (or from N to A ), devoting as much time and attention to all the
items. For them there is no intermediate possibility: either one has know
thoroughly every item A, B,...N, or none.
Knowing A, B, C well and knowing very little or hardly anything about D..N
is very difficult to imagine for them. To change the attitudes, point of
views, or even imagine others to have different point of views is almost
impossible for them.
Of course, if one has much time in one's disposal, e.g. 10 years of full
time job in javascript and additional hobby time, one has learnt all the
items A...N thoroughly.
If one tries to simply express some rule of thumb or recommendation about
javascript here, e.g. about passing objects to functions , the discussion
goes from the essential A to random parts in K or L, and after a while a
non-expert has not any good idea, how things are. Or a simple, clear, easy
to understand and maintain example is rejected on the basis that it might
waste some microseconds during the whole lifetime of the program. Sigh.
If one tries to learn a new natural language, it is sensible to learn some
frequently used things first and not wait some years first to open one's
mouth publicly.
I would like to see the same to happen here: pedagocically correct approach,
concentrating to the essential things. Linear thinking has its advantages
at the most advanced level, but in learning it is better to simplify things.