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:
    1
  3. Overall rating:
    3.67/5

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

Comments

avatarholman (administrator and creator)almost 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 almost 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 23 days 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 17 days ago

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

avataracrehovot 17 days ago

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

avataracrishon 17 days 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 17 days ago

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

avatarcenterplumber 17 days 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 17 days ago

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

avatarcoolpageil 17 days ago

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

avatarbusinessads 17 days ago

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

avatarbusinessads 17 days 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 17 days ago

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

avatardesignforunet 17 days ago

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

avatardesignforunet 17 days 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 17 days 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 17 days ago

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

avatarlocksmithholon 17 days 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 17 days 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 17 days ago

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

avatarmyadsil 17 days 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 17 days ago

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

avatarmyservicesil 17 days 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 17 days ago

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

avatarngdesign 17 days ago

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

avatarmanulan365 17 days 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 17 days 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 17 days 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 17 days 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 17 days ago

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

avatarthepublishes 17 days ago

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

avataryakirmadbir 17 days ago

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

avatartipmeil 17 days 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.