[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Areal noob question

Ryan and Kate Huff

3/26/2006 5:06:00 PM

Can Ruby run without rails?

Do I have to have Ruby gems or is there other ways of using
packages/extensions?


I read the parts of the manual that I thought would explain such but to me,
the manual takes an "assumed knowledge" POV when it come to explaining the
details of "what" rails is, why you do/donot need it and the same for gems.



15 Answers

dblack

3/26/2006 5:13:00 PM

0

Ryan and Kate Huff

3/26/2006 5:27:00 PM

0

Thank you very much for your insight. As far as language maturity goes,
Ruby is technically older than PHP if you count it's Japanese heritage. I
truly love PHP and I REALLY love Java. Maintaining code in them are
nightmares though. That's what sparked my interest about Ruby and it's
"less is more" approach to syntax. I still have my reservations because
sometimes complex syntax is the better way to go. I'll have to see it for
myself when I throw down some Ruby code and try to "break it".

Ruby is yet to offer the more advance features as JAVA or PHP in my opinion
but it has the basics covered and now is the time to strike with Ruby in my
opinion, and ride the wave to the 2nd and 3rd versions.

How are the core's version upgrades handled? Just stop Apache & cut/paste
the new runtime files in the Ruby folder - similar to a PHP upgrade I guess?

-----Original Message-----
From: dblack@wobblini.net [mailto:dblack@wobblini.net]
Sent: Sunday, March 26, 2006 12:13 PM
To: ruby-talk ML
Subject: Re: Areal noob question


Hi --

On Mon, 27 Mar 2006, Ryan and Kate Huff wrote:

> Can Ruby run without rails?

Yes: Ruby is a general-purpose programming language. Rails is a
framework (a suite of programs and programming libraries) written in
Ruby. Ruby was around and in regular use for about 11 years before
Rails was written.

> Do I have to have Ruby gems or is there other ways of using
> packages/extensions?

It all depends what the package's author (or some third party)
prepares and releases. Gem format is very popular; you'll also find a
lot of things released as plain tar.gz or .zip files, and there's also
another package-manager in/for Ruby called rpa-base.


David

--
David A. Black (dblack@wobblini.net)
Ruby Power and Light, LLC (http://www.rubypoweran...)

"Ruby for Rails" chapters now available
from Manning Early Access Program! http://www.manning.com/b...




Andrew Johnson

3/26/2006 5:41:00 PM

0

On Mon, 27 Mar 2006 02:12:35 +0900, dblack@wobblini.net
<dblack@wobblini.net> wrote:

[snip]
> lot of things released as plain tar.gz or .zip files, and there's also
> another package-manager in/for Ruby called rpa-base.

Too bad rpa doesn't appear to have seen any action since 2004, I rather
liked it as a package/repository/installation system.

andrew

--
Andrew L. Johnson http://www.s...
What have you done to the cat? It looks half-dead.
-- Schroedinger's wife

dblack

3/26/2006 5:55:00 PM

0

james_b

3/26/2006 6:10:00 PM

0

Ryan and Kate Huff wrote:
> Thank you very much for your insight. As far as language maturity goes,
> Ruby is technically older than PHP if you count it's Japanese heritage. I
> truly love PHP and I REALLY love Java.

Could you summarize what you love about PHP and Java?


>
> Ruby is yet to offer the more advance features as JAVA or PHP in my opinion
> but it has the basics covered and now is the time to strike with Ruby in my
> opinion, and ride the wave to the 2nd and 3rd versions.

What are the advanced features you believe Ruby lacks?

(Seriously. I'm not trolling or asking for a flame war; I'm genuinely
curious how different people perceive and evaluate programming languages.)

--
James Britt

"A principle or axiom is of no value without the rules for applying it."
- Len Bullard


Ryan and Kate Huff

3/26/2006 6:33:00 PM

0

Well PHP is a "try to be OO" language, it's not nearly true OO. JAVA on the
otherhand is really close to OO.

With PHP I love the languages ability to transition from low to high level
machine access and it's interpopularity. PHP has a wide lib for low-level
methods and classes ( file/folder .... etc ). The biggest "need to have"
item with PHP is it's localhost operations. PHP is truly meant for a web
server. It functions well within a LAN/Intranet but doesn't deal with
network resources like JAVA does, not even close.

JAVA has to be all about networking, for me anyhow. It is a super-fast
language (compared to PHP), primarily because it's compiled and not
interpreted. I'm not as much of a fan of JAVA as I am PHP when it comes to
a web server due to "politics".

By "politics" I mean everything legal between Billy G. & Sun. All that
hogwash rendered JAVA a bit clumsy for the end-user becasue of .... "Would
you like to download this ActiveX Component". There are a lot of users that
don't "get that" part. So as a JAVA programmer you can make these really
insane web apps but unless the user says, "yes" to the IE prompt (85%-89% of
surf happens in IE still) it's all pointless and results in alot of helpdesk
tickets.

If JAVA applets and .OCX files worked seamlessly in the browser, I wouldn't
be in this thread to tell you the truth.

I guess I'm a lost programmer, I want everything PHP & JAVA wrapped into 1
seamless package (and can work well with MSSQL, MySQL, PostGres, DB2, ...
etc). I don't know that I'll ever find it but we'll see where Ruby rates on
my "usable-o-meter".

-----Original Message-----
From: James Britt [mailto:james_b@neurogami.com]
Sent: Sunday, March 26, 2006 1:10 PM
To: ruby-talk ML
Subject: Re: Areal noob question


Ryan and Kate Huff wrote:
> Thank you very much for your insight. As far as language maturity goes,
> Ruby is technically older than PHP if you count it's Japanese heritage. I
> truly love PHP and I REALLY love Java.

Could you summarize what you love about PHP and Java?


>
> Ruby is yet to offer the more advance features as JAVA or PHP in my
opinion
> but it has the basics covered and now is the time to strike with Ruby in
my
> opinion, and ride the wave to the 2nd and 3rd versions.

What are the advanced features you believe Ruby lacks?

(Seriously. I'm not trolling or asking for a flame war; I'm genuinely
curious how different people perceive and evaluate programming languages.)

--
James Britt

"A principle or axiom is of no value without the rules for applying it."
- Len Bullard




james_b

3/26/2006 7:03:00 PM

0

Ryan and Kate Huff wrote:
> Well PHP is a "try to be OO" language, it's not nearly true OO. JAVA on the
> otherhand is really close to OO.

Does Ruby's "hardcore" OO suit you? Ruby is far more OO than either PHP
or Java.

> ...
>
> By "politics" I mean everything legal between Billy G. & Sun. All that
> hogwash rendered JAVA a bit clumsy for the end-user becasue of .... "Would
> you like to download this ActiveX Component". There are a lot of users that
> don't "get that" part. So as a JAVA programmer you can make these really
> insane web apps but unless the user says, "yes" to the IE prompt (85%-89% of
> surf happens in IE still) it's all pointless and results in alot of helpdesk
> tickets.
>
> If JAVA applets and .OCX files worked seamlessly in the browser, I wouldn't
> be in this thread to tell you the truth.
>

Interesting. About all I can say is that we're miles apart on how we
each prefer to build Web applications.

For what it's worth, there are a number of Web development frameworks
for Ruby, some of which include very good support for DTHML/AJAX
client-side widgets; you might want to take a look at Nitro and Rails.

I don't know if you think modern JavaScript (i.e., DOM scripting +
XMLHttpRequest) can replace applets and OCX controls, but it's worth
considering.



--
James Britt

http://www.ru... - Ruby Help & Documentation
http://www.artima.c... - The Journal By & For Rubyists
http://www.rub... - The Ruby Store for Ruby Stuff
http://www.jame... - Playing with Better Toys
http://www.30seco... - Building Better Tools


Ryan and Kate Huff

3/26/2006 7:22:00 PM

0

It sure does, working with objects is so much easier than dealing with a
butt load of functions. That among the "less is more" approach to syntax is
what has sparked my interest in Ruby. I am hesitant about undergoing a
"standards conversion" on my employers web server(s) that I maintain because
I fear that I'll hit a brick wall in Ruby when trying to convert some of the
applications.

It's just a matter of playing and testing ....

-----Original Message-----
From: James Britt [mailto:james_b@neurogami.com]
Sent: Sunday, March 26, 2006 2:03 PM
To: ruby-talk ML
Subject: Re: Areal noob question


Ryan and Kate Huff wrote:
> Well PHP is a "try to be OO" language, it's not nearly true OO. JAVA on
the
> otherhand is really close to OO.

Does Ruby's "hardcore" OO suit you? Ruby is far more OO than either PHP
or Java.

> ...
>
> By "politics" I mean everything legal between Billy G. & Sun. All that
> hogwash rendered JAVA a bit clumsy for the end-user becasue of .... "Would
> you like to download this ActiveX Component". There are a lot of users
that
> don't "get that" part. So as a JAVA programmer you can make these really
> insane web apps but unless the user says, "yes" to the IE prompt (85%-89%
of
> surf happens in IE still) it's all pointless and results in alot of
helpdesk
> tickets.
>
> If JAVA applets and .OCX files worked seamlessly in the browser, I
wouldn't
> be in this thread to tell you the truth.
>

Interesting. About all I can say is that we're miles apart on how we
each prefer to build Web applications.

For what it's worth, there are a number of Web development frameworks
for Ruby, some of which include very good support for DTHML/AJAX
client-side widgets; you might want to take a look at Nitro and Rails.

I don't know if you think modern JavaScript (i.e., DOM scripting +
XMLHttpRequest) can replace applets and OCX controls, but it's worth
considering.



