Does it make sense to learn how to program under dos?
In the courtyard of 2008, and on almost every computer on which Windows stands, this same Windows is either XP or Vista. Windows has long ceased to be based on dos, but its emulation was left for backward compatibility. In fact, dos died forever.
However, in all educational institutions, programming in languages such as Pascal and C ++ begin with dos. Of course, I understand that most teachers do not want to recognize change, because then you have to relearn. But in this case, I think this is already too much. DOS emulation has long been controlled by the operating system, the processor is in protected mode, and will not allow us to do many things.
Why learn to write programs to emulate a dead operating system? Why not start learning windows programming? I do not want to say that you need to start right away with programming windows, under win32 you can also make console applications for studying the operation of pointers, etc., and these will be really full-fledged win32 programs that do not need emulator crutches.
In any case, you will first have to use some constructions as spells, because without them even the simplest program cannot be written, and without an appropriate base it is impossible to explain what this means.
For example, I remember tormented by the line void main (void). What does it mean? Why void? Why not int for example? And what does this void mean? I had to write without thinking.
And only then did the gaps gradually begin to fill up.
But programming under dos and windows differ. As a result, it turns out that people are given absolutely useless knowledge.
So why learn to write under dos? Why not start right away with the OSes, which the programs will eventually be written for?
And so it happened chaotically ...
However, in all educational institutions, programming in languages such as Pascal and C ++ begin with dos. Of course, I understand that most teachers do not want to recognize change, because then you have to relearn. But in this case, I think this is already too much. DOS emulation has long been controlled by the operating system, the processor is in protected mode, and will not allow us to do many things.
Why learn to write programs to emulate a dead operating system? Why not start learning windows programming? I do not want to say that you need to start right away with programming windows, under win32 you can also make console applications for studying the operation of pointers, etc., and these will be really full-fledged win32 programs that do not need emulator crutches.
In any case, you will first have to use some constructions as spells, because without them even the simplest program cannot be written, and without an appropriate base it is impossible to explain what this means.
For example, I remember tormented by the line void main (void). What does it mean? Why void? Why not int for example? And what does this void mean? I had to write without thinking.
And only then did the gaps gradually begin to fill up.
But programming under dos and windows differ. As a result, it turns out that people are given absolutely useless knowledge.
So why learn to write under dos? Why not start right away with the OSes, which the programs will eventually be written for?
And so it happened chaotically ...