1 JRuby on Rails GAO ANG Sun Functional Campus Ambassador 1.

Slides:



Advertisements
Similar presentations
Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II.
Advertisements

Web applications using Java and NetBeans
Aneef Fashir Software Architect Assette. About Myself 5 years of experience in programming. BSc(Hons) in Computer Science and MIS. Currently working at.
Sakai on Rails Integrating Ruby and Sakai David Adams, Virginia Tech.
Introduction to Model-View-Controller (MVC) Web Programming with TurboGears Leif Oppermann,
Server-Side vs. Client-Side Scripting Languages
CS 142 Lecture Notes: Rails ActiveRecordSlide 1 Model for Student Table SELECT * FROM students; | id | name.
CS 290C: Formal Models for Web Software Lecture 1: Introduction Instructor: Tevfik Bultan.
Web programming for project students Dr Jim Briggs.
Chapter 13 Web Application Infrastructure. Objectives Explain the components and purpose of a web application platform Describe several common webapp.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
Introduction to the Java Stack Michael Youngstrom.
ECLIPSE IDE N AME : A SHOK P ADMARAJU C OURSE : T OPICS ON S OFTWARE E NGINEERING I NSTRUCTOR : D R. S ERGIU D ASCALU.
DR. MOHAMMAD IQBAL THANKS TO ADITYA SENGUPTA Comparing Web Frameworks.
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
Ruby on Rails: An Introduction JA-SIG Summer Conference 2007 Michael Irion The University of Tulsa.
RUBY ON RAILS It’s so rad. What we’ll cover  What is Ruby?  What is RoR?  Why RoR?  Developing with RoR  Deployment  Demo  Questions.
Content Management Systems AN INTRODUCTION. Learning Objectives To know what a Content Management System is Have an understanding of the different types.
Apache Tomcat Web Server SNU OOPSLA Lab. October 2005.
Rails and Grails. To get started Make sure you have java installed You can get the sdk and jre at:
Library à la Carte: Customize|Collaborate|Connect Overview & Demo Kim Griggs & Jane Nichols Oregon State University.
Robert Clevenger Principal Product Manager Oracle Corporation.
Ruby & rails by Nicholas Belotti. What is ruby Ruby is an object orientated scripting language. In Ruby...everything is an object! Ruby was released in.
Web Application Programming Carol Wolf Computer Science.
Nynox.com Nynox Help Desk Affordable Help Desk Solution.
Lecture 19 Web Application Frameworks Boriana Koleva Room: C54
Bringing power of simulation to the public.
Ruby. Who am I? 1- Bunlong Van 2- Sreyleap Lay, 3- Chhon Meily Blog:
Lecture 11 Rails Topics SaaSSaaS Readings: SaaS book Ch February CSCE 740 Software Engineering.
Java Programming Presented by Daniel Rosenthal Friday, November 30 th, 2007.
© Copyright IBM Corporation 2007 AP/Americas April 15-18, 2007 Anaheim, California Introduction to RubyOnRails - a J2EE replacement? Russell Scheerer –
Introduction to Web Dimitar Nenchev Ivan Nakov
Associations INFO 2310: Topics in Web Design and Programming.
USING RUBY An Introduction By Evgeny Rahman. About Me Principal Engineer at FirstFuel Software 10+ years in Software Engineering 5 years working with.
JEE Development. Rob Dawson Lead Developer blog: BSc UQ +MIT QUT over 10 years.
Introduction to the Java Stack Michael Youngstrom.
Ruby on Java Luc Castera
The Java Platform, The Java Language, JDK, IntelliJ
Introduction to Ruby&Rails Yuri Veremeyenko Monica Verma.
Six Degrees of Separation Saahil Peerbhoy Amortya Ray Aaron Fernandes Ritika Virmani Swapneel Sheth Josh Poritz.
Introduction to Model-View-Controller (MVC) Web Programming with TurboGears Leif Oppermann,
Unification and new developments of Geant4 (G)UI toolkits for educational applications New Geant4 Extensions Hajime Yoshida Shikoku University 2008 September.
1 Rails for the Ruby-Impaired John Paul Ashenfelter CTO/Transitionpoint.
Expertsfromindia for Joomla Development. Introduction Joomla is an open source and free content management system (CMS) for publishing content on the.
Presented By P.SRIVIDYA 085D1A0552 Programming Language.
Visual Mobile Applications with Netbeans 6.0 Your Name Sun Campus Ambassador Your Address.
Web Services with Netbeans 6.0 Your Name Sun Campus Ambassador Your Address.
Web Application Development with PHP in Netbeans 6.5 ● Angad Singh Campus Ambassador Tech Lead
Maximizing Ajax Development with NetBeans 6.5 Your Name Sun Campus Ambassador Your Address.
Visual Mobile Gaming Your Name Sun Campus Ambassador Your Address.
NetBeans & Ruby David Botterill Software Engineer Global Technology Manager - Campus Ambassador Program Sun Microsystems, Inc.
Scripting with Java FX Your Name Sun Campus Ambassador Your Address.
NetBeans & Ruby -Enhancements for Web 2.0 and beyond Your Name Sun Campus Ambassador Your Address.
Building a Twitter Analysis Tool, Using PHP, MySQL, Yahoo UI, and the Netbeans IDE Justin Bolter, Technology Evangelist Sun Microsystems.
GlassFish Workshop 1 Dynamic Languages in GlassFish Arun Gupta blogs.sun.com/arungupta.
Platform & Maven2 David Šimonek. Certified Engineer Course Agenda What is Maven? Why Maven? NB IDE & Maven NB Platform & Maven.
1 Charles Oliver Nutter Thomas Enebo Tor Norbye Martin Krauskopf JRuby: Understanding the Fuss Except where otherwise noted, the content of this presentation.
JRuby on Rails Presenter Name
JRuby on Rails Brian Leonard ブライアン レオナルド
Visual Web & AJAX with Netbeans 6.0 Your Name Sun Campus Ambassador Your Address.
Chapter 13 Web Application Infrastructure
Ruby Tooling in NetBeans
Netbeans 6.0 Your Name Sun Campus Ambassador Your Address.
SQL Server + PHP: What’s New
JRuby on Rails Charles Oliver Nutter JRuby Core Developer
Longtime Java developer More recent Ruby developer
Pal‐Store E‐commerce Website
Ruby, Rails, GUIs, and More
Windows Forms in Visual Studio 2005: An in-depth look at key features
Presentation transcript:

