COURSE 5275 | 2-DAY SESSION
Hands-On Ruby Programming
Course Outline
I. Introduction
• Language examples
• Simple applications
- Command line arguments
- Environment variables
• Development tools
II. Elements
• Standard types
- Fixnum and Bignum
- Float
- Ranges
• Strings
- Literal string types
- Methods
• Operators
- Assignment
- Arithmetic
- Comparison
- Conditional
• Variables
- Predefined
- User defined
• Expressions
III. Control Flow
• If and unless
• Loops
• Case
IV. Methods
• Defining
• Parameters
V. Classes and Objects
• Initialize and new
• Instance methods and attributes
• Class methods and variables
• Access control
- Public, Private, and Protected
• Inheritance
VI. Containers
• Arrays
- Indexing
- Enumerating
• Hashes
- Keys
- Advantages/disadvantages
• Iterators
• Blocks
V. Input and Output
• IO and File classes
- Opening and closing
- Reading and writing
• Dir class
VI. Exceptions
• Exception class
• Handling exceptions
• Raising exceptions
• Catch and throw
VII. Modules
• Namespaces
• Mixins
• Enumerable and other modules
VIII. Classes
• Object class
• Class class
• Reflection
IX. Networking
• Socket level access
- TCPSocket
- TCPServer
• Higher-level protocol access
- Net::HTTP
- Net::SMTP
X. Threads
• Thread creation
• Thread scheduling
• Mutexes
• Condition variables
XI. Regular Expressions
• Syntax
- Basic matching
- Anchors
- Groups
- Substitution
- Lookahead and lookbehind
• Methods
- Regexp class
- String class
XII. Miscellaneous
• Special variables
• Executing other processes
• Garbage collection
• Embedded documentation
XIII. Other Classes
• Built-in
• Standard library
XIV. Unit Testing
• Framework
• Structuring tests
XV. Introduction to Rails
• Model-View-Controller
• Active objects
• Embedding Ruby in HTML
|