473,320 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

OTish: Ruby learningcurve for PHP programmer?

Hi Group,

This may seem a odd question in a PHP group, but I think this might be a
good place to ask since I am mainly a PHP coder these days that maybe
starts with Ruby.

Situation:
A client of a friend of mine asked me to take over a project done in
Ruby. (The original programmer appearantly behaved like an @ss and his
client wants to get rid of him.)
The project is done in Ruby on Rails.
I have 0 experience with Ruby, but consider myself a reasonably seasoned
programmer (php/java/vb/basic perl/javascript).

Does anybody know how much time I should expect to spend to get 'on
rail' with Ruby (Ruby on Rails)?
The language claims to be easy and intuitive and even fun. :P
(But do you know of a language that says of itself to be hard,
counterintuitive and absolutely NO fun?)

How does Ruby compare to PHP?
What do you think of Ruby and Ruby on Rails?
I don't need links to wikepedia or ruby homepage or something like that.
Found them myself. ;-)
I hope for opinions from PHP programmers on Ruby.

Thanks in advance for any insights.

Regards,
Erwin Moller

Aug 29 '07 #1
9 2263
Situation:
A client of a friend of mine asked me to take over a project done in
Ruby. (The original programmer appearantly behaved like an @ss and his
client wants to get rid of him.)
The project is done in Ruby on Rails.
I have 0 experience with Ruby, but consider myself a reasonably seasoned
programmer (php/java/vb/basic perl/javascript).
I have zero experience in Ruby on Rails as well, but I have had a few
introductions. Ruby is an object oriented language, so if you use object
orientation in your other languages, this will be familiar. Just the
mixins are different. But not rocket-science-difficult as far as I know.

If you have experience with unit testing, Ruby on Rails will be an
enlightenment. If you don't like unit tests, prepare for a hard time.
The Ruby on Rails system is designed to guide you to "good programming".
You may have to learn to love it...
Does anybody know how much time I should expect to spend to get 'on
rail' with Ruby (Ruby on Rails)?
The language claims to be easy and intuitive and even fun. :P
(But do you know of a language that says of itself to be hard,
counterintuitive and absolutely NO fun?)
Apart from BrainF*ck (see http://bluesorcerer.net/esoteric/bf.html) and
intercal (see http://catb.org/~esr/intercal/), I would not know of any...
How does Ruby compare to PHP?
As Apple to PEAR probably ;) No. Just kidding. Ruby is quite legible and
"purely" object oriented. You should be able to read it.
What do you think of Ruby and Ruby on Rails?
If I would need it for my job, I would not object to learning it. I have
never had the need though. But enough of my friends use it.

Good luck,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/
Aug 29 '07 #2
Erwin Moller
<Si******************************************@spam yourself.comwrote in
news:46*********************@news.xs4all.nl:

How does Ruby compare to PHP?
What do you think of Ruby and Ruby on Rails?
I don't need links to wikepedia or ruby homepage or something like
that.
Found them myself. ;-)
I hope for opinions from PHP programmers on Ruby.
I don't have much experience with Ruby either, but from what I've read,
it doesn't scale very well at all. PHP is apparantly far superior in
that regard - I've read comments on the web that indicate some people
have junked their Ruby projects and recoded them in PHP for the scaling
issue alone.

One thing about Ruby I've noticed is that its followers are pretty rabid
about it, and generally don't like to hear bad things about it.

I personally love PHP, it does absolutely everything I need it to do (at
the moment), it's fast, has many years of experience and development
behind it, and is almost universally available on web servers. That
being said, I am freely able to handle disparaging comments about its
shortcomings, which I am well aware of.

I wouldn't learn Ruby unless a new job (ie: career, not project)
required it. There are certain languages/apps I'm not prepared to do a
'adequate' performance with; I'd rather get paid 'expert' style money
for my PHP skills than average pay for 'servicable' Ruby skills. Much in
the same way that I just stopped trying to keep up with
actionscript,asp, etc... I'd rather be an expert in a couple languages
than a jack-of-all-trades.

Ruby will be good for getting you to standardize your coding I suppose,
but if you're after speed, scalability and a ton of support/development
history, then PHP is where it's at.
ps: I am not interested in a flame-war!
Aug 29 '07 #3
On 29 aug, 18:48, Good Man <he...@letsgo.comwrote:
Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote innews:46*********************@news.xs4all.nl:
How does Ruby compare to PHP?
What do you think of Ruby and Ruby onRails?
I don't need links to wikepedia or ruby homepage or something like
that.
Found them myself. ;-)
I hope for opinions from PHP programmers on Ruby.

I don't have much experience with Ruby either, but from what I've read,
it doesn't scale very well at all. PHP is apparantly far superior in
that regard - I've read comments on the web that indicate some people
have junked their Ruby projects and recoded them in PHP for the scaling
issue alone.

One thing about Ruby I've noticed is that its followers are pretty rabid
about it, and generally don't like to hear bad things about it.

I personally love PHP, it does absolutely everything I need it to do (at
the moment), it's fast, has many years of experience and development
behind it, and is almost universally available on web servers. That
being said, I am freely able to handle disparaging comments about its
shortcomings, which I am well aware of.

I wouldn't learn Ruby unless a new job (ie: career, not project)
required it. There are certain languages/apps I'm not prepared to do a
'adequate' performance with; I'd rather get paid 'expert' style money
for my PHP skills than average pay for 'servicable' Ruby skills. Much in
the same way that I just stopped trying to keep up with
actionscript,asp, etc... I'd rather be an expert in a couple languages
than a jack-of-all-trades.