1 JRuby on Rails GAO ANG Sun Functional Campus Ambassador 1

2 JRuby on Rails Introduction to Ruby Agenda JRuby on Netbeans Where To Go What is JRuby

3 What is Ruby? Created/lead by Matz Open Source interpreted scripting language, like Perl, Python, Tcl, etc. Focused on being very object oriented, expressive, and bringing joy to programming.

4 Ruby calling Java require ‘java’ include_class “javax.swing.JFrame” include_class “javax.swing.JButton” frm = JFrame.new(“My frame”) btn = JButton.new(“My button”) frm.set_size(300, 300) frm.content_pane.add(btn) frm.show

5 Interactive ruby console: irb irb This powerful tool can be used for trying out single line commands while you are getting used to Ruby, or to run whole programs. DEMO

6 Ruby in a nutshell – RubyGems Ruby Gem: Examples: > gem list > gem install redcloth --version ">= 3.0.0" Using gems in your program: > require ‘rubygems’ > require ‘some_gem’ DEMO

7 What is Ruby on Rails Web Framework that makes MVC-oriented web apps easy through a template engine, ORM (ActiveRecord),test driven development. Much less complicated than J2EE solutions, but perhaps more so than PHP or Perl in cgi-bin. Similar Web Framework > Python (TurboGears, Django) > Perl (Maypole) > Groovy on Rails (Grails) > Ruby(Merb)

8 Java and Rails

9 Rails Architecture Rails applications are implemented using the Model-View-Controller (MVC) Model - ActiveRecord View - ActionView Controller - ActionController

10 Comparison of Rails and J2EE stacks Tomcat servlet container Struts Web application framework Hibernate persistence framework

11 Database Migration (Bookmarks) db/migrate/001_create_bookmarks.rb class CreateBookmarks < ActiveRecord::Migration def self.up create_table :bookmarks do |t| t.column :url, :string t.column :title, :string end def self.down drop_table :bookmarks end

12 Running the Migration Rake is the general purpose build tool for rails, much like make, or ant. It has many functions, one of which is to control migrations. > rake db:migrate Now the table has been created Migration in Netbeans

13 What is JRuby 100% Java impl of Ruby Ruby on the JVM Pure interpreted, native threaded Born 2001, product of many developers Largely Ruby 1.8-compatible Slower than Ruby...for now

14 Why JRuby on Rails Java is pervasive Java libraries are exhaustive Many still believe Java is the “everytool” Java webapp developers are unhappy Rails webapp developers are happy

15 Advantage of JRuby on Rails JRuby on Rails mostly works right now JRuby will not be “done” until it’s fully working ActiveRecord-JDBC opens many doors Java EE is actually fun with Rails More Rails is more Rails...JRuby enables!

16 JRuby on Netbeans

17 Netbeans 6.1 Depot Demo DEMO

Where to go for Ruby information Online material: > > > Rails screencast(s) > Planet Ruby on Rails

Netbeans 6 Resources Netbeans Product Site: > Download: previews, current & past releases of IDE, plugins > Learning: tutorials, technical articles, flash demos > Community: latest news, forums, events, mailing lists Netbeans Wiki: > Open-source documentation site for Netbeans. Planet Netbeans: > Aggregate for all Netbeans-related blogs Netbeans TV: > Connecting the diverse and worldwide community of People, Projects and Technologies surrounding NetBeans.

Stay In Touch Check blog regularly : > > > Join Java Open Source User Group > BJUG > BLUG You Can find lots of material on : >

21 Resources > Java 2 Platform, Standard Edition v1.4.1 > java, javac, jar, jre, etc. > Online documentation and tutorials > Docs & Support > Netbeans Tutorials & Training > Get the latest version of Netbeans > The Source for Sun Developer Solutions

22 Gao Ang Sun Functional Campus Ambassador THANK YOU 30