📜 ⬆️ ⬇️

Is there any point in learning to program under dos?

In the courtyard of 2008, and on almost every computer on which Windows is installed, this Windows itself 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 irretrievably died.

However, in all educational institutions, programming lessons in languages ​​such as Pascal and C ++ begin with dos. Of course, I understand that most teachers do not want to admit change, because then they will have to relearn. But in this case, I think it is 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 with programming under windows? I don’t want to say that you need to start right away with programming windows, under win32 you can also create console applications for studying pointers, etc., and these will be really full-fledged win32 programs that do not need emulator crutches.
')
In any case, at first, some constructions will have to be used as spells, because without them even the simplest program cannot be written, and without the corresponding base it is impossible to explain what this means.

For example, I remember tormented the string 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 the gaps gradually began to be filled.

But after all programming under dos and under windows differ. The result is that people are given absolutely useless knowledge.

So why learn to write under dos? Why not start immediately with the operating system, under which the program will ultimately be written?

This is how it turned out messy ...

Source: https://habr.com/ru/post/27384/


All Articles