SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: Ruby question

Hybrid View

  1. #1
    SitePoint Enthusiast keyword's Avatar
    Join Date
    Jan 2006
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ruby question

    How safe is to use Ruby since it is javascript technology? How can I be sure it will work in 100% cases since we all know javascripts don't behave every time like we want them to behave
    Top Paying Keywords - - - (Free List)
    Maximize your Adsense/YPN earnings
    Show only high paid ads on your site
    NEW! SEO Wiki - learn how to optimize

  2. #2
    throw me a bone ... now bonefry's Avatar
    Join Date
    Nov 2004
    Location
    Romania
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What are you talking about?




    Advisor edit: rudeness removed
    Last edited by r937; Jan 29, 2006 at 20:37.

  3. #3
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by keyword
    [Ruby] is javascript technology
    Where did you hear this?
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by keyword
    How safe is to use Ruby since it is javascript technology? How can I be sure it will work in 100% cases since we all know javascripts don't behave every time like we want them to behave
    Ruby has some similarities to Javascript (interpreted language, some language features) but it's not based on Javascript.

    And for webapps Ruby code is processed on the server. The client never interprets any of it.

  5. #5
    SitePoint Zealot HenriIV's Avatar
    Join Date
    Jun 2004
    Location
    France
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you talking about Ajax stuff coming with rails / JS form validation?

  6. #6
    Resident Java Hater
    Join Date
    Jul 2004
    Location
    Gerodieville Central, UK
    Posts
    446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ruby Question? Never

    I think you are getting confused with AJAX. Ruby and JS are generally used in a complementary way (Ruby for backend, JS for frontend). AJAX is just a very very specific use of Ruby generally found in Rails, and a very small amount of Ruby code is used like this.

    Like any language, (such as PHP, .NET based "languages", etc etc), you should always practice the normal things of validating all of your input. This doesn't just apply to Ruby, it applies to any language. Generally speaking security isn't a level language things, but rather a framework/application level issue (OK, Some exceptions here as PHP is very specific to web programming so in someways it crosses into the framework releam by design)

    Generally speaking, Ruby and JS are very different. buy looking at what you've stated, you are pointing out issues that are relating to the implementation of the JS VM across different browsers. Generally, with ruby, most people use the C implementation of the Ruby VM, so Ruby doesn't suffer these issues

  7. #7
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ruby is just like PHP: it runs on the server. Javascript runs in your browser, so you may have browser quircks that screw up your Javascript, but that is not the case with Ruby.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •