teaching machines

CS 330 Lecture 7 – Regex Cont’d

Agenda what ?s what does this do? substitution capturing lookaround assertions TODO 1/4 sheet: Try your hand at Regex Golf. Report some of your regices and your score. What Does This Do? Code arithmetic.txt calc.rb music.rb Haiku

CS 330 Regexercise Homework – due before February 20

See the PDF.

CS 330 Lecture 6 – Regex in Ruby

Agenda what ?s visualizing regex with Regexper asserting filtering with scan, grep, etc. substitutions TODO Start the Regexercise homework. At least the first two problems must be completed before February 20. Remember to follow the Bitbucket workflow. I encourage you to commit and push frequently—do not wait until you’ve got everything working. Code isa.rb nofoo.rb nocomments.rb […]

CS 330 Lecture 5 – State Machines

Agenda what ?s state machines regex parts and pieces atoms alternation grouping quantifiers anchors TODO Write on a 1/4 sheet a Ruby method filter that accepts an array and a block as parameters. It returns an array containing only the elements for which the block returns true. The first homework will be assigned on Friday. […]

CS 330 Lecture 4 – Ruby

Agenda what ?s language features Ruby via examples TODO Walk through RegexOne. On a 1/4 sheet, draft some regular expressions that match the following: Lines ending with a hyphenated word. Words with an internal uppercase letter. Lines lacking a semi-colon at their close. Don’t match lines that have a semi-colon followed by whitespace. Instances of […]

CS 330 Lecture 3 – Make

Agenda what ?s what does this do? graph this capturing shell sequences with make TODO Try out Ruby at http://tryruby.org. Watch a mini-documentary about Grace Hopper, creator of Cobol, one of the first high-level languages. Respond to these on a 1/4 sheet with 3-4 observations or questions. What Does This Do? Graph Compose a graph showing the dependencies between […]

CS 330 Lecture 2 – Hello, Shell

Agenda what ?s some shell exercises tell me something you know about the shell the UNIX way TODO Set your homework repository. Read Shell Programming with Bash. 1/4 sheet: share 3-4 questions or observations about shells or Bitbucket. I offer you some optional challenge problems, which may be solved with one line of shell code: You […]

CS 330 Lecture 1 – Introduction

Agenda what ?s introductions meta define this tell me something you know about the shell Who are you? On a 1/4 sheet of paper, briefly answer these questions: What’s your name? What city do you call home? Suppose work and school were canceled for a year and you were given the freedom to work full-time on some task of […]

CS 330 – Programming Languages

Course Information Syllabus Enrollment: 58 Lecture Homework Exams

CS 330 Lecture 40 – Review

Agenda what ?s review wrap up Topics object-oriented programming inheritance polymorphism (subtype) polymorphism (parametric/generics/templates) dynamic dispatch, virtual functions garbage collection grammars, lexing, parsing, interpretation higher-order functions lambdas/anonymous functions filter/map/fold immutability lazy evaluation memoization reflection dynamic and duck typing Haiku

1 18 19 20 21 22 35