Ruby on Rails TKK, Otto Hilska

Size: px
Start display at page:

Download "Ruby on Rails TKK, Otto Hilska"

Transcription

1 Ruby on Rails TKK, Otto Hilska 1

2 Today s agenda 1. The Ruby programming language 2. Ruby on Rails framework 3. An example project 2

3 About me Started Nodeta Oy in employees always recruiting focus on Ruby on Rails web development Ruby on Rails since 2005 Working on a global Rails project since

4 Ruby is... dynamic interpreted object-oriented productive, enjoyable not very fast 4

5 Ruby s history Yukihiro Matz Matsumoto started the project around 1995 Most developers were Japanese... and so were the mailing lists. 5

6 Ruby today Huge hype around Ruby on Rails open-sourced in July 2004 Enterprises have adopted Ruby Several Ruby implementations JRuby 6

7 Motivation Productive Fun Ruby on Rails 7

8 IDEs RubyMine Aptana RadRails Netbeans 8

9 Text editors 9

10 Some examples you can try these at 10

11 % irb >> a = 3 => 3 >> puts a => nil 11

12 >> 1337 ** 3 =>

13 >> 1337.class => Fixnum >> (1337 ** 3).class => Bignum 13

14 >> 3.times { puts "hello world" } hello world hello world hello world => 3 14

15 def fib(n) return 0 if n == 0 return 1 if n == 1 fib(n-1) + fib(n-2) end function declaration explicit return comparison reverse-if implicit return function call puts fib(15) 15

16 a = [ otto, veikko, mauno, juhani, veikko ] puts a.sort.uniq.join(, ) juhani, mauno, otto, veikko 16

17 Naming conventions Variables: age, total_length Constants: MAXIMUM_LENGTH Classes and modules: WebServer, ApplicationController Methods: age, age=, is_alive?, kill! 17

18 Other conventions 2 space indents File names: class ApplicationController lives in application_controller.rb 18

19 Common types Fixint and Bigint: 5, Float: 3.14 String: hello world Symbol: :utc Array: [1, 2, 3, text, 4.0], %w(array of strings) Hash: { :name => Otto, : => mutru@mutru.fi }, my_hash[:name] = Otto Range:

20 20

21 Type conversions a = => 5 b = a * 3 => aaa a + b TypeError: String can't be coerced into Fixnum a.to_s + b => 5aaa 21

22 Type conversions 4.to_f => to_s => 5 6.to_i => 6 6.to_f => 6.0 utc.to_sym => :utc :utc.to_s => utc 123 apples.to_i => 123 one beer.to_i => 0 22

23 Error handling begin require rubygems rescue LoadError => ex raise Please install Ruby gems end 23

24 Object-oriented programming (OOP) 24

25 Everything is an object Hello world.length 10.times { puts hello world } 10.class 10.class.class 25

26 class Apple < Fruit Writing a class attr_accessor :color def eat puts A #{color} apple was eaten. end end a = Apple.new a.color = green a.eat 26

27 Duck typing If it walks like a duck and quacks like a duck, I would call it a duck. 27

28 Duck typing in real life def eat_something(object) if object.respond_to?(:eat) object.eat else send(:eat) puts Don t know how to eat this. end end 28

29 Closures arr.sort { a, b a.name <=> b.name } arr.sort_by(&:name) 29

30 Closures arr = (1..10).to_a => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] arr.find_all { a a % 2 == 0 } => [2, 4, 6, 8, 10] 30

31 Yield def benchmark start_time = Time.now yield time_diff = Time.now - start_time puts Took #{time_diff} seconds end benchmark { fib(30) } 31

32 Metaprogramming 32

33 method_missing class MyFinder def method_missing(method_name) puts I m finding #{method_name} for you! end end m = MyFinder.new m.oranges 33

34 What if... A database query could be written as: User.find_by_name( Otto Hilska ) That s exactly how it works in Rails. 34

35 Too exciting! Let s have a short break. 35

36 Ruby on Rails 36

37 Background Open-sourced in 2004 Written by David Heinemeier Hansson Extracted from the Basecamp project management software 37

38 Motivation You can probably write your project in 15 minutes if you know what you re doing. you probably don t Case: tickets.assembly.org 38

39 Disclaimer 3 hours is not enough Focus on the big picture

40 Design principles Don t Repeat Yourself Convention over Configuration 40

41 HTTP Browsers send stateless requests Servers may store session information (state) 41

42 MVC Model stores and processes data contains the re-usable logic View renders data HTML, JavaScript, XML,... Controller processes HTTP requests has the request information and session information available uses models to do the business logic decides which views to render is supposed to be thin 42

43 Starting a Rails project: % rails myproject 43

44 Directory structure app controllers helpers models views layouts db migrate schema.rb tmp config database.yml environment* initializers routes.rb lib log public script test vendor 44

45 Today s example project Mutter my own Twitter clone because 140 chars is too much 45

46 Now some coding... 46

47 Summary DRY CoC Did you see any XML? 47

48 Deployment Many bad alternatives One good: 48

49 Further reading REST clients: rest-client and ActiveResource

CS 5142 Scripting Languages