--
James Britt

http://www.ru... - Ruby Help & Documentation
http://www.artima.c... - The Journal By & For Rubyists
http://www.rub... - The Ruby Store for Ruby Stuff
http://www.jame... - Playing with Better Toys
http://www.30seco... - Building Better Tools




dishmael

3/27/2006 12:59:00 PM

0

>Well PHP is a "try to be OO" language; it's not nearly true OO

Have you seen PHP v5: http://us3.php.net/zend-en...

-Dave



dishmael

3/27/2006 1:24:00 PM

0

>> Thank you very much for your insight. As far as language maturity goes,
>> Ruby is technically older than PHP if you count it's Japanese heritage.
>> I truly love PHP and I REALLY love Java.
>
>Could you summarize what you love about PHP and Java?

I'm still learning Ruby (so don't flame me too hard here), but some of the
programming paradigms I've grown accustomed to such as inline scope
declarations and type hinting are missed (at least by me).

protected foo( SomeObject o ) { ... }

In that one line I can tell you that the method is protected and requires
SomeObject to be passed to it. Versus Ruby's:

protected

def foo( o )
...
end

My issue here is that the 'protected' declaration might not occur anywhere
near the method which means I either have to scan up the class file looking
for that declaration or use reflection on the class. This is one of those
"less is more" view points where its nicer to declare protected once and
anything after it assumes that scope, yet I find it obscure since it might
be distant from a method I'm interested in. I'm also not sure what 'o' is
supposed to be. Should that be a String, Fixnum, or maybe a custom Object
(I guess I could inspect the method code to help identify what 'o' is)?


-Dave