I’m thinking about learning ruby and python a little bit, and it occurred to me, for what ruby/python is good for? When to use ruby and when python, or for what ruby/python is not for? 🙂
What should I do in these languages?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They are good for mostly for rapid prototyping, quick development, dynamic programs, web applications and scripts. They’re general purpose languages, so you can use them for pretty much everything you want. You’ll have smaller development times (compared to, say, Java or C++), but worse performance and less static error-checking.
You can also develop desktop apps on them, but there may be some minor complications on shipping (since you’ll usually have to ship the interpreter too).
You shouldn’t do critical code or heavy computations on them – if you need these things, make them on a faster language (like C) and make a binding for the code. I believe Python is better for this than Ruby, but I could be wrong. (OTOH, Ruby has a stronger metaprogramming)