Developing JavaScript applications in Eiffel

Alexandru Ioan Dima · Repository for Publications and Research Data (ETH Zurich) · 2011

For numerous reasons, ranging from economical concerns such as distribution costs to security concerns (latest bug fixes), software projects are nowadays moving from native applications to web applications.Rich client applications are enabled by JavaScript, the programming language of the browser.However, JavaScript makes it easy to introduce errors because it is dynamically and weakly typed, because it is not compiled and because different browsers implement the specifications differently.This thesis presents an automatic translator that transforms Eiffel programs to JavaScript programs.The translator supports the most important Eiffel features, including agents, contracts, exception handling, multiple inheritance, and once routines, bringing the engineering power of objectoriented programming practices and tools, together with contracts and voidsafety to web applications.The applicability of the translator has been demonstrated with several case studies, including one where a full-fledged web-based source code editor was implemented.CONTENTS 3.3 Testing . . . . .

Read the paper · More papers on PaperTik