CS 5142 Scripting Languages CS 5142 Scripting Languages 10/25/2012 Ruby 1 Outline Ruby Martin Hirzel 2 About Ruby Invented 1995 by Yokihiro Matz Matsumoto Influenced by SmallTalk Everything is an object (even e.g., integers) Blocks

More information

Ruby on Rails. SITC Workshop Series American University of Nigeria FALL 2017

Ruby on Rails. SITC Workshop Series American University of Nigeria FALL 2017 Ruby on Rails SITC Workshop Series American University of Nigeria FALL 2017 1 Evolution of Web Web 1.x Web 1.0: user interaction == server roundtrip Other than filling out form fields Every user interaction

More information

Contents in Detail. Foreword by Xavier Noria

Contents in Detail. Foreword by Xavier Noria Contents in Detail Foreword by Xavier Noria Acknowledgments xv xvii Introduction xix Who This Book Is For................................................ xx Overview...xx Installation.... xxi Ruby, Rails,

More information

Lecture 4. Ruby on Rails 1 / 49

Lecture 4. Ruby on Rails 1 / 49 Lecture 4 Ruby on Rails 1 / 49 Client-Server Model 2 / 49 What is it? A client (e.g. web browser, phone, computer, etc.) sends a request to a server Request is an HTTP request Stands for HyperText Transfer

More information

Lecture 4. Ruby on Rails 1 / 52

Lecture 4. Ruby on Rails 1 / 52 Lecture 4 Ruby on Rails 1 / 52 Homeworks 2 & 3 Grades were released for homework 2 Homework 3 was due last night Everyone got a style freebie since my default setup ignores spec files and I didn't change

More information

Introduction and first application. Luigi De Russis. Rails 101

Introduction and first application. Luigi De Russis. Rails 101 Introduction and first application Luigi De Russis 2 About Rails Ruby on Rails 3 Framework for making dynamic web applications created in 2003 Open Source (MIT License) for the Ruby programming language

More information

CSE341: Programming Languages Lecture 19 Introduction to Ruby and OOP. Dan Grossman Winter 2013

CSE341: Programming Languages Lecture 19 Introduction to Ruby and OOP. Dan Grossman Winter 2013 CSE341: Programming Languages Lecture 19 Introduction to Ruby and OOP Dan Grossman Winter 2013 Ruby logistics Next two sections use the Ruby language http://www.ruby-lang.org/ Installation / basic usage

More information

Introduction to Ruby on Rails

Introduction to Ruby on Rails Introduction to Ruby on Rails Keven Richly keven.richly@hpi.de Software Engineering II WS 2017/18 Prof. Plattner, Dr. Uflacker Enterprise Platform and Integration Concepts group Introduction to Ruby on

More information

Introduction to Ruby on Rails

Introduction to Ruby on Rails Introduction to Ruby on Rails Software Engineering II WS 2016/17 Arian Treffer arian.treffer@hpi.de Prof. Plattner, Dr. Uflacker Enterprise Platform and Integration Concepts group Introduction to Ruby

More information

Ruby logistics. CSE341: Programming Languages Lecture 19 Introduction to Ruby and OOP. Ruby: Not our focus. Ruby: Our focus. A note on the homework

Ruby logistics. CSE341: Programming Languages Lecture 19 Introduction to Ruby and OOP. Ruby: Not our focus. Ruby: Our focus. A note on the homework Ruby logistics CSE341: Programming Languages Lecture 19 Introduction to Ruby and OOP Dan Grossman Autumn 2018 Next two sections use the Ruby language http://www.ruby-lang.org/ Installation / basic usage

More information

Are you using Ruby on Rails?

Are you using Ruby on Rails? Are you using Ruby on Rails? Should you? Come have a seat, and we ll figure it out Learn how to create happy programmers, and 10 real world benefits to using Rails Talk begins at 5 PM Warning Warning I

More information

Ruby. Mooly Sagiv. Most slides taken from Dan Grossman

Ruby. Mooly Sagiv. Most slides taken from Dan Grossman Ruby Mooly Sagiv Most slides taken from Dan Grossman Ruby dynamic, reflective, object-oriented, general-purpose programming language Designed and developed in the mid-1990s by Yukihiro "Matz" Matsumoto

More information

iflame INSTITUTE OF TECHNOLOGY

iflame INSTITUTE OF TECHNOLOGY Web Development Ruby On Rails Duration: 3.5 Month Course Overview Ruby On Rails 4.0 Training From Iflame Allows You To Build Full Featured, High Quality, Object Oriented Web Apps. Ruby On Rails Is A Full

More information

Ruby on Rails Welcome. Using the exercise files

Ruby on Rails Welcome. Using the exercise files Ruby on Rails Welcome Welcome to Ruby on Rails Essential Training. In this course, we're going to learn the popular open source web development framework. We will walk through each part of the framework,

More information

Introduction to Ruby on Rails

Introduction to Ruby on Rails Introduction to Ruby on Rails Ralf Teusner ralf.teusner@hpi.de Software Engineering II WS 2018/19 Prof. Plattner, Dr. Uflacker Enterprise Platform and Integration Concepts group Introduction to Ruby on

