• Language Help
    5 replies, posted
I want to learn either C++ or Python. I understand that they are simular, but not much more than that. I am currently taking a class for Java, but I rather learn something else. Any information, links, or anything is very much appreciated.
Python and C++ are not similar at all. But C++ is relatively similar to Java.
[QUOTE=Agent766;24938277]Python and C++ are not similar at all. But C++ is relatively similar to Java.[/QUOTE] Well, what is the difference between Java and C++? What do they do, and what are they good for? Same question for Python.
[QUOTE=Werem00se;24938244]I want to learn either C++ or Python. I understand that they are simular, but not much more than that.[/QUOTE] They're not really that similar. Yes, pretty much every modern OOP language shares the same concepts and features, but C++ and Python are pretty different otherwise. The differences are actually good. Python is designed with maximum "expressiveness" in mind (doing a lot with only a little code) and includes a massive standard library that gives you the tools to accomplish almost any goal very rapidly. C++ is lower-level and lacks Python's speed of development, but makes up for it in precise control and speed of program execution. Because C and C++ do everything Python doesn't do and vice-versa, the languages complement each other well. You can rapidly prototype your application in Python, then go back and re-write sections using Python's excellent C API. You get almost all the speed of a program written entirely in C++, without the extra development effort.
[QUOTE=ROBO_DONUT;24938362]They're not really that similar. Yes, pretty much every modern OOP language shares the same concepts and features, but C++ and Python are pretty different otherwise. The differences are actually good. Python is designed with maximum "expressiveness" in mind (doing a lot with only a little code) and includes a massive standard library that gives you the tools to accomplish almost any goal very rapidly. C++ is lower-level and lacks Python's speed of development, but makes up for it in precise control and speed of program execution. Because C and C++ do everything Python doesn't do and vice-versa, the languages complement each other well. You can rapidly prototype your application in Python, then go back and re-write sections using Python's excellent C API. You get almost all the speed of a program written entirely in C++, without the extra development effort.[/QUOTE] Thank you, and I have another question. What can I do with the program? What can I 'make'... Errr... Accomplish with each program. What set career/job/hobby/ect. would each Language be good for? I'm just looking for a hobby of sorts, I REALLY enjoy learning programming, and want to turn it into something productive.
[QUOTE=Werem00se;24938303]Well, what is the difference between Java and C++? What do they do, and what are they good for? Same question for Python.[/QUOTE] Java gives you all the tedium of C++ with none of the performance benefits. Java's niche is portability. Instead of writing code that executes directly on your hardware, as C or C++ does, Java compiles to bytecode and executes on a virtual machine (essentially a fake CPU with its own fake instruction set). This is why its popular with cell phones and such. Devs can write their apps in Java and they will execute the same regardless of the architecture or endianness of the device itself. [editline]02:54PM[/editline] [QUOTE=Werem00se;24938668]Thank you, and I have another question. What can I do with the program? What can I 'make'... Errr... Accomplish with each program. What set career/job/hobby/ect. would each Language be good for? I'm just looking for a hobby of sorts, I REALLY enjoy learning programming, and want to turn it into something productive.[/QUOTE] Facepunch is really into games programming. It's a good hobby, and something that's fun to show to friends. As for language, choose anything you're interested in. You're not limited by your first language. A large majority of the skills you learn will apply equally well to any language. After learning a few, you'll be able to quickly spot similarities/differences/potential pitfalls and you should be able to pick up any without much trouble.
Sorry, you need to Log In to post a reply to this thread.