From: Matthew Kerwin Date: 2012-10-06T13:37:03+09:00 Subject: Re: Calculation of heights --14dae93405a52608ef04cb5c8a54 Content-Type: text/plain; charset=ISO-8859-1 Just keep in mind that all (programming) languages are different, and the solutions to a single problem must necessarily be different in those languages. Writing a java program using code that works in C is just as "wrong." It just so happens that ruby provides a much more "functional" standard library, so where creating or analysing a java-esque solution will help your understanding for similar languages (C++, C#, etc.) you'd still need to come up with a different algorithmic approach to solve it in a purely procedural language like assembly, and yet another for a more functional language like ruby. PS stay away from lisp On Oct 6, 2012 11:31 AM, "Joao Silva" wrote: > Robert Klemme wrote in post #1078745: > > >> is not applicable in Ruby using for loops, but not the only language I > >> use then I get a little tricky to get used. > >> > >> not if you understand the problem. > > > > You lost me here completely. What are you trying to say? > > > > Kind regards > > > > robert > > What I'm trying to say is that whenever I post some code, which use a > conventional structure, such as a for loop, a while loop, etc, I > responded > to my something like this is Ruby and is not C, C++ or Java, and > some works that utilize own Ruby (ruby way), the problem is that these > functions only work in ruby and whenever you use another language, I > have to change the way I program certain functions. > > Sorry for my English. :) > > -- > Posted via http://www.ruby-forum.com/. > > --14dae93405a52608ef04cb5c8a54 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Just keep in mind that all (programming) languages are different, and th= e solutions to a single problem must necessarily be different in those lang= uages.

Writing a java program using code that works in C is just as "wrong= ."

It just so happens that ruby provides a much more "functional"= standard library, so where creating or analysing a java-esque solution wil= l help your understanding for similar languages (C++, C#, etc.) you'd s= till need to come up with a different algorithmic approach to solve it in a= purely procedural language like assembly, and yet another for a more funct= ional language like ruby.

PS stay away from lisp

On Oct 6, 2012 11:31 AM, "Joao Silva" = <lists@ruby-forum.com> wr= ote:
Robert Klemme wrote in post #1078745:

>> is not applicable in Ruby using for loops, but not the only langua= ge I
>> use then I get a little tricky to get used.
>>
>> not if you understand the problem.
>
> You lost me here completely. =A0What are you trying to say?
>
> Kind regards
>
> robert

What I'm trying to say is that whenever I post some code, which use a conventional structure, such as a for loop, a while loop, etc, I
responded
to my something like this is Ruby and is not C, C++ or Java, and
some works that utilize own Ruby (ruby way), the problem is that these
functions only work in ruby and whenever you use another language, I
have to change the way I program certain functions.

Sorry for my English. :)

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

--14dae93405a52608ef04cb5c8a54--