I need some help, I'm PHP web developer and , I'm planning to learn Ruby On Rails or Python , I need to know which is the best , What are the advantages and disadvantages of these 2 languages, please help me to select one from these 2?
I prefer python, but its just my personal opinion, each language has its pros and cons, depends on your need, python is like a swiss army knife, though.
I prefer Ruby, but just like with matessim, it's a personal preference. I don't think you'd go wrong either way.
I think Ruby on Rails is better because it handles objects beautifully. Beware with Python though, one thing I don't like about it is that it's whitespace sensitive. For example, in order to make a block of loop, you don't enclose it in curly braces or whatever, you have to make sure that all in that block of loop are in the same whitespace like this: for i in range(10): print i print i+1 print i // this is NOT inside the loop! Code (markup): Which I personally don't like because it makes it less readable for me.
How does indentation by whitespace make it less readable to you? the same can be said of using curly braces which have no enforced structure ( bit lazy to give an example ). Don't criticize it till you try it, python is very readable (and fun). That being said, i am a python programmer, it is an excellent language. But the OP needs to really identify what he/she needs to accomplish work wise, i had a similar debate a while back so if performance/flexibility then go for python, if you're after speed(deployment time)/ease of use, then ruby is good. If you have to time, the why not pick up both ( i'm going to pick up ruby soon ). Lastly, i don't know how true this is now but being a ruby programmer was a pretty nice buzz word to have on your resume (if only for that), i would pick up ruby if only for that . Good luck
Just go with the best of both worlds, Django. It's a framework designed around Python. You get all the goodies of Python and quite possibly the best development times you can ask for without it dragging down your performance or feeling too restrictive. Here's a 3 hour long presentation of Django vs RoR. Be warned that it's from about 5 years ago so a lot has changed. It's pretty much the main guys behind Django and RoR sitting at a desk side by side going over what their frameworks offer and a Q/A session. http://video.google.com/videoplay?docid=2939556954580527226# A lot of the negatives of Django have been rectified since then (multiple database support, etc.).
It depends on the programmer's taste, but what OP has to understand with Python is that it's whitespace sensitive. I know Python. I have experience with it.. I know it more than Ruby actually. That's why I know where to criticize it. =/ Then again, Python teaches the programmer discipline in whitespaces. Really, each has its ups and down.
thanks all now i have some idea about these two languages , thanks all .. stile i'm noet started at both , Slill thinking and reading your comments ,
You see whitespace as a potential problem/annoyance but really it's not. Part of the reason why Python is so nice to use is that it's extremely good at doing things one way. Instead of having the option to do one thing a million ways and then worrying about if it's good or bad, Python is just modeled after doing it "the" way. This is just from a logic point of view, not ways to code a certain series of logic (ie. an application). Basically I'm saying the forced whitespace is just a way to consistently format your code. In PHP (never used rails but maybe rails too?) and other C-like languages you can sometimes omit the curly brackets, or you can format them in a different way (below a piece of a logic, right next to it, right next to it but 1 space, etc.). You can look at the code from 5 different people and the code could look different in every example. With Python it will look the same. It goes well beyond brackets vs whitespace too.
Well said. You definitely bring up good point. Ruby borrowed some syntax from C, so you can format them in a different way too.
It doesn't mean Ruby or RoR is bad. Personally I have about 5 years of experience in PHP and I've recently started to learn Python/Django and this was after spending a week of watching various conferences on Python, Django, and RoR. Python/Django just seemed like the better choice for me. I couldn't find a single reason to learn Ruby or RoR instead of Python/Django.
Well.. I certainly think ruby is better.Its the next generation technology and has already diverted minds of "loyal java clients". I have learnt it online from India. U get the best at an affordable price. For more info u can contact
Ruby is defo the best of those two. Here you can read something about it: http: //rrn.d k/ta gs/rub y
Both are good. I'm not an expert on python or Ruby. But i know both language and did use it. But i would go for python, since it's been a while and more than ruby. and the python community more solid. IMHO. Anyway it is just my personal opinion. Whatever you choose, make sure your concentrate and keep learning.