|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
View Poll Results: Which do you prefer Ruby or Python? | |||
I prefer Ruby. | 5 | 41.67% | |
I prefer Python. | 7 | 58.33% | |
Voters: 12. You may not vote on this poll |
|
Thread Tools | Display Modes |
|
|||
Python Vs Ruby & Django Vs Rails.
Been programming with Ruby and Rails sporadically for the last two years. Tonight, I tried Python and whoa! It was a blast. It's easy to understand and write where Ruby is harder to grasp for me b/c it's more abstract and things are done without any closures.
I hear the Python interpreter is a lot faster than the Ruby interpreter. I'm cool with Django being a rails for python. There are a lot of smart people out there who don't use the same tools you use or I use and we have to tip our hat to their creativity and knowledge. I like the flow of Python better than Ruby. When I program in Ruby I always feel something is missing that I'm getting from Python. |
|
||||
You mention Django and Rails, so I gather you plan on doing some web programming?
I tried both Django and Zope, and found them to be rather big and complicated to deal with with, I found using just the cgi module and cheetah to be easier ... YMMV of course As a sidenote, a friend of me if very enthusiastic about web.py ... I have never used Ruby.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
From OT: Python (was Re: vi in /bin)
Quote:
Quote:
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
I've been programming a lot of Action Script 3.0 these last three years. I've used Ruby on Rails as the back end, but found Rails easy while Ruby was a thorn in my side the whole time. To be honest, Ruby rocks, but it's too abstract for me right now. The conventions in the language are constantly throwing me off because of my background being Java Script, Java, AS3 which all three are so similar if you can program one, picking up the other two is very straight forward.
Python is like roddierod said bringing some of the joy I've lost in programming back. My first attempts to program on my own were with Basic on the Commodore 64. Python works like it should. Ruby would call this principle the principle of least suprise. I like Python better than ruby and wish rails ran on Python, which is why I was seriously taking a look at Django. I've spent a few times trying socket programming with C. Still, C isn't second nature to me. Neither is Python. Not the way AS3 is. I'd like to get at last 1 scripting language down second nature. And, get C down second nature. Then, I feel I will really be in a good place programming wise. I don't like making programs in a language that isn't like an extension of my mind b/c I feel like I'm debugging all the time. When you've got a language down second nature, you feel the force flowing through your system and it's almost a spiritual transcendental experience. I know all you guys who have at least one langauge down second nature know that feeling. |
|
||||
@j65nko:
That's their opinion, not sure if you mean to imply that that's also yours or if it's jut a random quote ...? Anyway, you can copy Python, so I don't know what he's doing ... Also, style(9) doesn't really apply since Python looks different from C anyway. I don't understand some people's fetish for curly braces and semicolons ...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
I've come to prefer Python: it makes my life easier. In researching various languages and their utility for cross platform development, with particular eyes on FreeBSD and Windows; I found Python to be much less trouble then Ruby, although getting support for the correct versions can be problematic in some cases (e.g. Panda). My research also makes me wonder if Common Lisp is the best language available... lol.
Both Ruby and Python are very fine languages and both have survived me as "General purpose language for new projects and scripts" for years at a time. I look at comparing them much the same as comparing Java and C++, they are about the same in that regard to be different beats. I find Ruby better suited for interactive usage (irb), but like wise that Python has considerably better documentation on how to use stuff - that's why I prefer Python. The documentation is just several times better then Rubies was, when I took up using Python, and I expect it still is that way. My only complaints about Python, missing dictionary keys are exceptions rather then None (more logical but also more inconvienant), and that regular expressions are not built into the language. I like how Perl mates regular expressions directly into the language, Ruby does this to a lesser extent (in fact, I often use a Ruby regexp reference when I need a regex reference for any language), but Python implements it through the re module. I don't like the re module, because I feel it unnatural compared to Perl, but re does do what's needed most of the time. I have dabbled with Django and have no problems with it, but I have never used Rails. My use of both languages is oriented on developing cross platform applications and task specific tools, not web development. If I was going to do serious web development in any language, I would probably want something like GWT. So that would likely suggest using something like Pyjamas or RubyJS rather then Django/Rails, given my experience with using core Ruby classes and third party modules in every language, I would probably opt for Pyjamas. More likely I would be forced to use PHP, and therefore develop something around it that I can 'live with'. It actually took me parts of 3 days. One to study Python, one to learn Qt through the C++ docs and Python bindings, and a third to experiment in using them together non-trivially. It would've gone faster if I hadn't skipped using any C++ OOP features for a couple years lol.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
Quote:
Quote:
The same issue happens with Makefiles. A makefile operator line, the command to (re)create the target, must be preceded with a tab character. See http://www.daemonforums.org/showthre...4257#post29665 , where I warn for this.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||||
Since there are two topics in this poll:
|
|
||||
Haha, well, maybe I didn't formulate my question very well, my question was whether you were reporting your opinion by proxy, of if you were just reporting some quotes ... It would seem the last was the case
Quote:
But yeah, if you copy a post from a different level then that won't work work of course ... I haven't worked on any large projects, but Vim deals with this pretty well IMO (Using < and > with visual mode for example) ... But yeah, I can understand this can be a problem, Python isn't perfect.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
Quote:
Since the early days Python has gotten better with the OO stuff, but culturally, it's not as ingrained as with Ruby. I'm almost surprised that Ruby doesn't follow closer to Java / C# in some ways.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
apache with python | deadeyes | FreeBSD Ports and Packages | 1 | 27th August 2009 01:31 PM |
py-yaml - Python 2.5 and 2.6 | iGloo | FreeBSD Ports and Packages | 0 | 20th December 2008 08:36 PM |
ruby execute commands remotely | Dr_Death_UAE | Programming | 0 | 18th August 2008 11:23 AM |
Ruby-gem problem | giga | FreeBSD Ports and Packages | 2 | 21st July 2008 02:34 PM |
Ruby qtruby installation | map7 | Programming | 6 | 17th July 2008 06:00 AM |