Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Question about learning Ruby effectively

Reply
Thread Tools

Question about learning Ruby effectively

 
 
Chan Nguyen
Guest
Posts: n/a
 
      08-14-2010
Hi everyone,
I'm a newbie to Ruby. I've just started learning Ruby for a week, but I
love it ^_^ so much. I wonder is there any website to look up standard
library like C++?
And does Ruby have some standard container like C++ ( vector, list, map,
stack, deque... ). I come from a C++ background, so the way I think in
programming is pretty much from C++. I can see there's a big differences
in the way Ruby does work comparing with C++. So what is a good way to
start thinking in Ruby way? Can anyone share me some experiences? Great
thanks in advance !
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Jesús Gabriel y Galán
Guest
Posts: n/a
 
      08-14-2010
On Sat, Aug 14, 2010 at 9:03 AM, Chan Nguyen <> wrote:
> Hi everyone,
> I'm a newbie to Ruby. I've just started learning Ruby for a week, but I
> love it ^_^ so much. I wonder is there any website to look up standard
> library like C++?


http://ruby-doc.org/core/

contains the core classes.

http://www.ruby-doc.org/stdlib

contains the standard library.

> And does Ruby have some standard container like C++ ( vector, list, map,
> stack, deque... ).


The basic containers are arrays and hashes. An array can be used as a
stack or queue, and a hash is a map or dictionary.


Jesus.

 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      08-14-2010
On 14.08.2010 10:34, Jesús Gabriel y Galán wrote:
> On Sat, Aug 14, 2010 at 9:03 AM, Chan Nguyen<> wrote:
>> Hi everyone,
>> I'm a newbie to Ruby. I've just started learning Ruby for a week, but I
>> love it ^_^ so much. I wonder is there any website to look up standard
>> library like C++?

>
> http://ruby-doc.org/core/
>
> contains the core classes.
>
> http://www.ruby-doc.org/stdlib
>
> contains the standard library.
>
>> And does Ruby have some standard container like C++ ( vector, list, map,
>> stack, deque... ).

>
> The basic containers are arrays and hashes. An array can be used as a
> stack or queue, and a hash is a map or dictionary.


Array can of course also be used as list, i.e. maintaining a custom
order and with O(1) element access.

And then there is Set for efficient set operations.

Kind regards

robert

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

 
Reply With Quote
 
Josh Cheek
Guest
Posts: n/a
 
      08-14-2010
2010/8/14 Jes=FAs Gabriel y Gal=E1n <>

> On Sat, Aug 14, 2010 at 9:03 AM, Chan Nguyen <>
> wrote:
> > Hi everyone,
> > I'm a newbie to Ruby. I've just started learning Ruby for a week, but I
> > love it ^_^ so much. I wonder is there any website to look up standard
> > library like C++?

>
> http://ruby-doc.org/core/
>
> contains the core classes.
>
> http://www.ruby-doc.org/stdlib
>
> contains the standard library.
>
>
>

Be aware that this is 1.8.6 docs.

 
Reply With Quote
 
Pablo Torres N.
Guest
Posts: n/a
 
      08-14-2010
On Sat, Aug 14, 2010 at 02:03, Chan Nguyen <> wrote:
> I wonder is there any website to look up standard library like C++?


If you are considering a book, Programming Ruby, known as the pickaxe,
has a complete reference for core classes and the standard library.
Check it out here
http://www.pragprog.com/titles/ruby3...mming-ruby-1-9

 
Reply With Quote
 
Chan Nguyen
Guest
Posts: n/a
 
      08-15-2010
Wow, a lot of advices ! Great thanks to everybody. I will check those
links out ^_^ !
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Samuel Sternhagen
Guest
Posts: n/a
 
      08-15-2010
Chan Nguyen wrote:
> Wow, a lot of advices ! Great thanks to everybody. I will check those
> links out ^_^ !

Why's (Poignant) Guide to Ruby:

http://mislav.uniqpath.com/poignant-guide/
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Rick DeNatale
Guest
Posts: n/a
 
      08-15-2010
On Sun, Aug 15, 2010 at 7:34 AM, parser <> wrote:
> On Sun, Aug 15, 2010 at 07:09:29PM +0900, Samuel Sternhagen wrote:
>> Chan Nguyen wrote:
>> > Wow, a lot of advices ! Great thanks to everybody. I will check those
>> > links out ^_^ !

>> Why's (Poignant) Guide to Ruby:
>>
>> http://mislav.uniqpath.com/poignant-guide/

>
> What would he learn from that?


That foxes LOVE chunky bacon!


--
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/pers...-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

 
Reply With Quote
 
Andrew Wagner
Guest
Posts: n/a
 
      08-15-2010
Also, Dave Thomas, the author of the pickaxe book, has a screencast on ruby m=
etaprogramming. While metaprogramming itself is an advanced topic, I watched=
this early on, and felt like it gave me a good jump on understanding the ru=
by object model.

On Aug 14, 2010, at 6:29 PM, "Pablo Torres N." <> wrote:

> On Sat, Aug 14, 2010 at 02:03, Chan Nguyen <> wrote:
>> I wonder is there any website to look up standard library like C++?

>=20
> If you are considering a book, Programming Ruby, known as the pickaxe,
> has a complete reference for core classes and the standard library.
> Check it out here
> http://www.pragprog.com/titles/ruby3...mming-ruby-1-9
>=20


 
Reply With Quote
 
Damjan Rems
Guest
Posts: n/a
 
      08-16-2010
Chan Nguyen wrote:
> Hi everyone,
> I'm a newbie to Ruby. I've just started learning Ruby for a week, but I
> love it ^_^ so much. I wonder is there any website to look up standard
> library like C++?
> And does Ruby have some standard container like C++ ( vector, list, map,
> stack, deque... ). I come from a C++ background, so the way I think in
> programming is pretty much from C++. I can see there's a big differences
> in the way Ruby does work comparing with C++. So what is a good way to
> start thinking in Ruby way? Can anyone share me some experiences? Great
> thanks in advance !


Best ruby libraries documentation link + much more is Sidebar for
firefox. http://ruby-doc.org/docbar/

You may also want to read this site
http://www.ruby-lang.org/en/document...her-languages/,
which explains how is Ruby different from your language.

by
TheR

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can TBird handle 30,000+ emails effectively? Dan Firefox 10 07-11-2006 06:16 PM
How to effectively use custom error page for debugging Tom Conlon ASP .Net 1 07-27-2005 04:22 AM
ANN: Working Effectively with Legacy Code Phlip C++ 0 10-21-2004 09:31 PM
Thought: Will we ever be able to use all the new web techs effectively Cameron HTML 8 01-12-2004 04:31 PM
Beginner question - How to effectively pass a large list J.R. Python 51 01-06-2004 07:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57