Next Language, Python or Ruby
Moderator: General Moderators
Next Language, Python or Ruby
I done a good bit of development in PHP over the last two years and, surprisingly, really enjoy it. I'm a designer and the concept, at first, was out there. I later found the concepts were the same, just abstracted.
To get a better understanding of PHP I thought I should start learning another language. Maybe a concept I don't get in PHP, I would in another language. In addition, I just enjoy learning these things.
I'm not so interested in frameworks (ROR, Django), I'd rather get a solid foundation right now. So that aside what would people here recommend as the next step? Python or Ruby?
Thanks in advance.
To get a better understanding of PHP I thought I should start learning another language. Maybe a concept I don't get in PHP, I would in another language. In addition, I just enjoy learning these things.
I'm not so interested in frameworks (ROR, Django), I'd rather get a solid foundation right now. So that aside what would people here recommend as the next step? Python or Ruby?
Thanks in advance.
You can run Python and Ruby on any platform that there's a Python or Ruby interpreter. Same as PHP.
In order to improve your PHP you should really carry on with PHP rather than trying to learn a completely different way of doing things. Both Python and Ruby are very strongly object oriented - you're not going to be able to use what you get from those languages in a PHP script because PHP's object orientation is a bit weak in comparison. That said, of the two options I'd recommend Python, it's a more useful language. There are some incredible libraries available. Beautiful Soup for example.
In order to improve your PHP you should really carry on with PHP rather than trying to learn a completely different way of doing things. Both Python and Ruby are very strongly object oriented - you're not going to be able to use what you get from those languages in a PHP script because PHP's object orientation is a bit weak in comparison. That said, of the two options I'd recommend Python, it's a more useful language. There are some incredible libraries available. Beautiful Soup for example.
I love python.
I agree with onion about PHP compared to python and ruby, but I disagree that you should stick with just PHP. Learning python has made me a better PHP programmer. I have not done much with Ruby but it looks pretty solid. Syntactically I think they're pretty similar. Django is pretty neato also.
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Are you going to explain why or are we supposed to just accept your opinion without question?onion2k wrote:I'd recommend Python, it's a more useful language.
Oh.. apparently we are! /me chucklesThanks everyone, I will start looking at Python in the near future.
I do like soup...I usually have a piece of bread to dip it whilst it's too hot to eat with a spoon.There are some incredible libraries available. Beautiful Soup for example.
Personally I think Ruby is amazing but then I know nothing about Python so it could be just as good. I have read some criticisms of Python, general inconsistencies/annoyances, I can't remember the article now. I haven't really heard anything bad about Ruby, at all. Hmm that's quite remarkable really, maybe I'm falling into a belief system. *shudder*
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
google's pretty fond of python, so python!
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
python's inventor, Guido van Rossum has been a google employee since 2005.scottayy wrote:google's pretty fond of python, so python!
Havent checked Ruby so far, the talk on it has been all abt the Rails framework, hardly come across any non-RoR stuff.
Python is very flexible. Moreover, it has one thing that others have dropped - multiple inheritance.
Sad thing is, theres no support for private class members (some workaround with leading double underscores exist, but not concrete).
I would use python for intensive tasks that need to be run as a cron or in shell for background purposes.