More information

Your First Ruby Script

Your First Ruby Script Learn Ruby in 50 pages Your First Ruby Script Step-By-Step Martin Miliauskas @mmiliauskas 1 Your First Ruby Script, Step-By-Step By Martin Miliauskas Published in 2013 by Martin Miliauskas On the web:

More information

Software Engineering 2 (SWT2) Chapter 2: Introduction into Ruby on Rails

Software Engineering 2 (SWT2) Chapter 2: Introduction into Ruby on Rails Software Engineering 2 (SWT2) Chapter 2: Introduction into Ruby on Rails Agenda 2 Ruby & Ruby on Rails What is Ruby on Rails? A few words about Ruby Core components RESTful architecture Active Record Your

More information

CSCI-2320 Web Programming: Ruby on Rails

CSCI-2320 Web Programming: Ruby on Rails CSCI-2320 Web Programming: Ruby on Rails Mohammad T. Irfan Plan u Model-View-Controller (MVC) framework of web programming u Ruby on Rails 1 Ruby on Rails u Developed by David Hansson released 2004 u MVC

More information

Courslets, a golf improvement web service. Peter Battaglia

Courslets, a golf improvement web service. Peter Battaglia Courslets, a golf improvement web service Peter Battaglia Discussion Project Overview Design and Technologies Utilized Rails and REST URLs, URLs, URLs Rails and Web Services What s s exposed as a service?

More information

CSE 341, Autumn 2015, Ruby Introduction Summary

CSE 341, Autumn 2015, Ruby Introduction Summary CSE 341, Autumn 2015, Ruby Introduction Summary Disclaimer: This lecture summary is not necessarily a complete substitute for atting class, reading the associated code, etc. It is designed to be a useful

More information

INDEX. Symbols & Numbers

INDEX. Symbols & Numbers INDEX Symbols & Numbers & (ampersand), 166, 167 && (and operator), 85, 93 * (asterisk), 251 252, 260 *?, 260 @ (at sign), 23, 100 @@ (class variables), 23, 100 \ (line continuation character), 297 \B,

More information

Strategies for Rapid Web Prototyping. Ruby on Rails. Clemens H. Cap

Strategies for Rapid Web Prototyping. Ruby on Rails. Clemens H. Cap Strategies for Rapid Web Prototyping Ruby on Rails Strategies for Rapid Web Prototyping DRY: Don't repeat yourself Convention over Configuration Separation of Concern Templating MVC: Model View Controler

More information

Why Rails and Design for an Applica5on

Why Rails and Design for an Applica5on Why Rails and Design for an Applica5on CITS3403 Agile Web Development Reference: Ruby et al, Chapter 5 First there was Ruby... Ruby is the interpreted scripting language for quick and easy objectoriented

More information

15.1 Origins and Uses of Ruby

15.1 Origins and Uses of Ruby 15.1 Origins and Uses of Ruby - Designed by Yukihiro Matsumoto; released in 1996 - Use spread rapidly in Japan - Use is now growing in part because of its use in Rails - A pure object-oriented purely interpreted

More information

Boldface numbers indicate illustrations, code listings, and tables.

Boldface numbers indicate illustrations, code listings, and tables. Index Boldface numbers indicate illustrations, code listings, and tables. A ActiveRecord, class in Ruby, 80-82, 84, 86, 88, 90 ActiveXMLService, class in Ruby, 80-82, 84, 90 Agile development, 109-110

More information

Web Application Expectations

Web Application Expectations Effective Ruby on Rails Development Using CodeGear s Ruby IDE Shelby Sanders Principal Engineer CodeGear Copyright 2007 CodeGear. All Rights Reserved. 2007/6/14 Web Application Expectations Dynamic Static

More information

What is Ruby? CSc 372. Comparative Programming Languages. 27 : Ruby Introduction. Department of Computer Science University of Arizona

What is Ruby? CSc 372. Comparative Programming Languages. 27 : Ruby Introduction. Department of Computer Science University of Arizona What is Ruby? CSc 372 Comparative Programming Languages 27 : Ruby Introduction Department of Computer Science University of Arizona Everything is an object. Everything can be changed: method can be added

More information

Overview of the Ruby Language. By Ron Haley

Overview of the Ruby Language. By Ron Haley Overview of the Ruby Language By Ron Haley Outline Ruby About Ruby Installation Basics Ruby Conventions Arrays and Hashes Symbols Control Structures Regular Expressions Class vs. Module Blocks, Procs,

More information

Introduction CMSC 330: Organization of Programming Languages. Books on Ruby. Applications of Scripting Languages

Introduction CMSC 330: Organization of Programming Languages. Books on Ruby. Applications of Scripting Languages Introduction CMSC 330: Organization of Programming Languages Ruby is an object-oriented, imperative scripting language I wanted a scripting language that was more powerful than Perl, and more object-oriented

More information

Ruby Topic Maps. Introduction to Ruby. Benjamin Bock.

