teaching machines

CS 268: Lecture 15 – Higher-order Functions

April 9, 2020 by . Filed under lectures, spring-2020, webdev.

Dear students:

Today we hit up higher-order functions, a feature of modern languages that will shorten up your code considerably. Once you know a few of these higher-order functions, you may never write loops again. Why? Because so much of our looping algorithms follow certain patterns, we can generalize those patterns into reusable functions. For the parts of the algorithms that differ, we take in functions from the callers are parameters.

We’ll be using these higher-order functions frequently when we build React apps, starting next week.

Here’s your TODO list:

See you next time.

Sincerely,