Agile Web Development with Ruby and Rails

Slides:



Advertisements
Similar presentations
Begin Java Pepper. Objectives What is a program? Learn the basics of your programming tool: BlueJ Write a first Java program and see it run Make some.
Advertisements

Ruby: An introduction - Who am I? Maciej Mensfeld Presented by: Maciej Mensfeld Ruby: An introduction dev.mensfeld.pl github.com/mensfeld.
Chapter 2: Your First Program! Hello World: Let’s Program  All programs must have the extension.java  Our first program will be named: HelloWorld.java.
Principles of Object-Oriented Software Development The language Java.
Ruby The Gem of new programming languages. An interpreted scripting language.
Week 1 basic Python programs, defining functions Special thanks to Scott Shawcroft, Ryan Tucker, and Paul Beck for their work on these slides. Except where.
Slide 1 of 40. Lecture A The Java Programming Language Invented 1995 by James Gosling at Sun Microsystems. Based on previous languages: C, C++, Objective-C,
Learning Ruby - 6 Regular Expressions. Ruby's Regex Technology Specifying what you are after using a terse, compact syntax Very useful when working with.
1. 2 Chapter 1 Introduction to Computers, Programs, and Java.
1 SD1042: Introduction to Software Development SD1042 Introduction to Software Development SCHOOL OF COMPUTING AND TECHNOLOGY Getting Started MODULE TEAM.
Unit 2: Java Introduction to Programming 2.1 Initial Example.
By: Taylor Helsper.  Introduction  Test Driven Development  JUnit  TDD Example  Conclusion.
Android Club Joe Richard. Welcome Rakhimov Gayrat – JOE Global Solutions (BI, CBU, MedApp) WIUT Sunet Technology (QMS, WM) Ice breaking.
Hello AP Computer Science!. What are some of the things that you have used computers for?
Java Lecture 16: Dolores Zage. WWW n Was a method for distributing passive information n added forms and image maps n interaction was only a new way to.
Introduction to Java Thanks to Dan Lunney (SHS). Java Basics File names The “main” method Output to screen Escape Sequence – Special Characters format()
Ruby. Who am I? 1- Bunlong Van 2- Sreyleap Lay, 3- Chhon Meily Blog:
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
Programming Concept Chapter I Introduction to Java Programming.
Output in Java Hello World!. Structure of a Java Program  All Java files in ICS3U1 have the following structure: class HelloWorld { }  Notice the open.
BUILDING JAVA PROGRAMS CHAPTER 1 ERRORS. 22 OBJECTIVES Recognize different errors that Java uses and how to fix them.
First Programs CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
CIT 383: Administrative ScriptingSlide #1 CIT 383: Administrative Scripting Introduction.
Pre-Sessional Java Programming Lecture 1a Reyer Zwiggelaar
Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation
Week 1 basic Python programs, defining functions Special thanks to Scott Shawcroft, Ryan Tucker, and Paul Beck for their work on these slides. Except where.
Hello Computer Science!. Below is an example of a Hello World program in JAVA. While it is only three lines of code, there are many things that are happening.
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
ITP 109 Week 2 Trina Gregory Introduction to Java.
Presented By P.SRIVIDYA 085D1A0552 Programming Language.
Introduction to Computer Science What is Computer Science? Getting Started Programming.
1 Charles Oliver Nutter Thomas Enebo Tor Norbye Martin Krauskopf JRuby: Understanding the Fuss Except where otherwise noted, the content of this presentation.
Netbeans: Beyond Java Silveira Neto Sun Campus Ambassador University of Ceará, Brazil.
JRuby on Rails Presenter Name
JRuby on Rails Brian Leonard ブライアン レオナルド
Java Methods and Applications CSIS 3701: Advanced Object Oriented Programming.
Introduction to programming in java
Introducing IBM Rational Software Architect
Computer Programming Your First Java Program: HelloWorld.java.
6 - Ruby in the Rough 7 - Ruby on Rails 03/03/2006 Taylan Yemliha
CS210 Intermediate Computing with Data Structures (Java)
Object-Oriented programming for Beginners LEAPS Computing 2015
The eclipse IDE IDE = “Integrated Development Environment”
Topic: Programming Languages and their Evolution + Intro to Scratch
NOCTI Study Guide #2.
Scope History of Ruby. Where can you use Ruby? General Features.
Learning about Programming Languages
Principles of Programming I (CIE 105)
Ruby Tooling in NetBeans
Ch 1. A Python Q&A Session Bernard Chen 2007.
basic Python programs, defining functions
CompSci 230 Software Construction
CMPE212 – Stuff… Assn 3 due and Quiz 2 in the lab next week.
First Programs CSE 1310 – Introduction to Computers and Programming
Getting Started ARCS Lab..
Java Intro III.1 (Fr Feb 23).
How to Run a Java Program
basic Python programs, defining functions
CS-0401 INTERMEDIATE PROGRAMMING USING JAVA
Programming Language Seminar
Units with – James tedder
How to Run a Java Program
Computer Programming 1 introduction to JAVA Lecture 1 Instructor: Ruba A. Salamah Islamic University of Gaza.
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
(Computer fundamental Lab)
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
IB Computer Science II Paul Bui
Winter 2019 CMPE212 5/25/2019 CMPE212 – Reminders
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Presentation transcript:

Agile Web Development with Ruby and Rails Prof. Paul Krause Lecture 1 Beyond Java

Objectives for today Why is Ruby on Rails interesting? Get NetBeans up and running on your machines Basic introduction to Ruby But more programming exercises next week Introduce Rails We will explore it in much more detail, starting in 2 weeks time

Beyond Java By Bruce A. Tate Publisher O’Reilly September 2005  ISBN 10: 0-596-10094-9

Is Ruby on Rails really that special? From Obie Fernandez’ introduction to The Rails Way: “That first Rails experience, over the course of a few weeks in February 2005, was life-altering” “All the best practices I had learned over the years about building web apps had been distilled into a single framework, ...” “My interest in Java died a sudden death.”

Opinionated Software? Convention over configuration Elegance is not optional Do Not Repeat Yourself Developer motivation and productivity are primary factors in project success

Key Features of Ruby Easy syntax (once you get to know it) Fully OO Highly dynamic Strong Web frameworks Ruby on Rails

http://www.netbeans.org/

Let’s Try it! Open NetBeans Open the Ruby shell Window/Other/Ruby Shell (IRB)

“Hello World” in Java class HelloWorld { public static void main(String[ ] args) { System.out.println(“Hello World!”) }

and in Ruby: puts “Hello World!”

Even Better Enter: 3.times {puts “Hello World!”}

Ruby’s Objects Enter: 4 (return) Enter: 4.567.round Find out the class of something you have entered...

Ruby is Dynamically Typed Enter: n=1 Enter: n.class Enter: n=”fishpaste” How about: n+4; n.size; n.methods

Regular Expressions Regular expressions are written between slashes Enter: regex = /better/ Find out what class it is. Enter: “Mine is bigger” =~ regex Enter: “Mine is better” =~ regex

Containers Enter: stack = [1, 2, 3] Enter: stack.push “cat” Enter: stack.pop Enter: stack

That’s very nice, but Ruby was released by its designer Yukihiro Matsumoto in 1995 Why is it only now, that it is generating so much interest? Let’s explore Rails...

http://www.netbeans.org/kb/docs/ruby/quickstart