Planning a Program of Your Own

You built the season pass system from a brief and its checks, with no steps to follow. You typed the data first, checked what came from saved JSON, and let npm run check tell you when you were done. That method works on programs nobody has written a brief for.

In this lesson, you’ll plan a TypeScript program of your own: a one-paragraph pitch, a short list of features in order, the types, and a working skeleton that passes the check. You’ll build the rest over the following days, one feature at a time. Start with the pitch, the one part that has no code at all.

Pitch It, Then Cut It Down

A program without a clear purpose grows in every direction, so decide what it’s for before you open an editor. A pitch is one paragraph: who uses the program, what problem they have, and what the program does about it. Here’s one:

Ines Moreau runs the tool library in her neighborhood. Neighbors borrow drills and ladders for a week, and Ines tracks them in a notebook. A page that lists every tool as available, on loan, or in repair, with who has it and when it’s due, would show her which tools are late.

Pick something you can get working in a few evenings. A program is worth typing when it has data from outside, such as a JSON file or a form, and records that can be in more than one state. The tool library has both.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.