Question:
Should I learn Python programming language to understand basics or should i jump straight to Java or C++?
2011-06-30 03:28:21 UTC
I am 15 and I have no idea about programming but I want to learn it. I just want to get an idea about some of the programming basics. So many people suggested me to learn Python. I have started learning it a bit from internet and it is quite good and easy. I plan to learn the basics with Python and then go to Java or C++ . Or should I just go straight to Java or c++. I know that Python isnt widely used.
Six answers:
CPlusPlus Guru
2011-07-03 15:38:04 UTC
I say, start with Python. True, it has a different syntax than the C-based languages, but it makes Python easy to learn and will not detract from the main issues. Also, Python has no arrays, no pointers, and no memory management, other than creating and modifying objects. And you don't have to declare types for variables (you can give any variable any value of any type at any time), or even declare variables - just create and use them when you need them.



After Python, learn Java. You will then learn the C-style syntax, arrays, the fact that objects' structure must always be known at compile time, and some memory management with the "new" operator (when you create an array, you have to decide how large).



After Java, learn C++. Constructors (which you will know from Python and Java), destructors (you may have some idea if you've written Java finalizers), operators new, new[], delete, and delete[], and, inherited from C, memory allocation and deallocation with malloc and free. Only then will you understand how things work under the hood.



C may be your next language. Sooner or later you will come across some C code and will need to understand it and possibly correct or extend it. But you probably won't be developing whole new projects in C. While I appreciated the beauty, power, and rationality of C, later I found the lack of object-oriented features to be stifling in most projects. Although I do like writing small Unix-style utilities in C, but mostly as a useful hobby.
green meklar
2011-06-30 15:43:53 UTC
C++ is tough for a beginner, but straight to Java is fine. If you want an even shallower learning curve, you can go with Javascript. I recommend against Python because it doesn't have a C-style syntax, it uses its own syntax so when you eventually move to C-style languages there's more you have to relearn.
grcunning
2011-06-30 10:51:00 UTC
It's all a matter of preference. By far the most popular languages in use today(especially in education), are the C derivatives ( C, C++, C#). If you know one of these, it will be far easier to learn others, like Java or Python.

I would recommend skipping C altogether and going straight to C++. C++ was designed to eliminate some of the nasty problems with C(the nightmare that is C's memory management, for example), and to add object oriented features, which are pretty essential today.

Good luck.
Karls
2011-06-30 10:49:38 UTC
go first with C++ then Java. then you can go with Python.. learn first the basics about Programming..

I admire your enthusiasm in learning programming. :)
BullSheet
2011-06-30 10:39:42 UTC
Start with C. I can give you Ebooks if you want. You're also going to need to learn about program design and logic so that it would be easier for you to learn how to script properly.
Bacalao
2011-06-30 12:25:05 UTC
Jump to Java =P



The rest suck lol.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...