CORE RUBY [204]
Fundamentals– What is Ruby; Ruby download and installation; irb and SciTE; Free format; Case sensitive; Comments; Statement delimiters; Documentation; Operators (with precedence and associativity rules); Ruby editors; .rb file; Concept of an object and that everything is an object in Ruby; Object class and its methods; Usage of puts, gets methods; Ruby conventions; Garbage collection (3 lectures) Variables and Constants– Name characters; Variables – local, instance, class, global; Constants naming, rules and concept of scope operator ::; Naming conventions; Dynamically typed; Usage of method type (2 lectures) Numbers– Concept and usage with Class Numeric, Float, Integer, Fixnum and Bignum (1 lecture) Strings– String literals using single- and double-quotes and their differences; Usage of #{expression}; Conversions using .to_i, .to_f, .to_s; Usage of <<; Concept of symbols; Class String methods like chomp, reverse, length, upcase, downcase, swapcase, capitalize, strip, length, index, slice, upcase!, downcase!, swapcase! and capitalize!. (4 lectures) Random Numbers– rand method (1 lecture) Arrays– Concept; Class Array methods like delete, sort, length and each using do end (2 lectures) Concept of Ranges and Hashes (2 lecture) Constructs– if else end elsif; while end; case when end (1 lecture) Regular Expressions– Simple examples (2 lectures) Methods– Writing own methods using def end; class and instance methods (with getter and setter); return and concept of value returned by last statement in a method; variable number of parameters using * (3 lectures) Code Blocks– Using do end and { }; Usage of yield method; Concept of Proc and it’s method call; lambda (3 lectures) File I/O– File class and its method open (3 lectures) Writing a class– Standard class Class; initialize; new methods; Access modifiers private and protected; Usage of attr_reader, attr_writer, attr_accessor; Concept of inheritance and using <; Using super (4 lectures) Concept of Duck Typing (1 lecture) Modules – Examples of writing a module; Usage of require and include; Concept of mix-ins (1 lecture) Exception handling– Exception class and its hierarchy; begin rescue ensure end; (2 lectures) Concept of Unit Testing (2 lectures) Standard Classes and Modules– Usage of Dir, Time, Thread, Range, IO, Module, GC, Kernel, Math – usage (3 lectures)
Recommended Books: a. Programming Ruby by Dave Thomas b. Learn to Program by Chris Pine c. Ruby For Rails by David Black d. Beginning Ruby by Peter Cooper Reference http://www.unipune.ernet.in/stud_info/Syllabi/Syllabus_2008.html
|
No responses found. Be the first to respond...
|