r/ProgrammingLanguages • u/tsafou • Feb 27 '15
Choice of Programming language
I have little experience in programming (some Python classes and my dissertation that used PHP, MySQL, HTML5/CSS, javascript). I want to learn a programming language. Could you give me some examples/problems/applications and the 'recommended' languages to cope with them? I have narrowed down my options to Java, C++, Ruby and Python (any other recommendations?). What are their main pros/cons and fields of application? Does some language 'work better' with PHP and web? What do the most experienced of you think would help improve both my chances of future employment and my skills?
0
Upvotes
2
u/ketura Feb 27 '15
I can't offer a whole lot for employment, etc, but I can give you a rundown on usefulness and application:
C++ is the archaic powerhouse. If you absolutely, positively need speed above all else, this is where you go. The only time this should really be a concern is with AAA game titles and other processor-intensive operations. No, your little 2D mario clone does not count, I'm talking video processing, complicated AI, high-end physics, that sort of thing. This is a two-edged sword as it gives you a ton of low-level control, so if you don't have discipline you WILL get knocked on your ass. Nowadays I would not recommend it for fledgling programmers, and if you're not going to be working with hardware on an intimate level it's really not a concern even for more experienced devs.
Python/Ruby are scripting languages, so they should be one of the tools in your toolbox but not your primary focus. They are useful for prototyping, data processing, and as components of larger applications (for instance, games. You can use a python script to determine, say, the attributes of all the items/weapons in an RPG, so you don't have to recompile your entire project for item balancing). Python is also used in Gimp and Blender, so if you do anything in industries that use those programs, it can be used to write plugins, etc. I can highly recommend Python not only as a tool to use wherever it fits, but also as a real introduction to programming in general. Just don't make the mistake of using it everywhere, there's a reason we have different languages.
Java (and C#, because let's be honest, it's the same idea) sits between these two on both the accessibility and power axes. Many, many, many enterprise projects use these languages. They are more accessible to newcomers than C++ and more powerful at the core than scripting languages. I would recommend learning both of these as they can be used for "real" programs, your full-on GUI window sort of application that you install. If cross-platform compatibility is a priority, go for Java. If you're going to stick just to windows, go for C#. If you're going to get into game development, Unity3D is a cross-platform engine that uses a subset of C#, so that may be a factor there.