[#395238] rubygem: ispunity (unite all your internet connections) — Arun Tomar <tomar.arun@...>

Dear friends,

12 messages 2012/05/01

[#395250] Overwriting one Ruby array or arrays with another — Craig Law <lists@...>

Hi

14 messages 2012/05/02

[#395258] array of strings - finding letter combinations — "Sebastjan H." <lists@...>

Hi All,

16 messages 2012/05/02

[#395357] Why Enumerator#next does not return more than one value? — Földes László <lists@...>

If I have an Enumerator which yields elements of a mathematical series

10 messages 2012/05/07

[#395373] How to use Data_Wrap_Struct to assign the DATA VALUE to an exsiting Ruby object? — Iñaki Baz Castillo <ibc@...>

Hi, my code receives an arbitrary klass name (provided by the user)

8 messages 2012/05/07

[#395429] passing via instance variable or regular () — sam jam <lists@...>

def first

10 messages 2012/05/10

[#395463] I'm looking for a Metaprogramming Project — Phil Stone <lists@...>

Hello,

19 messages 2012/05/11

[#395548] A million reasons why Encoding was a mistake — Marc Heiler <lists@...>

Newcomer wants to try Ruby.

15 messages 2012/05/15
[#395561] Re: A million reasons why Encoding was a mistake — Ryan Davis <ryand-ruby@...> 2012/05/15

[#395595] Re: A million reasons why Encoding was a mistake — Brian Candler <lists@...> 2012/05/16

I will add that the OP is not entirely alone in his opinion.

[#395551] How to ensure that a block runs entirely after other threads? (Thread.exclusive does not "work") — Iñaki Baz Castillo <ibc@...>

Hi, I expected that in the following example code, thread t1 would not

8 messages 2012/05/15

[#395575] GUI with ruby on windows — David Acosta <lists@...>

hello friends, i am a begginer and i have a litlle question, how can i

17 messages 2012/05/16

[#395604] what is going wrong here? — roob noob <lists@...>

Notice the initialization of both classes in each of the examples, if

20 messages 2012/05/16

[#395646] rb_gc_register_address() or rb_gc_mark()? — Iñaki Baz Castillo <ibc@...>

Hi, I've bad experiences with rb_gc_register_address(), it does never

16 messages 2012/05/17

[#395686] reading from and writing to a Unicode encoded file — "Sebastjan H." <lists@...>

Hi,

19 messages 2012/05/18
[#395694] Re: reading from and writing to a Unicode encoded file — Regis d'Aubarede <lists@...> 2012/05/18

Hello,

[#395697] Re: reading from and writing to a Unicode encoded file — "Sebastjan H." <lists@...> 2012/05/18

Regis d'Aubarede wrote in post #1061272:

[#395698] Re: reading from and writing to a Unicode encoded file — Regis d'Aubarede <lists@...> 2012/05/18

Sebastjan H. wrote in post #1061276:

[#395699] Re: reading from and writing to a Unicode encoded file — "Sebastjan H." <lists@...> 2012/05/18

Regis d'Aubarede wrote in post #1061277:

[#395750] Re: reading from and writing to a Unicode encoded file - issues when using Shoes — "Sebastjan H." <lists@...> 2012/05/21

Hi,

[#395754] Re: reading from and writing to a Unicode encoded file - issues when using Shoes — "Sebastjan H." <lists@...> 2012/05/21

Sebastjan H. wrote in post #1061483:

[#395740] ? Ruby through CGI and Rails — Shaun Lloyd <list@...>

Hi everybody,

22 messages 2012/05/21
[#395764] Re: Ruby through CGI and Rails — Brian Candler <lists@...> 2012/05/21

Shaun Lloyd wrote in post #1061455:

[#395786] Re: Ruby through CGI and Rails — Shaun Lloyd <list@...> 2012/05/22

On 22/05/12 03:37, Brian Candler wrote:

[#395838] Re: Ruby through CGI and Rails — Brian Candler <lists@...> 2012/05/23

Shaun Lloyd wrote in post #1061602:

[#395787] Changing self class from inside a method?? — David Madison <lists@...>

Let's start off with the assumption I want a method that allows an

10 messages 2012/05/22

[#395841] Memory-efficient set of Fixnums — George Dupre <lists@...>

Hi,

25 messages 2012/05/23

[#395883] looking for a ruby idiom : r=foo; return r if r — botp <botpena@...>

Hi All,

11 messages 2012/05/24

[#395966] Am I justified to use a global variable if it must be used in all scopes? — Phil Stone <lists@...>

Hello,

12 messages 2012/05/27

[#396010] does this leak more than the size of the string via timing side channels — rooby shoez <lists@...>

string1 = "string"

16 messages 2012/05/29

[#396038] Is it possible to avoid longjmp in exceptions, Thread#kill, exit(), signals? — Iñaki Baz Castillo <ibc@...>

Hi, my Ruby C extension runs a C loop (libuv) without GVL. At some

8 messages 2012/05/29

Re: From Python to Ruby

From: Chad Perrin <code@...>
Date: 2012-05-04 17:22:27 UTC
List: ruby-talk #395319
On Sat, May 05, 2012 at 01:25:24AM +0900, Massimiliano Tomassoli wrote:
> Hi everyone!
> 
> I've been studying Python for a month or two but I didn't like it. I did
> some interesting things with it, though: I added some form of currying,
> pipelining and, eventually, code blocks.
> The reaction of the Python community wasn't very positive, to put it
> mildly, and I was accused of trying to ruin Python. Finally, someone
> told me to go to my OMG-RUBYCODEBLOCKS-FRIENDS and I understood what was
> happening.
> I would never have expected such a reaction, really.
> 
> I decided to follow the kindly-put invitation and here I am!
> I've read a few articles about Ruby and hey... I like it pretty much.
> It reminds me of Perl (which I learned before Python) but is much
> cleaner. It is much more flexible than Python and you can even build
> DSLs!
> 
> Python's community hate DSLs, by the way.
> Python is very high-level and yet, while using it, I began to miss many
> of the C++ capabilities that let you bend its syntax and do incredible
> things like those in the Boost libraries.
> I think that dynamic languages can do much more without all that noise
> (C++ templates are very hard to maintain). So, it's a pity when a
> language such as Python lacks many features just for the fear that they
> are misused or abused.
> 
> Anyway, a friend of mine suggested that I pick up "The well-grounded
> Rubyist" and then "Metaprogramming Ruby".
> What do you think of them?

I have not read The Well-Grounded Rubyist, so I can't really comment on
it.  I'll comment on Metaprogramming Ruby along with others, with URIs
for articles where I've reviewed them (to varying levels of detail)
before this.

The following five books were very briefly reviewed here:

    http://blogs.techrepublic.com.com/programming-and-development/?p=3886

* Everyday Scripting With Ruby is an excellent introduction to the
  language for people with an at least passing familiarity with
  programming.

* Metaprogramming Ruby is a fantastic introduction to metaprogramming
  with Ruby, but you might want to have a more basic book about Ruby on
  hand before tackling this book.  Unlike many books organized the way
  this book was organized (see Ruby Best Practices), this thing is
  eminently suitable to just picking it up and reading it straight
  through from beginning to end.  It also stands up to re-reading and use
  as a reference when grasping for ideas on how to do something.

* Programming Ruby is pretty comprehensive.  It is a bit dry by the
  standards of most Ruby books, but pretty engaging by the standards of
  most other languages' popular books, and the wealth of knowledge buried
  in it is invaluable.  It is definitely not for people new to
  programming.

* Ruby Best Practices is a great book for expanding your knowledge of
  Ruby some time after you've got a little bit of Ruby time under your
  belt, and it's great for jumping around in it to read the parts that
  happen to interest you Right Now.  It conveys some real sense of how
  real, talented Rubyists write code, as a means of imparting an
  appreciation for good Ruby code on the reader.

* The Ruby Way is a cookbook that contains so many examples of how to
  accomplish basic tasks that one might be able to build a career as a
  professional Rubyist on just reproducing the snippets contained in it
  and tying them together into programs (maybe).  The best thing about
  it, though, is the way it uses these recipes to illustrate idiomatic
  Ruby coding styles.

Five other books were also reviewed there, though I tried to pick out a
selection that I thought would be most relevant to the sense I have of
what you want/need based on what you've said here.

The following two books were reviewed here:

      http://blogstrapping.com/?page=2011.194.11.46.40

* Eloquent Ruby is a great book for both people new to Ruby with at least
  a passing familiarity with programming *and* for people who have been
  writing code in Ruby for a while and want to make sure they haven't
  missed anything important.

* The Book of Ruby is a terrible book that tries to teach the reader bad
  habits, includes code formatted in such a way that it is fairly
  difficult to read, and explains things in a kind of haphazard manner
  prone to digressions on irrelevancy and generally fails to do a very
  good job of teaching people how to program well in Ruby.

I hope that helps.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

In This Thread