Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Any recovering PHP coders around? was Re: x=[:some_key] does not work?
Giles Bowkett
11/4/2007 7:19:00 PM
On 11/3/07, Joshua Muheim <forum@josh.ch> wrote:
> Ups I'm sorry, I messed things up because PHP uses [] for both arrays
> and hashes.
E-mail me off list if you want to help me with something. It's
occurred to me that it would be very useful to create a simple guide
for the differences between Ruby and PHP syntax, but I don't remember
enough PHP to do it off the top of my head.
--
Giles Bowkett
Blog:
http://gilesbowkett.bl...
Portfolio:
http://www.gilesg...
Tumblelog:
http://giles.t...
3 Answers
Alex Young
11/4/2007 9:39:00 PM
0
Giles Bowkett wrote:
> On 11/3/07, Joshua Muheim <forum@josh.ch> wrote:
>> Ups I'm sorry, I messed things up because PHP uses [] for both arrays
>> and hashes.
>
> E-mail me off list if you want to help me with something. It's
> occurred to me that it would be very useful to create a simple guide
> for the differences between Ruby and PHP syntax, but I don't remember
> enough PHP to do it off the top of my head.
>
Way, way back I started a section of the Rails wiki
(
http://wiki.rubyonrails.org/rails/pages/PHPE...
) that was
supposed to be a mirror of the PHP documentation structure so that
people coming in from PHP would be able to easily figure out, through
knowing the location of the relevant concept in the PHP documentation,
what the Ruby equivalent is.
It never took off.
--
Alex
Giles Bowkett
11/4/2007 9:54:00 PM
0
> >> Ups I'm sorry, I messed things up because PHP uses [] for both arrays
> >> and hashes.
> >
> > E-mail me off list if you want to help me with something. It's
> > occurred to me that it would be very useful to create a simple guide
> > for the differences between Ruby and PHP syntax, but I don't remember
> > enough PHP to do it off the top of my head.
> >
> Way, way back I started a section of the Rails wiki
> (
http://wiki.rubyonrails.org/rails/pages/PHPE...
) that was
> supposed to be a mirror of the PHP documentation structure so that
> people coming in from PHP would be able to easily figure out, through
> knowing the location of the relevant concept in the PHP documentation,
> what the Ruby equivalent is.
>
> It never took off.
The Rails wiki is a whole nother ball of wax. Let's not even go there.
The first edition of "The Ruby Way" had a cool set of appendices in
this vein, e.g., "From Perl To Ruby," "From Python To Ruby," etc., but
"From PHP To Ruby" is an idea whose time has really come.
--
Giles Bowkett
Blog:
http://gilesbowkett.bl...
Portfolio:
http://www.gilesg...
Tumblelog:
http://giles.t...
John Joyce
11/5/2007 2:06:00 AM
0
On Nov 4, 2007, at 3:53 PM, Giles Bowkett wrote:
>>>> Ups I'm sorry, I messed things up because PHP uses [] for both
>>>> arrays
>>>> and hashes.
>>>
>>> E-mail me off list if you want to help me with something. It's
>>> occurred to me that it would be very useful to create a simple guide
>>> for the differences between Ruby and PHP syntax, but I don't
>>> remember
>>> enough PHP to do it off the top of my head.
>>>
>> Way, way back I started a section of the Rails wiki
>> (
http://wiki.rubyonrails.org/rails/pages/PHPE...
) that was
>> supposed to be a mirror of the PHP documentation structure so that
>> people coming in from PHP would be able to easily figure out, through
>> knowing the location of the relevant concept in the PHP
>> documentation,
>> what the Ruby equivalent is.
>>
>> It never took off.
>
> The Rails wiki is a whole nother ball of wax. Let's not even go there.
> The first edition of "The Ruby Way" had a cool set of appendices in
> this vein, e.g., "From Perl To Ruby," "From Python To Ruby," etc., but
> "From PHP To Ruby" is an idea whose time has really come.
>
Could be a trap. It may be tricky to keep it focused. Personally, I
forgot almost all the PHP I knew. But learning Ruby worked better for
me by not thinking about PHP at all.
That said, I always found that the Oreilly book PHP Cookbook was
excellent even just from showing concepts for web development, and it
might be a good source of bits and pieces that could be shown done in
Ruby to illustrate how very different it would be.
The hardest thing will be the very non OOP nature of PHP compared
with the very OOP nature of Ruby.
PHP does have a tacked on object model, but most PHP is still done
like C/C++.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Any recovering PHP coders around? was Re: x=[:some_key] does not work?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password