Ruby Future Or?

P

Phillip Gawlowski

I have no problem locating a missing "end". =A0In fact, the "end"s make i= t
easier to track nesting, at least for me. =A0So, speaking only for myself= ,
yeah . . . I do think they're "better".

'sides, when keeping methods short and sweet, you don't lose track of
the end of your method. Losing track of the end is a code smell, I'd
say.

Excuse the puns, which were only partially unintentional.

--=20
Phillip Gawlowski

Though the folk I have met,
(Ah, how soon!) they forget
When I've moved on to some other place,
There may be one or two,
When I've played and passed through,
Who'll remember my song or my face.
 
S

Steve Klabnik

[Note: parts of this message were removed to make it a legal post.]

If you have more than two or three ends, your code sucks. It's a feature,
not a bug.
 
D

David Jacobs

I think that kind of canonical generalization isn't strictly true, *especially* if you work with lambdas or heavy algorithms. I'm a huge fan of abstraction, especially in Ruby and Lisp, but to say that code should never be nested this much is (by my standards) not a good generalization.
 
C

Christopher Dicely

Do you really think all those cascading 'ends' in Ruby (that you can
never get right nor locate the missing 'end') are better?

I've never had much problem with getting the "ends" right in Ruby, but
I tend to frame blocks before filling them in. But, sure, sometimes I
would rather not have to deal with ending blocks.

In practice, I've found Ruby easier to refactor, incorporate from an
outside source, and work with in general than Python -- though Python
is slightly easier to write in the first place. So, yeah, between
Ruby's explicit delimiters and Python's significant whitespace, I find
Ruby's structure to work better. But its largely a subjective
difference of what works best for different people.

(Oddly, while I haven't done as much with Haskell as with Python, the
significant whitespace in Haskell hasn't bothered me as much as
Python's; I don't know if its that I just haven't done as much with
Haskell or if there is something in the interaction with the rest of
the syntax with the whitespace sensitivity that is less disruptive in
Haskell.)

But all these languages are pleasant to work with, for their various
quirks. I don't know about anyone else who has complained about
Python's whitespace sensitivity, but when I mention my dislike of it,
its not by way of saying Python sucks, just one feature of the
language that occasionally causes frustration that isn't present in
some other languages . Python also has positive features that aren't
mirrored in other languages, including some that are tightly linked to
significant whitespace (not needing to explicitly end blocks is a
convenience.)
 
I

Ivan Cenov

Ðа 17.5.2011 г. 01:10, Zach Dennis напиÑа:
I found it interesting to see Walter Bright (creator of D) comment in an
interview that he thought Ruby was the language to watch (see the very last
question in the interview):

http://www.bitwisemag.com/copy/programming/d/interview/d_programming_language.html
Hello,

This is my first post here, I am C firmware programmer and and touched
Ruby because installed Redmine for project management. So I took a look at
Ruby, saw its syntax and other properties.

Now, I caught myself that I sometimes write meta-code of my algorithms
in Ruby
in comments, where the actual C code is not clear yet. Hence I think
that Ruby is
nearer to the human languages than C and may be in help when describing
algorithms.

I think that Ruby has its future and domain of usage. It will not
prevail the other
languages like Python, Perl, JavaScript but will live. Just another nice
language.
I loved it.

--

Regards,

Ivan Cenov
OKTO-7 Co., Botevgrad, Bulgaria
(e-mail address removed), (e-mail address removed)
GSM: +359 888 76 10 80
phone: +359 723 6 61 20, +359 723 6 61 61
fax: +359 723 6 62 62
 
K

Kirk Haines

[Note: parts of this message were removed to make it a legal post.]

1) Yes. For some jobs, the Ruby is what is important, not the Rails.

2) I don't know because I have not been job hunting for quite a while, but I
am confident that there are. Those jobs are certainly a minority, but they
are not a fantasy.

Kirk Haines
Engine Yard
 
A

Alexey Petrushin

He-he, I guess Rails for Ruby is the same as JEE is for Java :)

And maybe in future it may be suppressed by JavaScript and similar stuff
(like CoffeeScript) but definitely not with Python.
 
M

Markus H.

Sure ruby has a future.

It is now better than 10 years ago and people used it 10 years ago too.

I also hope that matz continues to stay active, his vision still guides
ruby forward even though there are now other ruby-implementations out
there (Go, Rubinius, go!)

I myself do not use rails. I used Ruby before Rails existed too.

Rails got a lot of attraction and hype to ruby, but it is a completely
separate community. I am not part of it in any way and to me it makes no
difference whatsoever whether rails exists or not. I don't mean this in
a bad way either, it just does not matter to me at all. :)

Python became more popular than Ruby but I think this had to do with the
fact that Ruby really had CRAPPY documentation for a long time. Without
the Pickaxe, I am still wondering whether ruby could have been used
outside Japan at all ...

I myself don't really see Python as an enemy to Ruby. Both ruby and
python are very similar in many things, though there are plenty of
differences too, mostly in the philosophy. I prefer ruby's philosophy (I
started using ruby after trying it out, having read an interview with
matz - great interview by the way!)

What I am seeing since some months though is that Javascript is becoming
insanely popular. That is not only to jquery alone ...

I think ultimately Javascript is becoming so popular because of the
importance of WWW.

I myself really don't like Javascript too much. I think it is a mistake
to use so many different languages ... the WWW has become so much more
complex than 10 years ago.... :(

Javascript has an unfair advantage too. Every browser defaults to it...

I'd rather use Ruby and show Javascript the middle finger.

Or even better, I would like to use Ruby EVERYWHERE for me here when I
can - I want to target my browser without Javascript.... or I dream of a
VM where any language is possible. And I would stick to Ruby.

Unfortunately that is just wishful thinking.

Javascript is there to stay ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top