Ruby on Rails
IT Skill Development Program
Muhammad Sunny
Associate System Analyst
 Ruby is a dynamic, reflective, object-oriented, general-purpose programming language.
 It was designed and developed in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan.
 According to its creator, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, and Lisp.
 Ruby supports multiple programming paradigms, including functional, object-oriented,
and imperative.
 Ruby also has a dynamic type system and automatic memory management.
The name “Ruby”
The name "Ruby" originated during an online chat session between Matsumoto and Keiju Ishitsuka
on February 24, 1993, before any code had been written for the language. Initially two names were
proposed: "Coral" and "Ruby". Matsumoto chose the latter in a later e-mail to Ishitsuka. Matsumoto
later noted a factor in choosing the name "Ruby" – it was the birthstone of one of his colleagues
What is Ruby?
4
What is Rails?
Ruby on Rails or(RoR)
Rails is an open source Ruby framework for developing database-backed web applications.
Created by David Heinemeier Hansson – DHH Partner, 37Signals/
The Rails framework was extracted from real-world web applications. That is, Rails comes from real need, not anticipating what
might be needed. The result is an easy to use and cohesive framework that's rich in functionality, and at the same time it does its
best to stay out of your way.
All layers in Rails are built to work together so you Don’t Repeat Yourself and can use a single language from top to bottom.
Everything in Rails (templates to control flow to business logic) is written in Ruby
The Name “Rails”
If you consider a train on rails, the train goes where the rails take it. Ruby On Rails is the Ruby language on the "rails"
that DHH dreamed up. As the saying goes, RoR is very opinionated software. You can do *some* things in a way that
DHH and crew don't like, but they will make it hard for you. If you follow the Rails, all goes well.
source:http://en.wikipedia.org/wiki/Ruby_(programming_language)
CompaniesusingRails
The ( MVC ) Framework
source:http://flickr.com/photos/charlesbodi/236037049/
Ruby on Rails
Models (classes)
ActiveRecord
source:http://media.rubyonrails.org/presentations/pursuitofbeauty.pdf
ActionController
source:http://flickr.com/photos/sameli/261307204/
ActionView
source:http://flickr.com/photos/bocavermelha/66759796/
ModelView
Controller
How it work ?
Framework ROR (MVC)
Ruby on Rails
Web Application Server
A dress shop
Pant
section?
1st floor kid.
2nd section
1st floor
here is
your pant
A Rails server
home controller,
about action
/about
routes.rb
A Rails server
home
controller,
about action
here is
your
html file
 Hall of Fame award
Language of the Year : 2006
 Highest Position (since 2001) : #8 in May 2016
 Lowest Position (since 2001) : #39 in Jan 2002
 Current Position : #10 in Apr 2017
source:http://https://www.linkedin.com/pulse/aspnet-vs-ruby-rails-django-python-php-pushpendra-singh-sisodiya
Ruby on Rails vs other Languages
Advantages Limitations
ROR Open-sourced Learning it can be difficult
Works on multiple platforms Lacks informational resources
Can be embedded into Hypertext Markup Language (HTML)
Slower processing time (CPU time) compared to
other programming languages
A Very High-Level Language (VHLL) Development and updates are slower
Offers encapsulation of data methods within objects
Pure OOP (Object-Oriented Programming)
Super advanced string and text manipulation techniques
Can easily be connected to DB2, MySQL, Oracle, and Sybase
Scalable and big programs written in Ruby are easily maintainable
Ability to write multi-threaded applications with a simple API
Offers advanced array class
Able to write external libraries in Ruby or C
Better security features
It has a debugger
It has flexible syntax
Powerful string handling
.NET Easily works with ADO.NET using data-binding Mixes layout (HTML) and logic (scripting code)
The Web server continuously monitors If it notices any memory leaks, infinite
loops it immediately destroys those activities and restarts itself
Interpreted and Loosely-Typed Code
NET makes for easy deployment Limited Development and Debugging Tools
application or partition your application across many languages No real state management
It is purely server-side technology so, ASP.NET code executes on the server
before it is sent to the browser.
Update files only when server is down
The ASP.NET framework is complemented by a rich toolbox and designer in the
Visual Studio integrated development environment
Obscure Configuration Settings
With built-in Windows authentication and per-application configuration
NET drastically reduces the amount of code required to build large applications
Thank You

