On Aug 8, 8:15 pm, Steven D'Aprano wrote:
> On Sun, 08 Aug 2010 17:43:03 -0700, rantingrick wrote:
> > Ruby has what they
> > call a "Here Doc". Besides picking the most boneheaded name for such an
> > object
>
> It's standard terminology that has been around for a long time in many
> different l
On Aug 9, 8:19 am, Mike Kent wrote:
> On Aug 8, 8:43 pm, rantingrick wrote:
> Xah, this is really you, isn't it. Come on, confess.
*MOI*, How could *I* be xah. I really don't like Ruby however he
gushes over it all the time. And he does not like Python that much
either. We are total opposites,
On 8/9/10 4:43 PM, Stefan Schwarzer wrote:
Hi Robert,
On 2010-08-09 22:23, Robert Kern wrote:
On 2010-08-09 06:42 , Stefan Schwarzer wrote:
Unfortunatey, when I enter
In [2]: %paste
at the prompt it gives me (before I pasted anything)
In [2]: %paste
-
On 9 Aug, 10:21, Steven D'Aprano wrote:
> And that it's quite finicky about blank lines between methods and inside
> functions. Makes it hard to paste code directly into the interpreter.
The combination of editor, debugger and interpreter is what I miss
most from Matlab. In Matlab we can have a
On 2010-08-09 23:43, Stefan Schwarzer wrote:
> I got that traceback as soon as I typed in "%paste" and
> pressed enter, without pasting anything in the terminal.
> I had assumed it works like :paste in Vim, activating a
I meant ":set paste" of course.
Stefan
--
http://mail.python.org/mailman/lis
Hi Robert,
On 2010-08-09 22:23, Robert Kern wrote:
> On 2010-08-09 06:42 , Stefan Schwarzer wrote:
>> Unfortunatey, when I enter
>>
>>In [2]: %paste
>>
>> at the prompt it gives me (before I pasted anything)
>>
>>In [2]: %paste
>>
On 2010-08-09 06:42 , Stefan Schwarzer wrote:
Hi Steven,
On 2010-08-09 10:21, Steven D'Aprano wrote:
And that it's quite finicky about blank lines between methods and inside
functions. Makes it hard to paste code directly into the interpreter.
And that pasting doesn't strip out any leading pro
On Aug 8, 8:43 pm, rantingrick wrote:
> Hello folks,
>
> You all know i been forced to use Ruby and i am not happy about that.
***Blablabla cut long rant***
Xah, this is really you, isn't it. Come on, confess.
--
http://mail.python.org/mailman/listinfo/python-list
Hi Steven,
On 2010-08-09 10:21, Steven D'Aprano wrote:
> And that it's quite finicky about blank lines between methods and inside
> functions. Makes it hard to paste code directly into the interpreter.
>
> And that pasting doesn't strip out any leading prompts. It needs a good
> doctest mode.
On Mon, 09 Aug 2010 00:29:19 -0700, rantingrick wrote:
> On Aug 8, 8:15 pm, Steven D'Aprano cybersource.com.au> wrote:
>
>> In Ruby they decided to be more general, so you can define whatever
>> heredoc you need to quote whatever literal string you need. That's not
>> bone-headed.
>
> Devils Ad
On Aug 8, 8:15 pm, Steven D'Aprano wrote:
> In Ruby they decided to be more general, so you can define whatever
> heredoc you need to quote whatever literal string you need. That's not
> bone-headed.
Devils Advocate!
PS: Man you're irb main was so full of cobweb i could barley see the
code... h
On Sun, 08 Aug 2010 17:43:03 -0700, rantingrick wrote:
> Ha. Ruby does not really have multi line strings.
Except, of course, it does, as you go on to show.
> Ruby has what they
> call a "Here Doc". Besides picking the most boneheaded name for such an
> object
It's standard terminology that
rantingrick wrote:
Hello folks,
[snip]
-
Strings
-
Single line strings are exactly the same in both languages except in
Ruby double quoted strings are backslash interpreted and single quote
strings are basically raw. Except Ruby introduces more cruft (a
bruno modulix wrote:
>
> It's been a long time since I last saw a Java applet on a website.
>
That can only mean you are ignorant.
Applets are a huge deal for Intranets. And Java Web Start is even more
useful. I really wish Python had such wonderful means of deployment.
bruno modulix wrote
> Er
Il 2005-10-27, Andy Leszczynski ha
scritto:
> How Ruby solves the problem of global interpreter lock?
AFAIK Ruby does not have those kind of problems, it does not have "real" threads
but it emulates them via software
--
Lawrence
http://www.oluyede.org/blog
--
http://mail.python.org/mailman/li
On Wed, 26 Oct 2005 22:35:33 -0500, Andy Leszczynski wrote:
> Steven D'Aprano wrote:
>
>>
>> Every line = more labour for the developer = more cost and time.
>> Every line = more places for bugs to exist = more cost and time.
>>
>
> The place I work at the creation rate is not a problem - we co
Amol Vaidya wrote:
> Hi. I am interested in learning a new programming language, and have been
> debating whether to learn Ruby or Python. How do these compare and contrast
> with one another, and what advantages does one language provide over the
> other? I would like to consider as many opinio
Steven D'Aprano wrote:
>
> Every line = more labour for the developer = more cost and time.
> Every line = more places for bugs to exist = more cost and time.
>
The place I work at the creation rate is not a problem - we could crank
out in the team 1000s lines a week. Most time we spend is on m
Jorge Godoy <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] (Alex Martelli) writes:
>
> > forwards a lot to Python 3.0!-). But -- the "dream" solution would be
> > to work closely with customers from the start, XP-style, so features go
> > into the code in descending order of urgence and importan
Alex Martelli:
> Michele Simionato:
>> cutting off non-essential features (and you can discover that a feature
>> is non essential only after having implemented it)
> This one is difficult if you have RELEASED the program with the feature
> you now want to remove, sigh.
Yeah, but I used the wrong
[EMAIL PROTECTED] (Alex Martelli) writes:
> forwards a lot to Python 3.0!-). But -- the "dream" solution would be
> to work closely with customers from the start, XP-style, so features go
> into the code in descending order of urgence and importance and it's
> hardly ever necessary to remove them
Michele Simionato <[EMAIL PROTECTED]> wrote:
> Alex Martelli wrote:
> > ... remember Pascal's "Lettres Provinciales",
> > and the famous apology about "I am sorry that this letter is so long,
> > but I did not have the time to write a shorter one"!-)
>
> This observation applies to code too. I us
Alex Martelli wrote:
> ... remember Pascal's "Lettres Provinciales",
> and the famous apology about "I am sorry that this letter is so long,
> but I did not have the time to write a shorter one"!-)
This observation applies to code too. I usually spend most of my time
in making short programs
that
Tom Anderson wrote:
> On Fri, 21 Oct 2005, vdrab wrote:
>
> > You can tell everything is well in the world of dynamic languages when
> > someone posts a question with nuclear flame war potential like "python
> > vs. ruby" and after a while people go off singing hymns about the beauty
> > of Scheme
Alex Martelli wrote:
(snip)
> Here's a tiny script showing some similarities and differences:
>
> def f()
> i = 0
> while i < 100
> j = 923567 + i
> i += 1
> end
> end
>
> f()
>
> comment out the 'end' statements, and at colons
s/at/add/
> at the end of the def
> and while st
Michael Ekstrand wrote:
> On Friday 21 October 2005 07:07, bruno modulix wrote:
>
Python is more like Java.
>>
>>
>>Err... Python is more like what Java would have been if Java was a
>>smart dynamic hi-level object oriented language !-)
>>
>
>
> +1. Python is easily applicable to most of the
Mike Meyer <[EMAIL PROTECTED]> wrote:
...
> > Of course, these results only apply where the "complexity" (e.g., number
> > of operators, for example) in a single line of code is constant.
>
> I'm not sure what you're trying to say here. The tests ranged over
> things from PL/I to assembler. Are
Mike Meyer wrote:
> There were studies done in the 70s that showed that programmers
> produced the same number of debugged lines of code a day no matter
> what language they used. So a language that lets you build the same
> program with fewer lines of code will let you build the program in
> less
[EMAIL PROTECTED] (Alex Martelli) writes:
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>> > Every line = more labour for the developer = more cost and time.
>> > Every line = more places for bugs to exist = more cost and time.
>> There were studies done in the 70s that showed that programmers
>> produce
Mike Meyer <[EMAIL PROTECTED]> wrote:
> > Every line = more labour for the developer = more cost and time.
> > Every line = more places for bugs to exist = more cost and time.
>
> There were studies done in the 70s that showed that programmers
> produced the same number of debugged lines of code
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Fri, 21 Oct 2005 13:03:29 +0100, Alex Stapleton wrote:
>> Perl is more like a CISC CPU. There are a million different commands.
>> Python is more RISC like.
>> Line count comparisons = pointless.
>
> Not so.
>
> Every line = more labour for the devel
On Fri, 21 Oct 2005 13:03:29 +0100, Alex Stapleton wrote:
>
> On 21 Oct 2005, at 09:31, Harald Armin Massa wrote:
>
>> Casey,
>>
>>
>>
>>> I have heard, but have not been able to verify that if a program is
>>> about
>>> 10,000 lines in C++
>>> it is about
>>> 5,000 lines in Java
>>> and it is a
Bryan <[EMAIL PROTECTED]> wrote:
> i would not say sion's ratio of 5:1 is dubious. for what it's worth, i've
> written i pretty complex program in jython over the last year. jython
> compiles
> to java source code and the number of generated java lines to the jython
> lines
> is 4:1.
Most c
Bryan wrote:
> i would not say sion's ratio of 5:1 is dubious. for what it's worth,
> i've written i pretty complex program in jython over the last year.
> jython compiles to java source code and the number of generated java
> lines to the jython lines is 4:1.
Ugh. The code generated by jytho
On Friday 21 October 2005 04:25 pm, Ed Jensen wrote:
> Sion Arrowsmith <[EMAIL PROTECTED]> wrote:
> > I have here a library (it's the client side of a client-server
> > interface including a pile of class definitions) which has
> > implementations in pure C++, Java and Python, taking about 3000,
>
Robert Boyd <[EMAIL PROTECTED]> wrote:
> As if Plone, Zope, and (non-Python) Shibboleth weren't getting me
> enough funny looks. And I haven't even started telling co-workers
> about Django.
A couple of years ago, a head-hunter asked me if I knew Plone. I figured
he was just being an idiot and d
On 10/19/05, Jason Stitt <[EMAIL PROTECTED]> wrote:
>
> How can we improve Python's competitiveness in this arena? "Pie"? Or
> can we do even better than Lua? Ptooey!
I'm sure I could really evangelize use of it at work were it called Ptooey ;)
As if Plone, Zope, and (non-Python) Shibboleth were
Amol Vaidya <[EMAIL PROTECTED]> wrote:
> Hi. I am interested in learning a new programming language, and have been
> debating whether to learn Ruby or Python. How do these compare and contrast
> with one another, and what advantages does one language provide over the
> other? I would like to consi
Ed Jensen wrote:
> Sion Arrowsmith <[EMAIL PROTECTED]> wrote:
>
>>I have here a library (it's the client side of a client-server
>>interface including a pile of class definitions) which has
>>implementations in pure C++, Java and Python, taking about 3000,
>>3500 and 1500 loc respectively. And the
Casey Hawthorne wrote:
> I have heard, but have not been able to verify that if a program is
> about
> 10,000 lines in C++
> it is about
> 5,000 lines in Java
> and it is about
> 3,000 lines in Python (Ruby to?)
My experience is that Java:Python is roughly 2:1, the highest I have seen (on
small b
Bryan wrote:
> Dave Cook wrote:
>> Cale? You mean Python has more ruffage?
>
> i think you mean "kale" not "cale". nothing like a hot bowl of tofu
> kale soup while reading the recipes in the "python cookbook".
Well, if he's going to talk about "ruffage" instead of "roughage",
perhaps he real
Sion Arrowsmith <[EMAIL PROTECTED]> wrote:
> I have here a library (it's the client side of a client-server
> interface including a pile of class definitions) which has
> implementations in pure C++, Java and Python, taking about 3000,
> 3500 and 1500 loc respectively. And there's an associated mod
bruno modulix wrote:
> ... Another language that failed to make it to the mainstream but is
> worth giving a try is Smalltalk - the father of OOPLs (Simula being the
> GrandFather).
I would say Simula is the forefather of modern OOPLs, and Smalltalk is
the toofather.
--Scott David Daniels
[EMAIL
On Fri, 21 Oct 2005, vdrab wrote:
> You can tell everything is well in the world of dynamic languages when
> someone posts a question with nuclear flame war potential like "python
> vs. ruby" and after a while people go off singing hymns about the beauty
> of Scheme...
+1 QOTW
> I love this p
You can tell everything is well in the world of dynamic languages when
someone posts a question with nuclear flame war potential like "python
vs. ruby" and after a while people go off singing hymns about the
beauty of Scheme...
I love this place.
v.
--
http://mail.python.org/mailman/listinfo/pyt
bruno modulix <[EMAIL PROTECTED]> wrote:
>> "Casey Hawthorne" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>>I have heard, but have not been able to verify that if a program is
>>>about
>>>10,000 lines in C++
>>>it is about
>>>5,000 lines in Java
>>>and it is about
>>>3,000 lin
On Friday 21 October 2005 07:07, bruno modulix wrote:
> >>Python is more like Java.
>
>
> Err... Python is more like what Java would have been if Java was a
> smart dynamic hi-level object oriented language !-)
>
+1. Python is easily applicable to most of the problem domain of Java,
but solves
Amol Vaidya wrote:
> "Casey Hawthorne" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>>What languages do you know already?
>>
>>What computer science concepts do you know?
>>
>>What computer programming concepts do you know?
>>
>>
>>Have you heard of Scheme?
>>
>>
>>Ruby is a bi
On 21 Oct 2005, at 09:31, Harald Armin Massa wrote:
> Casey,
>
>
>
>> I have heard, but have not been able to verify that if a program is
>> about
>> 10,000 lines in C++
>> it is about
>> 5,000 lines in Java
>> and it is about
>> 3,000 lines in Python (Ruby to?)
>>
>
> BTW: it is normally only 50
On Thu, 20 Oct 2005, Mike Meyer wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
>
>> other than haskell and SQL, the others are more or less the same to me
>> so getting familiar with them is not too difficult.
>
> There are actually lots of good "train your brain" type languages.
> Mem
Hallöchen!
"Harald Armin Massa" <[EMAIL PROTECTED]> writes:
> Casey,
>
>> I have heard, but have not been able to verify that if a program is
>> about
>> 10,000 lines in C++
>> it is about
>> 5,000 lines in Java
>> and it is about
>> 3,000 lines in Python (Ruby to?)
>
> BTW: it is normally only
Casey,
> I have heard, but have not been able to verify that if a program is
> about
> 10,000 lines in C++
> it is about
> 5,000 lines in Java
> and it is about
> 3,000 lines in Python (Ruby to?)
BTW: it is normally only 50 lines in Perl. Not that you could read it,
though
Harald
--
http://ma
Tom Anderson:
>> I have no idea what Scheme is, but I'll cettainly look it up as soon as
>> I'm done writing this.
> You won't like it. Give yourself another 5-10 years, and you might start
> to find it strangely intriguing.
+1 ;-)
Michele Simionato
--
http://mail.python.org/mailman/li
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> I am not sure your intention but I think there isn't a one language
> fits all situation here.
Very true.
> C/C++ - for linux kernel hacking etc., many library out there still use
> it
> python - generic stuff
> SQL - nothing beats it for many bus
I don't think you really need to give to much time in weighting between
python or Ruby. Both are fine. But Python has the obvious advantage
that it has much more modules than Ruby so many things you don't need
to implement if you have real work to do.
I recommend you give haskell a shot if you are
On Thu, 20 Oct 2005, Amol Vaidya wrote:
> "Casey Hawthorne" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>> What languages do you know already? What computer science concepts do
>> you know? What computer programming concepts do you know? Have you
>> heard of Scheme?
Good que
"Casey Hawthorne" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What languages do you know already?
>
> What computer science concepts do you know?
>
> What computer programming concepts do you know?
>
>
> Have you heard of Scheme?
>
>
> Ruby is a bit Perl like -- so if you like P
Thank you for all the great information and links! I think I will do what a
lot of you reccomended and try both for myself, the only problem is finding
time with homework, college applications, and SATs coming up. I'll let you
know how it turns out. Again, thank you all for the help.
--
http
What languages do you know already?
What computer science concepts do you know?
What computer programming concepts do you know?
Have you heard of Scheme?
Ruby is a bit Perl like -- so if you like Perl, chances are you might
like Ruby.
Python is more like Java.
I have heard, but have not bee
In article <[EMAIL PROTECTED]>,
bruno modulix <[EMAIL PROTECTED]> wrote:
>Bryan wrote:
>> Amol Vaidya wrote:
>>
>>> Hi. I am interested in learning a new programming language, and have
>>> been debating whether to learn Ruby or Python.
>(snip)
>>
>> why don't you do what i did? download ruby a
http://blog.ianbicking.org/ruby-python-power.html
http://www.ruby-doc.org/RubyEyeForThePythonGuy.html
http://onestepback.org/index.cgi/Tech/Ruby/PythonAndRuby.rdoc
http://www.approximity.com/ruby/Comparison_rb_st_m_java.html
http://www.jvoegele.com/software/langcomp.html
http://reflectivesurface.co
Depends on your experience. If you know C,C++,Java and the whole
C-syntax-bunch. I'd recommend Python just to learn to adapt a different
syntax. If you want to learn for the learnings sake, i'd also recommend
Haskell to try functional programming, if you do not already know it.
Ruby has some inter
Amol Vaidya wrote:
> Hi. I am interested in learning a new programming language, and have been
> debating whether to learn Ruby or Python. How do these compare and contrast
> with one another, and what advantages does one language provide over the
> other? I would like to consider as many opinio
Bryan wrote:
> Amol Vaidya wrote:
>
>> Hi. I am interested in learning a new programming language, and have
>> been debating whether to learn Ruby or Python.
(snip)
>
> why don't you do what i did? download ruby and spend a day or two
> reading "programming ruby" from www.ruby-lang.org/en. the
Dave Cook wrote:
> On 2005-10-20, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>>Languages are very similar but Python has more cale avaliable. Much
>>more.
>
>
> Cale? You mean Python has more ruffage?
>
> Dave Cook
i think you mean "kale" not "cale". nothing like a hot bowl of tofu k
On 2005-10-20, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Languages are very similar but Python has more cale avaliable. Much
> more.
Cale? You mean Python has more ruffage?
Dave Cook
--
http://mail.python.org/mailman/listinfo/python-list
Languages are very similar but Python has more cale avaliable. Much
more.
--
http://mail.python.org/mailman/listinfo/python-list
As you see, pythonistas are a nice humourous bunch...
But to help a bit more in your balancing act you might take a look at:
http://blog.ianbicking.org/ruby-python-power.html
It's rather nice, and commented.
--
http://mail.python.org/mailman/listinfo/python-list
Amol Vaidya wrote:
> Hi. I am interested in learning a new programming language, and have been
> debating whether to learn Ruby or Python. How do these compare and contrast
> with one another, and what advantages does one language provide over the
> other? I would like to consider as many opinio
On Oct 19, 2005, at 10:01 PM, Roy Smith wrote:
> In article <[EMAIL PROTECTED]>,
> "jean-marc" <[EMAIL PROTECTED]> wrote:
>
>> I'd believe that would be Lua, but then again what is common to one
>> might not be to another ;-)
>>
>
> Dang, you're right! Lua's got Ruby beat two-fold!
And lack of
In article <[EMAIL PROTECTED]>,
"jean-marc" <[EMAIL PROTECTED]> wrote:
> I'd believe that would be Lua, but then again what is common to one
> might not be to another ;-)
Dang, you're right! Lua's got Ruby beat two-fold!
--
http://mail.python.org/mailman/listinfo/python-list
I'd believe that would be Lua, but then again what is common to one
might not be to another ;-)
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
"Amol Vaidya" <[EMAIL PROTECTED]> wrote:
> Hi. I am interested in learning a new programming language, and have been
> debating whether to learn Ruby or Python. How do these compare and contrast
> with one another, and what advantages does one language provide ov
73 matches
Mail list logo