Sanjay Kaushik Mca, HMR ITM, Delhi 18 October 2012
Sanjay Kaushik Mca, HMR ITM, Delhi 18 October 2012
a modern programming language available for Windows, Mac OS, Unix/Linux, Java (JRuby),
.NET (IronRuby), and Android (Ruboto) flexible and easy to read and write: def is_lower_48?(address) address.country == "United States" and not ["AK", "HI"].include?(address.state) end designed to maximize programmer happiness
a framework for building web applications in Ruby a set of strong ideological opinions about how web
applications should be structured a particularly good tool for building prototypes rapidly (which doesn't mean it's only good for that) a thriving, productive, fractious community of free software developers a constantly growing and changing software ecosystem with libraries to do almost anything
Basecamp, Twitter, Hulu, Groupon, ... Blacklight (projectblacklight.org), a Solr-based discovery interface Umlaut (wiki.code4lib.org/index.php/Umlaut), a link resolver enhancer Library Lab projects developed at the Berkman Center (like the Widener carrel reservation app) The HCL annotated bibliography application I wrote
<cfset today = Now() /> <div id="the_date"> <cfoutput>Today's date is #DateFormat(today, "yyyy-mm-dd")# </cfoutput> </div> It's a lot like writing a regular website, only every so often you tell the server to do something Usually you eventually reach an unmaintainable mess
The model is your representation of data (bibliographic records, search queries, shopping carts, ...) The view is the web pages that you show to the user, and all the behavior they contain The controller directs traffic, receiving requests from the user, deciding what actions to take, and mediating between model and view
you to follow this paradigm Rails forces you to from the very beginning
and a good one for people who are new to programming Rails is a wonderful system for building web applications, if you can program or want to learn programming Ruby on Rails has a steeper learning curve than pagecentered systems like PHP or ColdFusion If you need to build an interactive web thing and don't really like the idea of programming, try Drupal instead
Questions?