Beginners Example
Posted: Wed Jul 07, 2021 10:04 am
Hello All
I don't want to comment on the coding side of things since there are others far better qualified than me to do so.
However, largely because of comments in other forums, I felt it may be worth flagging up some things to bear in mind when programming a .Net Application.
Just one really: .Net brings computational electronics close to what we do in real life. But miss-understandings can occur.
The fact is in real life we can go somewhere and do something.
OR
we can go somewhere and do nothing.
These two options can lead us to think there is only one thing we can do.
But in fact both these options are equally valid and one is dependent on the other. So any thinking or action must always take into account Two interdependent alternatives not One.
This makes it difficult, if not impossible, to answer any question that asks for a Yes/No type answer.
The fact is that the electronics enables us to go somewhere (in computer memory) and do something.
OR
go somewhere (in computer memory) and rather than do nothing as in the real world, simply wait.
Wait - in the real world for someone else to do something for us - in the electronic world wait for another thread to do something on behalf of our program.
If our program does not have a thread to do something for us we would wait for ever, or lock up - hence the Ctrl-Alt-delete option on our pcs.
So it's all to do with threads, and the Garbage Collector concentrates all thread manipulation in respect of .Net memory control in one place. (Note .Net Memory is a subset of total memory).
Knowledge of the workings of the GC is not necessary, but it means programmers can think of their programs in the same way as how they would do things in real life and then commit to code.
Hope that makes some sense.
Terry
I don't want to comment on the coding side of things since there are others far better qualified than me to do so.
However, largely because of comments in other forums, I felt it may be worth flagging up some things to bear in mind when programming a .Net Application.
Just one really: .Net brings computational electronics close to what we do in real life. But miss-understandings can occur.
The fact is in real life we can go somewhere and do something.
OR
we can go somewhere and do nothing.
These two options can lead us to think there is only one thing we can do.
But in fact both these options are equally valid and one is dependent on the other. So any thinking or action must always take into account Two interdependent alternatives not One.
This makes it difficult, if not impossible, to answer any question that asks for a Yes/No type answer.
The fact is that the electronics enables us to go somewhere (in computer memory) and do something.
OR
go somewhere (in computer memory) and rather than do nothing as in the real world, simply wait.
Wait - in the real world for someone else to do something for us - in the electronic world wait for another thread to do something on behalf of our program.
If our program does not have a thread to do something for us we would wait for ever, or lock up - hence the Ctrl-Alt-delete option on our pcs.
So it's all to do with threads, and the Garbage Collector concentrates all thread manipulation in respect of .Net memory control in one place. (Note .Net Memory is a subset of total memory).
Knowledge of the workings of the GC is not necessary, but it means programmers can think of their programs in the same way as how they would do things in real life and then commit to code.
Hope that makes some sense.
Terry