Ruby Flashcards
3 principles underlying Ruby mechanisms:
1- Everything is an object
2- Every operation is a method call on some object and returns a value
3- All programming is metaprogramming
What is metaprogramming?
Classes and methods can be added or changed at any time, even while a program is running
Is Ruby interpreted or compiled?
Compiled
migrations
-
routing
-
embedded Ruby
-
What kind of a site is Twitter
social media microblogging site
What is the built-in testing site in Ruby?
Mini Test
External dependencies (add-ins)
- RSpec
- Cucumber
- Capybara
- Factory Girl
mockups
-
what is Ruby scaffolding?
- automatically creates code to model data and interact with it through the web
- scaffolding is good for getting started quickly
- not good for understanding
URI
-Uniform Resource Identifier
URL
-Uniform resource locator
What is Ruby on Rails
- 100% open source
- available under MIT license
- a domain specific language for writing web applications
- makes common web programming tasks - such as generating HTML, making data models, routing URLs -easy
- adapts rapidly to new developments in web technology and frameworks
- first framework to fully digest REST
gem
-self-contained solutions to specific problems such as pagination and image uploade
the default Rails testing framework
MiniTest
Ruby books
- Learn to Program by Chris Pine
- Beginning Ruby by Peter Cooper
- Learn Ruby on Rails by Daniel Kehoe
Resources for intermediate to advanced Ruby
- Code School
- The Turing School of Software & Design (Denver)
- Tealeaf Academy (online)
- Thinkful
- Pragmatic Studio: Online Ruby and Rails courses
- RailsCasts by Ryan Bates
- RailsApps
- Rails guides
- http://www.railstutorial.org/#help
- [Bk] Conquering the Command Line by Mark Bates
website for “how to install rails”
InstallRails.com
RubyGems
-
3 essential components needed to install web applications
1-a text editor
2-a file system navigator
3-a command-line terminal
a global search that is essential to navigating any large Roby or Rails project
“Find in Files” global search
universal indentation convention in Rugy
-using two spaces for indenting