Ruby Topic Maps. Introduction to Ruby. Benjamin Bock. Ruby Topic Maps http://rtm.rubyforge.org Introduction to Ruby Benjamin Bock 1 Calculator irb(main):001:0> 1+2 Type irb in your Terminal / Command / Shell window to start the interactive Ruby interpreter

More information

INTRODUCTION TO RUBY PETER COOPER

INTRODUCTION TO RUBY PETER COOPER INTRODUCTION TO RUBY PETER COOPER If you get bored... www.petercooper.co.uk www.rubyinside.com www.ruby-lang.org THE ANECDOTE THE DOWNSIDES THE LANGUAGE THE COMMUNITY THE LIBRARIES THE APPLICATIONS THE

More information

Ruby Gem Internals by Examples

Ruby Gem Internals by Examples SF Software Design in Ruby Meetup Group Ruby Gem Internals by Examples Ben Zhang, 1/14/2014 benzhangpro@gmail.com http://www.meetup.com/software-design-in-ruby-study-group/ Types of Ruby Gem Features Global

More information

CHORDS: Cloud-Hosted Real-time Data

CHORDS: Cloud-Hosted Real-time Data CHORDS: Cloud-Hosted Real-time Data Services for the Geosciences Mike Daniels (NCAR), Branko Kerkez (UMich), V. Chandrasekar (CSU), Sara Graves (UAH), D. Sarah Stamps (VT), Aaron Botnick (NCAR), Charlie

More information

Ruby, with foxes. Ruby, cont d. Warning. why's (poignant) Guide to Ruby

Ruby, with foxes. Ruby, cont d. Warning. why's (poignant) Guide to Ruby O Ruby, cont d n O Ruby, with foxes n why's (poignant) Guide to Ruby Ruby explained through humorous and more or less irrelevant stories about foxes, elfs, cats and others Warning If I was put off Ruby

More information

Day 2: 19/April/2012 Installing Aptana IDE; Integrated Development Environment And Rails

Day 2: 19/April/2012 Installing Aptana IDE; Integrated Development Environment And Rails Day 2: 19/April/2012 Installing Aptana IDE; Integrated Development Environment And Rails p Setting Up Aptana IDE n IDE; Integrated Development Environment n Set Up Japanese Language Support n Run rails

More information

CS169.1x Lecture 6: Basic Rails" Fall 2012"

CS169.1x Lecture 6: Basic Rails Fall 2012 CS169.1x Lecture 6: Basic Rails" Fall 2012" 1" The Database is Golden Contains valuable customer data don t want to test your app on that! Rails solution: development, production and test environments

More information

Alleviate the Apprehension of Coding in Ruby

Alleviate the Apprehension of Coding in Ruby Alleviate the Apprehension of Coding in Ruby Chris Lasell Apple Peeler Pixar Animation Studios Install session materials Includes some example code & libraries ruby-jss and ruby gem dependencies into /Library/Ruby/Gems

More information

Adding Static Typing to Ruby

Adding Static Typing to Ruby Adding Static Typing to Ruby Jeff Foster University of Maryland, College Park Joint work with Mike Furr, David An, and Mike Hicks Introduction Scripting languages are extremely popular Lang Rating Lang

More information

MRI Internals. Koichi Sasada.

MRI Internals. Koichi Sasada. MRI Internals Koichi Sasada ko1@heroku.com MRI Internals towards Ruby 3 Koichi Sasada ko1@heroku.com Today s talk Koichi is working on improving Ruby internals Introduce my ideas toward Ruby 3 Koichi Sasada

More information

JRuby and Ioke. On Google AppEngine. Ola Bini

JRuby and Ioke. On Google AppEngine. Ola Bini JRuby and Ioke On Google AppEngine Ola Bini ola.bini@gmail.com http://olabini.com/blog Vanity slide ThoughtWorks consultant/developer/programming language geek JRuby Core Developer From Stockholm, Sweden

More information

Teaching Ruby on Rails Dr Bruce Scharlau Computing Science Department University of Aberdeen Aberdeen, AB24 3UE

Teaching Ruby on Rails Dr Bruce Scharlau Computing Science Department University of Aberdeen Aberdeen, AB24 3UE Teaching Ruby on Rails Dr Bruce Scharlau Computing Science Department University of Aberdeen Aberdeen, AB24 3UE scharlau@csd.abdn.ac.uk Abstract This paper considers the teaching of the object oriented

More information

A Closer Look at XPages in IBM Lotus Domino Designer 8.5 Ray Chan Advisory I/T Specialist Lotus, IBM Software Group

A Closer Look at XPages in IBM Lotus Domino Designer 8.5 Ray Chan Advisory I/T Specialist Lotus, IBM Software Group A Closer Look at XPages in IBM Lotus Domino Designer 8.5 Ray Chan Advisory I/T Specialist Lotus, IBM Software Group 2008 IBM Corporation Agenda XPage overview From palette to properties: Controls, Ajax

More information

Rails: Views and Controllers

Rails: Views and Controllers Rails: Views and Controllers Computer Science and Engineering College of Engineering The Ohio State University Lecture 18 Recall: Rails Architecture Wiring Views and Controllers A controller is just an

More information

Lean & Mean Tokyo Cabinet Recipes. Ilya

