Hello. I recently started a superficial study of JS. Here I asked a question about it, but I was told that it was better to do C ++. Tell me, what is more practical, easier, gives more opportunities? As far as I know, JS does not require anything, and C ++ requires a compiler. If not difficult, advise along with arguments and links. I would be very grateful.
Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants of Shilgen , VenZell , Nicolas Chabanovsky ♦ 20 Apr '15 at 7:10 .
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
- oneUzhOs :) You shouldn’t burden yourself with C ++ if you want to stupidly build saytik about trips to Egypt%) Or for yourself ... C ++ Compiled language requires compilers and various gadgets. Maybe I’m bad at it but for you it’s better to sit on JS ... So far ... When the time comes and you think that you have little JS not in words (In the argument what he can and what doesn’t) - Voooot then ... Go to other languages ... - BomBom
- I do not want to stupidly build Saitics about a trip to Egypt. I want to connect my life with this, as well as my career. But I need to start with something. Much more I am attracted to web design, so initially I am set to JS. - Yegor Eremin
- If you want to become a professional programmer, learn math and theory of algorithms. And nevazhnye languages still have to learn. - skegg
- @ vendetta8247 If you asked a question and you didn’t like how you were answered ... Then I'm sorry ... Understand yourself then ... - BomBom
- oneBetter start with PHP (C like language) will be easier to switch to ++ and it’s web language (more or less) - Goldy
8 answers
In general, a strange opposition ... These are two different languages, created for completely different purposes and having completely different purpose. If you are just starting to learn programming, then it is better, of course, not to start with JS, since it is a rather narrowly focused language. Better C ++ or even C since it is simpler and shorter. These are general purpose languages, JS is mainly used for web programming. Using it for other purposes is exotic.
For C / C ++ you need a compiler. Which is better to choose here has been discussed repeatedly. But I repeat. For a beginner, the Dev-C ++ development environment is better, in my opinion. Simple, free, but quite powerful. Uses the gcc compiler.
- But tell me, is JS really so complicated that you can't master it yourself? Some people just said that. I’m just exactly interested in the web - Yegor Eremin
- I'm not very big in it, but what I was looking at seemed to me very basic. At least on the surface. There are big compatibility issues with different browsers, but this is a different level of work. The basis of the language is quite simple. - skegg
- In general, from my life experience I will say, on my own, I definitely will never be able to master the Chinese language. And driving a car. Everything else can be mastered by yourself. Well, or almost independently. - skegg
- Well, if you do not think about cross-platform and do not lay out in public, but purely for yourself, then probably there will be no problems? Thanks for the advice. We will read ... - Egor Eremin
- if the web is interested, then the choice is obvious - js + html, and then you can learn the programming language. - makregistr
Arguments? It's hard to imagine where to start. I think you need to start with goals. They have completely different, almost disjoint applications. Decide what you want to start.
C ++ is undoubtedly good for teaching programming, as it gives an opportunity to understand how a computer works and how programs work. Feel for algorithms, etc. In this sense, javascript is a bad fit. Most likely, if you start with it, then if you do not have big talents and / or a strong sense of purpose, then nothing good will come of it.
- > C ++ is undoubtedly good for learning programming. Do you want to say C? - Vladimir Gordeev
- Both ....... - cy6erGn0m
- I do not want to overestimate myself, but it seems to me that this is what I have (purposefulness). I actually have several goals. I am attracted to the creation of various thematic sites, it is interesting to do something that will facilitate web surfing. And it would be very interesting to write some interesting program on an android. In my dreams, creating cool software or even game-building (I have experience working with 3D models and flash, though small). - Yegor Eremin
- @ vendetta8247 UzhOs 2x: D <br> <br> VladimirVG you are a genius :) - BomBom
- @Fatahan I mean? Do not like my aspirations? At this point I decided that I wanted this. And what goals I will pursue - I am determined now. - Yegor Eremin
@ vendetta8247 Attention alternative option for you! Learn Java and not JavaScript :) - It also does a little bit on the web and uses it in games (MinéCraft Forever) and for phones and in all kinds of Androids it works (if you consider half of the applications on it for phones and it is written) - Especially since according to statistics it is one of the most used (Although the indicator is already falling a little bit) - therefore it is in demand. So Java in your hand (and the keyboard in the other) :).
- Already thought about it ... Interestingly enough. Thank you, read about him. Maybe I will start mastering! - Yegor Eremin
Quote: "The effectiveness of the programmer when working with an unfamiliar programming language is reduced by an average of 20%." Language does not matter. The programmer chooses a language based on the tasks assigned to him. It is necessary to learn to program, and not to learn the language - this is still the good old Uncle Stroustrup said.
JS program runs on the client (browser). Without interaction with the program on the server, it (for the most part) is meaningless. The server program can be written in C ++ (C, PHP, Perl, Python, Java, etc.).
By the way, if you're just starting programming, why not look at Python ? Excellent language (although I do not know how it is as the first). In addition, both the server and the client side of the web application can be written on it (and in Java). And in android they can be used.
About the compiler you worry in vain, it all sways absolutely free.
Successes.
- Thank you very much. I am not worried about the compiler, but rather just interesting! - Yegor Eremin
Learn Java! I myself started with VB, then firmly stuck in Delphi. At the university, I had to do C ++, then poyuzal C #. And now I think that I made a mistake - it was necessary to initially engage in Java, which is suitable for many areas. Moreover, it is the most rated language.
uh how to say js is a language for web programming.
if you are to this, then you JS and PHP is the best option.
but if you want to learn how to program too, then learn C / C ++. learn more, great opportunities. JS is more (or rather mostly) for writing websites, but I think it’s not difficult to switch from one to another.
Threat I myself started with JS, but I blew up the mosk myself ..
Once, almost 10 years ago, I also asked myself this question, but I didn’t seriously think about the choice, since it seemed to me that its cross-platform solution was decisive, but if you produce any file manipulations, then ++ has no competitors. But IMHO everything that could be written to work with the file system has already been written. JS definitely!