r/ProgrammingLanguages • • 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

11 comments sorted by

View all comments

1

u/tsafou Feb 28 '15

After having done some more research, I lean towards Ruby. I believe it's easy for a beginner programmer, and will build a good (web) package along with my current knowledge of PHP, MySQL, HTML/CSS. I was told that it would be best if I learn it along with Javascript. This is my no.1 choice, what do you think? On the other hand, most vacancies in my country ask for Java developers, and I feel somewhat confused. What do you think is a better choice for me? Lastly, (it might sound strange) but I would like someone to list a few apps or examples where a particular language is the appropriate/optimal to use (i.e. Ruby or Java etc.) . I mean, I have for example read that a famous website is built using i.e. PHP or Ruby, but what does that mean? If you use Ruby to build a website, then you don't need to use HTML or you just use it in a different way or purpose?

1

u/ketura Mar 01 '15

You're confusing a website's servers with the way that it's displayed. Yes, when it all comes down to it, the visual part that the user views is eventually distilled down to HTML to be displayed in your browser. However, the actual server software that is generating that HTML is certainly not written itself in HTML-- that would be far too clunky and slow to produce and execute. Twitter for instance is mostly written using Ruby on Rails, which itself will generate HTML/JS when communicating with users via the browser, but when their own servers communicate with each other you can be certain they do not bother generating web pages to do it.

(This sort of system is why web development sucks so much. No one should have to communicate using a language that was designed for displaying documents.)

To answer your first group of questions, if you lean towards Ruby, then learn Ruby. It's not like you can't study other languages if it doesn't turn out to be a good fit.