On 30 September 2012 13:58, tcgo <span dir="ltr"><<a href="mailto:tomeuari@gmail.com" target="_blank">tomeuari@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi!<br>
I'm really new to Usenet/Newsgroups, but... I'd like to learn some new programming language, because I learnt a bit of Perl though its OOP is ugly. So, after searching a bit, I found Python and Ruby, and both of them are cute.<br>


So, assuming you'll say me "learn python", why should I learn it over Ruby?<br>
Thanks!<br>
PS: I don't want to start a flame-war, I just want an advice if it's possible please!<br></blockquote><div><br></div><div>Like the others I don't know Ruby but a 2 minute check on Google implies that Ruby doesn't have something equivalent to Cython.</div>

<div><br></div><div>I <i>really like</i> Cython because it lets me optimize without learning C*. I <i>really dislike</i> C, so this is important to me. Cython may be a bit much [aka. is way too much] for someone learning a language, but it will help if you do progress that much further. Of course, Ruby lets you write C extensions, but that's another language to learn.</div>

<div><br></div><div>* You still have to learn C types, but Cython has better array classes and support for Python buffers that lets you skip most of the harder types. You don't need malloc in Cython, for example, unless you really need C arrays.</div>

<div><br></div><div>Python also has PyPy, which is faster than most of what Ruby has, pushing that dreaded optimization down the road.</div><div><br></div><div>Language wise, <i>whilst again I cannot speak for Ruby</i>, Python has a very important trait: sanity. If you slow yourself down enough, Python has a miraculous ability to make the meaning of every line you write <i>bloody obvious</i>. That's pretty much the most important part of a language. <b>Look over code examples of both, and choose the language you can read.</b></div>

</div>