Skip to content

Latest commit

 

History

History
 
 

09-programming-grammar

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Programming Grammar

Learning Goals

  • Vocabulary: variables, data types, comments, truncate
  • To identify the characteristics of different data types, namely: string, integer, and float
  • To store and access data in variables
  • To print values, variables, or a combination to the screen using both print and puts
  • To join strings using both string concatenation and string interpolation
  • To understand the difference between fixnum division (truncates) and float division (does not truncate)
  • To get information from the user using gets.chomp
  • To write and debug Ruby code

Ruby is pretty smart and understands lots of things in a way similar to how people do. Spoken languages are divided into part of speech (like verbs, adjectives, and nouns). Similarly, programming languages have their own grammar. The part of speech we will cover here are values, types, variables, commands, and comments.

Resources

  1. Notes: Values and Types
  2. Notes: Variables
  3. Assignment: Variables Worksheet
  4. Notes: Commands
  5. Notes: Comments
  6. Assignment: Commands Worksheet
  7. Notes: String Slice and Concatenation
  8. Assignment: String Slice and Concatenation Worksheet
  9. Video: Values, Variables, Commands and Comments
  10. Assignment: Madlibs