1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

Ruby: Ruby PHP Equivilents

  1. Clicks today:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    3.67/5

Ruby » Basics — over 13 years ago
Learning Ruby and used to working with PHP? Here are some useful tips when crossing over.

Comments

avatarholman (administrator and creator)over 13 years ago

While these are valid examples, they seem a little bit PHP-y, from my point of view. As you get more into Ruby, you tend to place a lot of value on typical Ruby idioms of development. For example, a lot of these could use Ruby's String class, which seems (to me, at least) to be a more appropriate way of accomplishing these tasks. Using .include?('string') instead of the array-based approach, for example, or one of the many ways to use regexes on a String.

avatarvisionmedia over 13 years ago

Certainly. The square brace shorthand is meant for this purpose as well though so personally I do not see any reason not to use it, however I agree that more readable alternatives are available

avatarhayedia 6 months ago

I like what you guys are up also. Such clever work and reporting! Carry on the superb works guys I've incorporated you guys to my blogroll. I think it will improve the value of my website :). More Info At: קידום אתרים

avatar247instelator 6 months ago

Just wanna input on few general things, The website layout is perfect, the written content is very excellent : D. More Info At: אינסטלטור בחיפה

avataracrehovot 6 months ago

But wanna remark on few general things, The website style is perfect, the articles is rattling good : D. More Info At: טכנאי מזגנים ברחובות

avataracrishon 6 months ago

Just wanna remark on few general things, The website design and style is perfect, the subject matter is very good : D. More Info At: טכנאי מזגנים בראשון לציון

avatarallmylisting 6 months ago

Just wanna remark on few general things, The website pattern is perfect, the content is real wonderful : D. More Info At: אינדקס עסקים

avatarcenterplumber 6 months ago

Simply wanna remark on few general things, The website design and style is perfect, the articles is rattling superb : D. More Info At: אינסטלטור

avatarasakimweb 6 months ago

But wanna comment on few general things, The website layout is perfect, the articles is really fantastic : D. More Info At: אינדקס עסקים

avatarcoolpageil 6 months ago

Merely wanna comment on few general things, The website layout is perfect, the content is rattling great : D. More Info At: קידום אתרים

avatarbusinessads 6 months ago

Simply wanna comment on few general things, The website design is perfect, the content material is really fantastic : D. More Info At: אינדקס עסקים

avatarbusinessads 6 months ago

Only wanna input on few general things, The website design and style is perfect, the articles is really excellent : D. More Info At: פרסום מאמרים

avatarbusinessindex 6 months ago

But wanna comment on few general things, The website layout is perfect, the articles is really great : D. More Info At: אינדקס עסקים

avatardesignforunet 6 months ago

Simply wanna comment on few general things, The website pattern is perfect, the subject matter is very excellent : D. More Info At: קידום אתרים

avatardesignforunet 6 months ago

Simply wanna remark on few general things, The website design and style is perfect, the articles is very fantastic : D. More Info At: אינדקס עסקים

avatardesignforunet 6 months ago

But wanna remark on few general things, The website style and design is perfect, the content material is real good : D. More Info At: מנעולן בפתח תקווה

avatarhayedia 6 months ago

Only wanna comment on few general things, The website layout is perfect, the content is real wonderful : D. More Info At: אינדקס עסקים

avatarlocksmithholon 6 months ago

Simply wanna comment on few general things, The website design and style is perfect, the content is very fantastic : D. More Info At: מנעולן בחולון

avatarmyarticlesil 6 months ago

Just wanna comment on few general things, The website design and style is perfect, the subject material is very excellent : D. More Info At: פרסום מאמרים

avatarmyarticlesil 6 months ago

Simply wanna comment on few general things, The website pattern is perfect, the content is very good : D. More Info At: מנעולן ברמת גן

avatarmyadsil 6 months ago

Just wanna comment on few general things, The website style and design is perfect, the content is very superb : D. More Info At: אינדקס עסקים

avatarmyadsil 6 months ago

Simply wanna input on few general things, The website style is perfect, the content is rattling wonderful : D. More Info At: מנעולן ברחובות

avatarmyservicesil 6 months ago

Only wanna input on few general things, The website style and design is perfect, the articles is rattling great : D. More Info At: אינדקס עסקים

avatarlocksmithrishon 6 months ago

Just wanna remark on few general things, The website style is perfect, the subject matter is real great : D. More Info At: מנעולן בראשון לציון

avatarngdesign 6 months ago

Simply wanna remark on few general things, The website layout is perfect, the written content is rattling great : D. More Info At: תחפושות לפורים

avatarmanulan365 6 months ago

Just wanna comment on few general things, The website style and design is perfect, the articles is really wonderful : D. More Info At: מנעולן

avatarmanulan365 6 months ago

Only wanna remark on few general things, The website design and style is perfect, the articles is very superb : D. More Info At: אינסטלטור

avatarroofsealingil 6 months ago

Only wanna input on few general things, The website style and design is perfect, the articles is real wonderful : D. More Info At: איטום גגות

avatarplumberman 6 months ago

Just wanna input on few general things, The website style and design is perfect, the content is very good : D. More Info At: אינסטלטור

avatarsolarrehovot 6 months ago

Simply wanna comment on few general things, The website style is perfect, the written content is very great : D. More Info At: דודי שמש ברחובות

avatarthepublishes 6 months ago

But wanna comment on few general things, The website design is perfect, the content material is really good : D. More Info At: פרסום מאמרים

avataryakirmadbir 6 months ago

But wanna comment on few general things, The website style is perfect, the subject matter is real wonderful : D. More Info At: מדביר

avatartipmeil 6 months ago

Merely wanna comment on few general things, The website style and design is perfect, the articles is rattling superb : D. More Info At: פרסום מאמרים

Your Comment

You must be logged in to post a comment.