Ruby on Rails Introduction M&P - IT Skill Development Program 07

  • 1.
    Ruby on Rails ITSkill Development Program Muhammad Sunny Associate System Analyst
  • 2.
     Ruby isa dynamic, reflective, object-oriented, general-purpose programming language.  It was designed and developed in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan.  According to its creator, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, and Lisp.  Ruby supports multiple programming paradigms, including functional, object-oriented, and imperative.  Ruby also has a dynamic type system and automatic memory management. The name “Ruby” The name "Ruby" originated during an online chat session between Matsumoto and Keiju Ishitsuka on February 24, 1993, before any code had been written for the language. Initially two names were proposed: "Coral" and "Ruby". Matsumoto chose the latter in a later e-mail to Ishitsuka. Matsumoto later noted a factor in choosing the name "Ruby" – it was the birthstone of one of his colleagues What is Ruby?
  • 4.
    4 What is Rails? Rubyon Rails or(RoR) Rails is an open source Ruby framework for developing database-backed web applications. Created by David Heinemeier Hansson – DHH Partner, 37Signals/ The Rails framework was extracted from real-world web applications. That is, Rails comes from real need, not anticipating what might be needed. The result is an easy to use and cohesive framework that's rich in functionality, and at the same time it does its best to stay out of your way. All layers in Rails are built to work together so you Don’t Repeat Yourself and can use a single language from top to bottom. Everything in Rails (templates to control flow to business logic) is written in Ruby The Name “Rails” If you consider a train on rails, the train goes where the rails take it. Ruby On Rails is the Ruby language on the "rails" that DHH dreamed up. As the saying goes, RoR is very opinionated software. You can do *some* things in a way that DHH and crew don't like, but they will make it hard for you. If you follow the Rails, all goes well.
  • 5.
  • 6.
    The ( MVC) Framework source:http://flickr.com/photos/charlesbodi/236037049/ Ruby on Rails
  • 7.
  • 8.
  • 9.
  • 10.
    ModelView Controller How it work? Framework ROR (MVC)
  • 11.
    Ruby on Rails WebApplication Server
  • 12.
    A dress shop Pant section? 1stfloor kid. 2nd section
  • 13.
  • 14.
    A Rails server homecontroller, about action /about routes.rb
  • 15.
    A Rails server home controller, aboutaction here is your html file
  • 16.
     Hall ofFame award Language of the Year : 2006  Highest Position (since 2001) : #8 in May 2016  Lowest Position (since 2001) : #39 in Jan 2002  Current Position : #10 in Apr 2017
  • 17.
  • 18.
    Advantages Limitations ROR Open-sourcedLearning it can be difficult Works on multiple platforms Lacks informational resources Can be embedded into Hypertext Markup Language (HTML) Slower processing time (CPU time) compared to other programming languages A Very High-Level Language (VHLL) Development and updates are slower Offers encapsulation of data methods within objects Pure OOP (Object-Oriented Programming) Super advanced string and text manipulation techniques Can easily be connected to DB2, MySQL, Oracle, and Sybase Scalable and big programs written in Ruby are easily maintainable Ability to write multi-threaded applications with a simple API Offers advanced array class Able to write external libraries in Ruby or C Better security features It has a debugger It has flexible syntax Powerful string handling .NET Easily works with ADO.NET using data-binding Mixes layout (HTML) and logic (scripting code) The Web server continuously monitors If it notices any memory leaks, infinite loops it immediately destroys those activities and restarts itself Interpreted and Loosely-Typed Code NET makes for easy deployment Limited Development and Debugging Tools application or partition your application across many languages No real state management It is purely server-side technology so, ASP.NET code executes on the server before it is sent to the browser. Update files only when server is down The ASP.NET framework is complemented by a rich toolbox and designer in the Visual Studio integrated development environment Obscure Configuration Settings With built-in Windows authentication and per-application configuration NET drastically reduces the amount of code required to build large applications
  • 19.