You can’t teach logic. Programming is 99% logic. The rest is mathematics (computers only understand numbers).
That is why there is no discussion. It’s like discussing how to breathe in order to start discussing plant life. Everyone who needs to know, already knows.
If you have never written a line of code in your life, you need to start at the beginning.
Microsoft do a series of tools for development call Microsoft Visual Studio Express (now Community). I suggest you download it (latest is 2019), and learn C++.
Here’s a basic program I ask everyone I teach to write software to analyze, pick apart, and not come back until they can tell me what every line of coding is doing (it’s a deceptively complex program for beginners, but contains 90% of what you need to get started).
int _tmain(int argc, _TCHAR* argv)
Explain to me what every single line does, and how it works.