CS 330 Lecture 7 – Find and Replace
Dear students, We will focus on the final two of the three common operations we for which we will use regular expressions: Asserting that text matches a pattern. Finding all matches of a pattern in a document. Replacing all matches of a pattern with some other text. Finding all matches of a regular expression is […]
CS 330 Lecture 6 – Asserting and Find-All
Dear students, We will discuss three common operations we want to perform on text that are only fun when regular expressions are involved: Asserting that text matches a pattern. Finding all matches of a pattern in a document. Replacing all matches of a pattern with some other text. Today we focus on the first two […]
CS 318 Lab 4 – Structure, Anchors, and Validation
Dear students, Let’s start with a game we’ll call either Like I’m 5 or 85. You’ll randomly draw an HTML element and explain it’s purpose to us as if we were 5 or 85 years old. You pick the age. Another thing that we will do from time to time is share your work up […]
CS 318 Project – Proposal – due on February 15
In this class, you are asked to apply what you’re learning by building a website for a client. The project is broken down into a series of milestones. The first milestone is to find a client and formally propose your project. Complete the following tasks to achieve this milestone. Task 1: Choose a Client Find […]
CS 330 Lecture 5 – Regex
Dear students, Let’s dive right into some Ruby scripts: Calculate an aspect ratio from dimensions given as command line parameters. Generate a list of words that rhyme with a word given as a command-line parameter. Solve Advent of Code problem 1. We aren’t going to concentrate on Ruby as a programming language much at the […]
CS 318 Lab 3 – Core HTML Cont’d
Dear students, When I think about my favorite and most memorable learning experiences, my high school Spanish classes immediately come to mind. Mrs. Lee did a fantastic job of shaking up the classroom. Her primary vehicle for teaching was a series of little games we’d play to learn and practice the vocabulary. HTML, too, is […]
CS 330 Lecture 4 – Shell Scripting, Part 3
Dear students, Okay, let’s really get around to writing these shell scripts this time: Send files to limbo/recycling bin, rather than hell/non-existence. Send a mass email. Upload a local file to a web server and let the world see it. Let’s consider the shell as a programming language by discussing the following questions: What’s the […]
CS 330 Lecture 3 – Shell Scripting, Part 2
Dear students, We will continue to work with the shell, a world between worlds. A place full of dead mice. Let’s start with a reading review: What does it mean for a directory to be executable? Write a command to run program place, reading from file bets and appending its output to file log. What […]
CS 318 Lab 2 – Core HTML
Dear students, Today we meet the core elements of an HTML document. The folks we meet today will stick with us the whole semester. They will help us give a coarse structure to our information. Before we meet them, I want to spend a moment helping us prepare for the oncoming complexity. Suppose you wrote […]
CS 330 Lecture 2 – Shello
Dear students, Let’s start with some quick review questions. Discuss these questions and their answers with a neighbor. If you don’t talk to someone about these, you fail the exercise. Java : methods :: shell : __________ What do strings look like in a shell script? Suppose I have username and domain variables. How do […]