Answer the question
In order to leave comments, you need to log in
Is it worth learning to program the old fashioned way?
I study at school in the 10th grade, in the physics and mathematics direction with profile computer science they teach us the C language. So I have a question: if I want to connect my life with programming, do I need this experience, just our teachers teach us the way they taught them and that was oh so long ago. Well, for example, why is it bad that the for loop counter variable is declared inside it, and not at the beginning of main ()? And is C still relevant as a programming language in the 21st century, or is OS even written in something higher? Of course, I understand that sex with pointers develops the brain, and an understanding of basic data structures is simply necessary, but will I develop bad habits associated with constant monitoring of memory, will it bother me that I often use constructions like "pointer to pointer" (for example, when working with linked lists),
PS I started to study the pros in order to delve into the OOP. they seem to me the most natural consequence of C with objects. Am I mistaken in my undertaking, do I need to learn something like java right away?
PSS Actually, this kind of programming seems quite interesting to me, does the C/C++ market even require specialists?
Answer the question
In order to leave comments, you need to log in
but will I not develop bad habits associated with constant monitoring of memory
when I was at school, they taught me ms office in computer science ... how I envy you
1. In programming, the language does not matter.
2. The C language was developed to port UNIX OS code to various hardware platforms. In short, as long as programming exists, the C language and its descendant C++ will exist.
3. The only way to learn programming is by reading books.
4. First learn to write programs, and then you will be surprised to find that you know all programming languages
There is an old wisdom "the better a person knows c, the more difficult it will be for him to switch to c++")))
Let me explain, if we consider c++ improved c, then there are no problems.
The difficulty comes from the fact that there are two (+) programming paradigms "procedural" and oop. It's more of a way of thinking. Think of a model that you describe as a kind of algorithm and data, or as a relationship and interaction of objects. So the more you get used to one way of thinking, the more difficult it is to learn another.
C itself aims to describe the system as data and procedures (functions) on them. It now has its own scope. Controllers, drivers, etc. Also, procedural programming is useful in the development of algorithms.
But now the market is taken over by OOP. Those. ordinary programmer is an oop programmer.
I think you need to understand this. Understand how language affects thinking.
And you will be happy)))
it's bad that the for loop counter variable is declared inside it
Will it bother me
because it greatly reduces the comprehensibility of the code.
don't I need to learn something like java right away?
Robotization of production, trading floors, auto / air ... is and will be in full swing.
And specialists will be needed to write programs, information security specialists, etc.
Yap C (C) is one of the main Yap, which is used and will be used for a very long time for the functioning of all of the above and not only that ...
As for the fact that you are tormented by doubts "they teach the old fashioned way", then the way out is simple buy a book for example :
"The C programming language. Lectures and exercises ” Stephen Prata
Master C in this book and at the same time master English. lang. + algorithms + databases +...
And is C still relevant as a programming language in the 21st century, or is OS even written in something higher?
C / C ++ is relevant, this family has a huge ecosystem.
As for habits: not always, but often it is worth writing slower and easier to read code than fast but unreadable.
On account of the correctness, we start with crosses: each language has its own implementation of the same OOP, and having learned one language, you will consider the OOP of this particular language to be the most correct, but in fact you will only work with the implementation of the same OOP, and not generalized principles. The same golang lacks inheritance, but there is aggregation and embedding, there is also prototypal oop as in js...
C/C++ gives a good understanding of the basics, but in any case, if you are going to connect life with programming, then you will try to learn more than one language and choose what you like / what you will be paid for
And we had BASIC at school.
And I could not understand from your question - what does school and C have to do with it?
In general, you are very lucky.
Of course, I understand that sex with pointers develops the brain
1) OOP is an ABSTRACTION, and it is incorrect to say that C ++ has OOP, but not C. It's like saying that C++ has buttons and C doesn't. Look at the code of any good project and you will see a huge amount of OOP.
2) is si relevant today? Definitely yes. But you also need to know C++. In the same way, a C++ learner needs to know C. These are the vacancies today.
Then look in the direction of multiplatform QT or the prospect of the Python language ... I think C may not come in handy later ...
Well, for example, why is it bad that the for loop counter variable is declared inside it, and not at the beginning of main ()?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question