Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.21 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.21 KB

Repository for Pupilfirst WD-201 Course Assignments

L2: Introduction to ruby

Assignment: Recursive DNS resolver

Location: l2/

Files:

  • lookup.rb contains the code for:
    • parse_dns function converts the file into a source-destination hash along with record type tag
    • resolve function appends canonical records' destination to lookup_chain and calls itself recursively on the target. If the record is address, then it returns the lookup chain with final IPv4 address.
  • zone contains various address and canonical records of diffrent domains

L3: Object-oriented programming

Assignment: Implement a todo list using classes

Location: l3/

Files:

  • todos.rb contains the code for:
    • class Todo contains the data members and related methods to check for status of each todo from(overdue, due_today, due_later) and also has a formatter method which formats the string into displayable todo in a list of todos
    • class TodosList contains data memeber to store the list of todos and methods to display the entire list and also to filter the tasks with a particular status from (overdue, due_today, due_later).