Lean & Mean Tokyo Cabinet Recipes. Ilya Ilya Grigorik @igrigorik postrank.com/topic/ruby The slides Twitter My blog Mikio Hirabayashi Yukihiro Matsumoto Mikio Hirabayashi Yukihiro Matsumoto??? 1. Hashtable Berkeley DB, DBM, QDB, TDB 2. B-Tree

More information

Installation Download and installation instructions can be found at

Installation Download and installation instructions can be found at IntroductiontoRuby Ruby (http://www.ruby-lang.org/en/ ) is a reflective, dynamic, objectoriented, single-pass interpreted programming language. It also has some functional programming features such as

More information

Convention over Configuration

Convention over Configuration Convention over Configuration The Universal Remote: Powerful, but requires too much configuring Intent Design a framework so that it enforces standard naming conventions for mapping classes to resources

More information

عناوین تاریخچه ویژگیها 6 جزءاصلی کاربردها 2 از 34

عناوین تاریخچه ویژگیها 6 جزءاصلی کاربردها 2 از 34 1 از 34 عناوین تاریخچه ویژگیها 6 جزءاصلی کاربردها 2 از 34 Dynamic, object-oriented, general purpose دهه 90 میالدی Yukihiro Matsumoto (Matz) 3 از 34 نسخه فعلی 2.5.1 مفسری مکروبی جیروبی روبینوس هاتروبی آیرنروبی

More information

RESPONSIVE WEB DESIGN IN 24 HOURS, SAMS TEACH YOURSELF BY JENNIFER KYRNIN

RESPONSIVE WEB DESIGN IN 24 HOURS, SAMS TEACH YOURSELF BY JENNIFER KYRNIN RESPONSIVE WEB DESIGN IN 24 HOURS, SAMS TEACH YOURSELF BY JENNIFER KYRNIN DOWNLOAD EBOOK : RESPONSIVE WEB DESIGN IN 24 HOURS, SAMS TEACH Click link bellow and free register to download ebook: RESPONSIVE

More information

Pete Forde Partner, Unspace Interactive Toronto, ON

Pete Forde Partner, Unspace Interactive Toronto, ON Building Rich JavaScript Database Applications with Jester QuickTime and a TIFF (Uncompressed) decompressor are needed to see this picture. Pete Forde Partner, Unspace Interactive Toronto, ON http://unspace.ca/

More information

Web System Development by Ruby on Rails. Day 3(4/Oct/2012) First Project Internationalization

Web System Development by Ruby on Rails. Day 3(4/Oct/2012) First Project Internationalization Web System Development by Ruby on Rails Day 3(4/Oct/2012) First Project Internationalization Today s Goal (Continued) Run Rails 3 on CentOS, and generate the first project. Generate the bi-lingual screen

More information

Rails Engines. Use Case. The Implementation

Rails Engines. Use Case. The Implementation Rails Engines Rails engines range from simple plugins to powerful micro-applications. The discussions we ve had so far about Railties are closely related to the function of a Rails engine. One interesting

More information

Ruby. A Very Brief Introduction. Andreas Klappenecker

Ruby. A Very Brief Introduction. Andreas Klappenecker Ruby A Very Brief Introduction Andreas Klappenecker Ruby Ruby is a very popular open source interpreted programming language. Ruby combines object-oriented programming with concepts from functional programming

More information

Web System Development by Ruby on Rails. Day 1(20/Sept/2012) Guidance Installation of Ruby, Gems, Rails, and Aptana

Web System Development by Ruby on Rails. Day 1(20/Sept/2012) Guidance Installation of Ruby, Gems, Rails, and Aptana Web System Development by Ruby on Rails Day 1(20/Sept/2012) Guidance Installation of Ruby, Gems, Rails, and Aptana Web System and DB p WEB Nest of Spider? n Nobody uses and spider has made nest on DB?

More information

Ruby on Rails 3 March 14th, 2011 Ken Li Allison Pon Kyra Leimert Matt Delaney Edward Bassett

Ruby on Rails 3 March 14th, 2011 Ken Li Allison Pon Kyra Leimert Matt Delaney Edward Bassett CMPUT 410 Ruby on Rails 3 March 14th, 2011 Ken Li Allison Pon Kyra Leimert Matt Delaney Edward Bassett Introduction - What is Ruby on Rails? Ruby on Rails is an open source web application development

More information

Lecture 1. Basic Ruby 1 / 61

Lecture 1. Basic Ruby 1 / 61 Lecture 1 Basic Ruby 1 / 61 What does this do? 3.times do print 'Hello, world!' end 2 / 61 Why Ruby? Optimized for programmer happiness Used for Ruby on Rails Very popular web framework 3 / 61 Course Policies

More information

Groovy & Grails Scripting for Modern Web Applications. Rohit Nayak Talentica Software

Groovy & Grails Scripting for Modern Web Applications. Rohit Nayak Talentica Software Groovy & Grails Scripting for Modern Web Applications Rohit Nayak Talentica Software Agenda Demo: Quick intro to Grails Scripting, Web Applications and Grails/Groovy REST service in Grails Demo Internals

More information

Agile Web Development With Rails (4th Edition - Rails 3 & Ruby 1.9) By Sam Ruby

Agile Web Development With Rails (4th Edition - Rails 3 & Ruby 1.9) By Sam Ruby Agile Web Development With Rails (4th Edition - Rails 3 & Ruby 1.9) By Sam Ruby Agile Web Development with Rails 4 PDF Free Download, Both Rails 3 and 4, as well as Ruby 1.9 and 2.0, Agile Web Development

More information

DOWNLOAD : THE RUBY PROGRAMMING LANGUAGE

DOWNLOAD : THE RUBY PROGRAMMING LANGUAGE DOWNLOAD : THE RUBY PROGRAMMING LANGUAGE RUBY - OFFICIAL SITE ruby is... a dynamic, open source programming language with a focus on simplicity and productivity. it has an elegant syntax that is natural

More information

Basics of Web. First published on 3 July 2012 This is the 7 h Revised edition

Basics of Web. First published on 3 July 2012 This is the 7 h Revised edition First published on 3 July 2012 This is the 7 h Revised edition Updated on: 03 August 2015 DISCLAIMER The data in the tutorials is supposed to be one for reference. We have made sure that maximum errors

More information

Combining Static and Dynamic Typing in Ruby: Two Approaches. Jeff Foster University of Maryland, College Park

Combining Static and Dynamic Typing in Ruby: Two Approaches. Jeff Foster University of Maryland, College Park Combining Static and Dynamic Typing in Ruby: Two Approaches Jeff Foster University of Maryland, College Park Introduction Scripting languages are extremely popular Lang Rating Lang Rating 1 C 17% 8 *Python

More information

Casabac Unicode Support

Casabac Unicode Support Unicode Support Unicode Support Full Unicode support was added into the GUI Server with build 25_20040105. Before ISO 8859-1 was used for encoding and decoding HTML pages and your system's default encoding

More information

RubyConf China. Why Ruby? Yukihiro "Matz" Matsumoto. Copyright (c) 2008 Yukihiro "Matz" Matsumoto, No rights reserved

RubyConf China. Why Ruby? Yukihiro Matz Matsumoto. Copyright (c) 2008 Yukihiro Matz Matsumoto, No rights reserved RubyConf China Why Ruby? Yukihiro "Matz" Matsumoto matz@ruby-lang.org Copyright (c) 2008 Yukihiro "Matz" Matsumoto, No rights reserved thou Moore s Law The number of Transistors in LSI Doubles Every 18

More information

Ruby: Introduction, Basics

Ruby: Introduction, Basics Ruby: Introduction, Basics Computer Science and Engineering College of Engineering The Ohio State University Lecture 4 Ruby vs Java: Similarities Imperative and object-oriented Classes and instances (ie

More information

DRYing Out MVC (ESaaS 5.1)"

DRYing Out MVC (ESaaS 5.1) DRYing Out MVC (ESaaS 5.1)" Armando Fox" 2013 Armando Fox & David Patterson, all rights reserved Don t Repeat Yourself but how?" Goal: enforce that movie names must be less than 40 characters" Call a check

More information

Application Design and Development: October 30

Application Design and Development: October 30 M149: Database Systems Winter 2018 Lecturer: Panagiotis Liakos Application Design and Development: October 30 1 Applications Programs and User Interfaces very few people use a query language to interact

More information

Ruby AN OVERVIEW. Luigi De Russis Dipartimento di Automatica e Informatica Politecnico di Torino

Ruby AN OVERVIEW. Luigi De Russis Dipartimento di Automatica e Informatica Politecnico di Torino Ruby AN OVERVIEW Luigi De Russis Dipartimento di Automatica e Informatica Politecnico di Torino luigi.derussis@polito.it What is Ruby? Ruby is a dynamic, open source programming language with a focus on

More information

Active Model Basics. December 29, 2014

Active Model Basics. December 29, 2014 Active Model Basics December 29, 2014 This guide should provide you with all you need to get started using model classes. Active Model allows for Action Pack helpers to interact with plain Ruby objects.

More information

All India Council For Research & Training

All India Council For Research & Training WEB DEVELOPMENT & DESIGNING Are you looking for a master program in web that covers everything related to web? Then yes! You have landed up on the right page. Web Master Course is an advanced web designing,

More information

Validations vs. Filters

Validations vs. Filters Validations vs. Filters Advice (DRYness) Validation Filter Check invariants on model Check conditions for allowing controller action to run Pointcut AR model lifecycle hooks Before and/or after any public

More information

Recommendations for Web Development and Deployment Using Team Developer

Recommendations for Web Development and Deployment Using Team Developer Recommendations for Web Development and Deployment Using Team Developer By Kumuthini Ragavan Senior Technical Consultant Gupta Technologies, LLC 975 Island Drive Redwood Shores, CA 94065 USA Phone +1-650-596-3400

More information

WKA Studio for Beginners

WKA Studio for Beginners WKA Studio for Beginners The first and foremost, the WKA Studio app and its development are fundamentally different from conventional apps work and their developments using higher level programming languages

More information

JavaScript: the Big Picture

JavaScript: the Big Picture JavaScript had to look like Java only less so be Java's dumb kid brother or boy-hostage sidekick. Plus, I had to be done in ten days or something worse than JavaScript would have happened.! JavaScript:

More information

Rails: MVC in action

Rails: MVC in action Ruby on Rails Basic Facts 1. Rails is a web application framework built upon, and written in, the Ruby programming language. 2. Open source 3. Easy to learn; difficult to master. 4. Fun (and a time-saver)!

More information

Enterprise Software Architecture & Design

Enterprise Software Architecture & Design Enterprise Software Architecture & Design Characteristics Servers application server, web server, proxy servers etc. Clients heterogeneous users, business partners (B2B) scale large number of clients distributed

More information

What is Scripting? CSCI: 4500/6500 Programming Languages. Higher-level Programming. Origin of Scripting Languages. Contemporary Scripting Languages

What is Scripting? CSCI: 4500/6500 Programming Languages. Higher-level Programming. Origin of Scripting Languages. Contemporary Scripting Languages What is Scripting? CSCI: 4500/6500 Programming Languages! Yes! The name comes from written script such as screenplay, where dialog is repeated verbatim for every performance Scripting Languages Chapter

More information

Motivations. Luigi De Russis. Why Ruby (on Rails)?

Motivations. Luigi De Russis. Why Ruby (on Rails)? Motivations Luigi De Russis 2 Disclaimer YES course-specific value open mind NO general value extremism 3 4 Course requirements Goal and context 5 Goal design and implement a Social Network site 6 credits

More information

COM401 Software Engineering Laboratory

COM401 Software Engineering Laboratory Computer Engineering Department COM401 Software Engineering Laboratory November 04, 2014 LAB-3: Rails Introduction Time: 2 lab hours Objectives: Practice with Ruby Symbols Routes MVC pattern CRUD operations

More information

BUILD YOUR OWN RUBY ON RAILS WEB APPLICATIONS BY PATRICK LENZ DOWNLOAD EBOOK : BUILD YOUR OWN RUBY ON RAILS WEB APPLICATIONS BY PATRICK LENZ PDF

BUILD YOUR OWN RUBY ON RAILS WEB APPLICATIONS BY PATRICK LENZ DOWNLOAD EBOOK : BUILD YOUR OWN RUBY ON RAILS WEB APPLICATIONS BY PATRICK LENZ PDF BUILD YOUR OWN RUBY ON RAILS WEB APPLICATIONS BY PATRICK LENZ DOWNLOAD EBOOK : BUILD YOUR OWN RUBY ON RAILS WEB APPLICATIONS Click link bellow and free register to download ebook: BUILD YOUR OWN RUBY ON

More information

Ruby: Introduction, Basics

Ruby: Introduction, Basics Ruby: Introduction, Basics Computer Science and Engineering College of Engineering The Ohio State University Lecture 4 Ruby vs Java: Similarities Imperative and object-oriented Classes and instances (ie

More information

Attacks Against Websites 3 The OWASP Top 10. Tom Chothia Computer Security, Lecture 14

Attacks Against Websites 3 The OWASP Top 10. Tom Chothia Computer Security, Lecture 14 Attacks Against Websites 3 The OWASP Top 10 Tom Chothia Computer Security, Lecture 14 OWASP top 10. The Open Web Application Security Project Open public effort to improve web security: Many useful documents.

More information

web frameworks design comparison draft - please help me improve it focus on Model-View-Controller frameworks

web frameworks design comparison draft - please help me improve it focus on Model-View-Controller frameworks web frameworks design comparison draft - please help me improve it focus on Model-View-Controller frameworks Controllers In Rails class MyTestController < ApplicationController def index render_text Hello

More information

At the Forge. What Is Ruby? Getting Started with Ruby. Reuven M. Lerner. Abstract

At the Forge. What Is Ruby? Getting Started with Ruby. Reuven M. Lerner. Abstract 1 of 6 6/18/2006 8:38 PM At the Forge Getting Started with Ruby Reuven M. Lerner Abstract What's behind all the Ruby hype? Reuven walks us through a couple of examples to let the code speak for itself.

More information

Progress report of "Ruby 3 Concurrency"

Progress report of Ruby 3 Concurrency Progress report of "Ruby 3 Concurrency" Cookpad Inc. Koichi Sasada Ruby X Elixir Conf Taiwan 2018 (2018/04/28) Today s topic Difficulty of Thread programming New concurrent abstraction

More information

Web Presentation Patterns (controller) SWEN-343 From Fowler, Patterns of Enterprise Application Architecture

Web Presentation Patterns (controller) SWEN-343 From Fowler, Patterns of Enterprise Application Architecture Web Presentation Patterns (controller) SWEN-343 From Fowler, Patterns of Enterprise Application Architecture Objectives Look at common patterns for designing Web-based presentation layer behavior Model-View-Control

More information

Keeping Rails on the Tracks

Keeping Rails on the Tracks Keeping Rails on the Tracks Mikel Lindsaar @raasdnil lindsaar.net Working in Rails & Ruby for 5+ Years http://lindsaar.net/ http://stillalive.com/ http://rubyx.com/ On the Rails? What do I mean by on the

More information

JRuby: What, Why, How...Do it Now!

JRuby: What, Why, How...Do it Now! JRuby: What, Why, How...Do it Now! Thomas E Enebo, JRuby Core Developer Charles Oliver Nutter, JRuby Core Developer TS-5416 Learn how awesome JRuby is Learn how much nicer Java technologybased APIs can

More information

CMSC330 Spring 2016 Midterm #1 9:30am/12:30pm/3:30pm

CMSC330 Spring 2016 Midterm #1 9:30am/12:30pm/3:30pm CMSC330 Spring 2016 Midterm #1 9:30am/12:30pm/3:30pm Name: Discussion Time: 10am 11am 12pm 1pm 2pm 3pm TA Name (Circle): Adam Anshul Austin Ayman Damien Daniel Jason Michael Patrick William Instructions

More information

CSE 413 Programming Languages & Implementation. Hal Perkins Winter 2019 Ruby Containers, Blocks, and Procs

CSE 413 Programming Languages & Implementation. Hal Perkins Winter 2019 Ruby Containers, Blocks, and Procs CSE 413 Programming Languages & Implementation Hal Perkins Winter 2019 Ruby Containers, Blocks, and Procs CSE413 Winter 2019 1 The Plan Ruby container data structures Blocks and control structures (iterators,

More information

CS 390 Software Engineering Lecture 6 Ruby

CS 390 Software Engineering Lecture 6 Ruby CS 390 Software Engineering Lecture 6 Ruby References: Ruby in Twenty Minutes, available at https://www.ruby-lang.org/en/documentation/quickstart/. Outline Clone Ruby example git repository $ git clone

More information

comparing groovy & jruby *

comparing groovy & jruby * ThoughtWorks comparing groovy & jruby * * please check all knives, guns, pitchforks, and torches at the door NEAL FORD software architect / meme wrangler ThoughtWorks nford@thoughtworks.com 3003 Summit

More information

Extending Ruby with C

Extending Ruby with C Extending Ruby with C David Grayson Las Vegas Ruby Meetup, 2013-10-23 Previously presented 2011-11-16 Why make a C extension? To access C libraries from Ruby To run CPU-intensive algorithms Along the way

More information

Tuesday, January 13, Backend III: Node.js with Databases

Tuesday, January 13, Backend III: Node.js with Databases 6.148 Backend III: Node.js with Databases HELLO AND WELCOME! Your Feels Lecture too fast! Your Feels Lecture too fast! Too many languages Your Feels Lecture too fast! Too many languages Code more in class

More information

why you should use Ruby

why you should use Ruby LUKE KANIES why you should use Ruby Luke Kanies runs Reductive Labs (http://reductivelabs.com), a startup producing OSS software for centralized, automated server administration. He has been a UNIX sysadmin

More information

Ruby on Rails. Origin Drive Destination

Ruby on Rails. Origin Drive Destination Ruby on Rails Origin Drive Destination Rails Just enough stuff to make the creation of database-backed web applications tolerable Rails Just enough stuff to make the creation of database-backed web applications

More information

welcome to BOILERCAMP HOW TO WEB DEV

welcome to BOILERCAMP HOW TO WEB DEV welcome to BOILERCAMP HOW TO WEB DEV Introduction / Project Overview The Plan Personal Website/Blog Schedule Introduction / Project Overview HTML / CSS Client-side JavaScript Lunch Node.js / Express.js

More information

Ruby on Rails 3. Robert Crida Stuart Corbishley. Clue Technologies

Ruby on Rails 3. Robert Crida Stuart Corbishley. Clue Technologies Ruby on Rails 3 Robert Crida Stuart Corbishley Clue Technologies Topic Overview What is Rails New in Rails 3 New Project Generators MVC Active Record UJS RVM Bundler Migrations Factory Girl RSpec haml

More information

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript PHP Curriculum Module: HTML5, CSS3 & JavaScript Introduction to the Web o Explain the evolution of HTML o Explain the page structure used by HTML o List the drawbacks in HTML 4 and XHTML o List the new

More information

Catbook Workshop: Intro to NodeJS. Monde Duinkharjav

Catbook Workshop: Intro to NodeJS. Monde Duinkharjav Catbook Workshop: Intro to NodeJS Monde Duinkharjav What is NodeJS? NodeJS is... A Javascript RUNTIME ENGINE NOT a framework NOT Javascript nor a JS package It is a method for running your code in Javascript.

More information

Computer Science Seminar. Whats the next big thing? Ruby? Python? Neither?

Computer Science Seminar. Whats the next big thing? Ruby? Python? Neither? Computer Science Seminar Whats the next big thing? Ruby? Python? Neither? Introduction Seminar Style course unlike many computer science courses discussion important, encouraged and part of your grade

More information

Ruby: Introduction, Basics

Ruby: Introduction, Basics Ruby: Introduction, Basics Computer Science and Engineering College of Engineering The Ohio State University Lecture 3 Ruby vs Java: Similarities Imperative and object-oriented Classes and instances (ie

More information