Static Typing for Ruby on Rails

dc.contributor.authorAn, Jong-hoon (David)
dc.contributor.authorChaudhuri, Avik
dc.contributor.authorFoster, Jeffrey S.
dc.date.accessioned2010-05-29T19:27:47Z
dc.date.available2010-05-29T19:27:47Z
dc.date.issued2010-01-27
dc.description.abstractRuby on Rails (or just "Rails") is a popular web application framework built on top of Ruby, an object-oriented scripting language. While Ruby’s powerful features help make Rails development extremely lightweight, this comes at a cost: Ruby is dynamically typed, and so type errors in a Rails application can remain latent until run time, making debugging and maintenance harder. In this paper, we describe DRails, a novel tool that brings static typing to Rails applications to detect a range of run time errors. DRails works by translating Rails programs into pure Ruby code in which Rails’s numerous implicit conventions are made explicit. We then discover type errors by applying DRuby, a previously developed static type inference system, to the translated program. We ran DRails on a suite of applications and found that it was able to detect several previously unknown errors.en_US
dc.identifier.urihttp://hdl.handle.net/1903/10109
dc.language.isoen_USen_US
dc.relation.ispartofseriesUM Computer Science Department;CS-TR-4950
dc.titleStatic Typing for Ruby on Railsen_US
dc.typeTechnical Reporten_US

Files

Original bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
CS-TR-4950.pdf
Size:
229.12 KB
Format:
Adobe Portable Document Format
License bundle
Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
1.8 KB
Format:
Item-specific license agreed upon to submission
Description: