Completing C code with D style

forkit forkit at gmail.com
Thu Nov 11 22:10:04 UTC 2021


On Thursday, 11 November 2021 at 21:13:03 UTC, Stanislav Blinov 
wrote:
> On Thursday, 11 November 2021 at 00:11:07 UTC, H. S. Teoh wrote:
>
>> It depends on what you're doing. In the OP's example, yeah 
>> worrying about allocations is totally blowing things out of 
>> proportions.
>
> But that's the thing. How would one ever learn to know where 
> that dividing line is if all the learning material they see 
> teaches them the opposite - to not know or care?

It's called 'staged learning'.

Staged learning is the only way for humans to learn, due to the 
limitations of the human cognitive system. Specifically, the way 
short-term memory and long-term memory facilitate learning.

Those who lack this understanding of how humans learn, tend to 
throw too much at novices.

Also, this apparent drive towards requiring novices to understand 
the implications of their code, in terms of optimising the 
assembly that gets produced, is just nonsense. They'll never get 
pass the for loop!



More information about the Digitalmars-d-learn mailing list