CS 330 Lecture 9 – Types
Dear students, Today we begin our exploration of programming language concepts, rather than the tools (regex) that we’ll later use for interpreting programming languages. In particular, we start off our discussion with C. I used to talk about assembly first, because no programming language should be evaluated outside the context of history. All that humans […]
CS 318 Lab 6 – Div, Classes, and IDs
Dear students, Last time we dropped into the world of CSS as a means of applying style to our information hierarchies. Learning CSS is a little like learning how to conjure springtime. You suddenly have the power to make things bloom and look beautiful. But it will take a lot of practice. This class spins […]
CS 330 Lecture 8 – Substitution Blocks, Number Ranges, Lookarounds
Dear students, At the end of class, we’re going to play some Regex Bingo. While you’re waiting, find a partner make a 4×4 grid of randomly generated strings. Include uppercase and lowercase letters, numbers, whitespace, and punctuation. Keep the strings short. There’s no free space. Our discussion of gsub was cut short last time. Let’s […]
CS 318 Lab 5 – Hello, CSS
Dear students, Let’s start by discussing how color is represented in many of our digital technologies. Color is decomposed into three primaries: red, green, and blue. These are different than the primaries we often use with paint, and mixing is little different too, because we’re mixing light rather than pigment. We’ll create a little page […]
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 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 […]