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
| SitePoint Sponsor |
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




What are you talking about?
Advisor edit: rudeness removed
Last edited by r937; Jan 29, 2006 at 20:37.





Where did you hear this?Originally Posted by keyword
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
Ruby has some similarities to Javascript (interpreted language, some language features) but it's not based on Javascript.Originally Posted by keyword
And for webapps Ruby code is processed on the server. The client never interprets any of it.

Are you talking about Ajax stuff coming with rails / JS form validation?



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




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