Ruby will be good for getting you to standardize your coding I suppose,
but if you're after speed, scalability and a ton of support/development
history, then PHP is where it's at.

ps: I am not interested in a flame-war!
I have been a PHP programmer switching to Rails and must admit I
needed some time to adjust. You are forced in a MVC structure that can
feel strange in the beginning. Rails is now all about restful design.
I think this simplifies things and I greatly suggets it when learning
RoR.

Ruby code is very easy to learn (is the Rails part that can take some
time). I now greatly prefer Ruby over PHP especially for readability.
Especialy all the $blable->$dqsd->$gdsq make your PHP code ugly I
think.

regards,
STijn

Sep 4 '07 #4
On Aug 29, 4:16 pm, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
This may seem a odd question in a PHP group, but I think this might be a
good place to ask since I am mainly a PHP coder these days that maybe
starts with Ruby.
<snip>

I was forced to start RoR and I learned it. The idea is impressive.
The main idea is to cut short the development time; if you have
already invested your time on optimization and other code speedup
study, you'll start wondering about performance. And, finally Ruby is
slow and agreed. Also, RoR is also slow (execution speed) comparing
with normal programming. But, they're marketing by it's development
time. After reading RoR and tried it little (Ruby is Perl and Python),
I was wondering why this can't be done in PHP (Ruby guys swear that it
can't be done in PHP). Yes, we have couple of RoR alternatives. I got
settled in CakePHP as the time I have spent on RoR is easy to adopt
the CakePHP (the docs on CakePHP is very limited; but switching from
RoR to CakePHP is easy). Still it's slow (in terms of execution
speed), but the development is faster for Web 2.0/digg like sites.

I was told that RoR and it's other clones can be effectively used
to create prototype sites. If the site drives traffic and dollars,
another set of time and dollars can be invested to rewrite from
scratch using normal programming. IOW, you got and idea, you quickly
create the site, if the world is impressed with the idea, you can then
rewrite using normal programming.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Sep 4 '07 #5
R. Rajesh Jeba Anbiah wrote:
Also, RoR is also slow (execution speed) comparing
with normal programming. But, they're marketing by it's development
time.
Wow, what a marketing concept - your apps will suck, but you can create
them really, really fast.
Sep 4 '07 #6
NC
On Sep 4, 11:16 am, Sanders Kaufman <bu...@kaufman.netwrote:
>
Wow, what a marketing concept - your apps will suck, but you can
create them really, really fast.
Worked for Microsoft though, didn't it? :)

Cheers,
NC

Sep 4 '07 #7
NC wrote:
>
Worked for Microsoft though, didn't it? :)
Micro-who?
Are they the folks who make that ridiculously complex, overpriced, IBM
knock-off?

I'm a Linux newbie.
I never heard of no Micro$oft.
That's my story, and I'm sticking to it. ;)

.... and I never ever voted Republican, either.
Sep 4 '07 #8
On Tue, 04 Sep 2007 20:16:08 +0200, Sanders Kaufman <bu***@kaufman.net>
wrote:
R. Rajesh Jeba Anbiah wrote:
>Also, RoR is also slow (execution speed) comparing
with normal programming. But, they're marketing by it's development
time.

Wow, what a marketing concept - your apps will suck, but you can create
them really, really fast.
You've got a point, however: most sites will not have very heavy traffic.
A descent amount of sites I work on will have < 1000 visitors a day. A
little more resource use for less investment/time could very well be a
very justifiable, conscious descision.

--
Rik Wasmus
Sep 4 '07 #9
Rik Wasmus wrote:
You've got a point, however: most sites will not have very heavy
traffic. A descent amount of sites I work on will have < 1000 visitors a
day. A little more resource use for less investment/time could very well
be a very justifiable, conscious descision.
Yeah - even a mutt has someone who loves him. :)
Sep 5 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
13
by: Wayne Folta | last post by:
I've been a long-time Perl programmer, though I've not used a boatload of packages nor much of the tacky OO. A couple of years ago, I decided to look into Python and Ruby. Python looked OK, but...
5
by: Matias | last post by:
I'm not asking if it's better or not than php... I want to know the opinions of web developers about this new toy... Byee..
22
by: Francois | last post by:
I discovered Python a few months ago and soon decided to invest time in learning it well. While surfing the net for Python, I also saw the hype over Ruby and tried to find out more about it, before...
44
by: John A. Bailo | last post by:
Dr. Dobbs has a /glowing/ article on Ruby on Rails this month. What do you guys think? Can it replace .net, php and java? And be the Open Source OOP web solution that is not bound to Sun or...
9
Niheel
by: Niheel | last post by:
I've used the following tutorials to help be get a better understanding of Ruby On Rails or ROR. Installing Ruby on Rails - Fedora / Lighthttpd Tutorial & Setup for Ruby on Rails Rolling with...
24
by: Antoine De Groote | last post by:
Hi everybody, is there a python equivalent for the ruby %w operator? %w{a b c} creates an array with strings "a", "b", and "c" in ruby... Thanks a lot Regards, antoine
10
by: lawrence k | last post by:
I work mostly in PHP, but at the web design firm where I work we are thinking of switching to Ruby on Rails. Our lead designer recently installed Typo on a client's site and he said to us, with...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.