TeachingToolsProgramming

Flower: The Flowchart Is the File

Intro students still need to see an algorithm before they can type one. Flower is my attempt to give them a studio for that, without a license, a login, or a particular operating system.

The name is Flower. Please say floor, not flour. I will not pretend the pun is accidental. The PNG is the source.

When I was first learning this craft, we drew flowcharts on IBM's printed worksheets. The paper had a light green ink grid that would not photocopy, and you traced the boxes with a plastic template: parallelograms for input and output, diamonds for decisions, rectangles for the work. If you mixed up the true and false branches, you erased until the sheet got thin. That ritual had a purpose. It forced you to name the steps before you committed them to punch cards or, later, to a compiler that would punish you for skipping the thinking.

The flowchart itself is older than most of the languages we teach. Goldstine and von Neumann were drawing flow diagrams in the 1940s. ANSI later standardized the shapes. IBM sold the templates and the green-ink pads by the case. Structured programming eventually warned us not to turn those diagrams into spaghetti. The warning was fair. The underlying idea never went away. Sequence, decision, and repetition are still the whole game in an intro course. A lot of people do not get that from staring at a blank editor. They get it from seeing the path.

We have better pens now. We also have a lot of tools that almost do this job and then get in the way.

Visio is a drawing program that happens to include flowchart shapes. Lucidchart and its cousins want an account, and often a purchase, before a student can finish a lab. Draw.io will happily make a pretty picture that will not run. The academic tools that actually execute a chart, including ones I have used in class, served a generation of intro courses well. They also tend to assume the student has the right machine, the right installer, and the patience to keep a proprietary project file in one pocket and a screenshot in the other so the learning system can display something.

I wanted one thing. A non-proprietary studio that did not require registration or a purchase. Something that ran on Windows, macOS, Linux, a Chromebook, whatever the student already had. High quality. Visually quiet enough for a projector. Robust enough to be a real assignment rather than a toy. Flower is that studio. It lives in the browser. There is no account. The palette is the intro set: Input, Output, Assignment, If, While, and Comment. Expressions are Python-flavored on purpose, so students see and, or, True, and // in the boxes. Flower does not export Python. The flowchart is the program. That is a teaching choice. I want them to finish the thinking in the diagram, not treat the diagram as a pretty printout of code an assistant already wrote.

The Flower studio with the FizzBuzz sample flowchart open
The Flower studio. Boxes go on connectors, not as freeform spaghetti. Run and Step will tell you whether the picture is honest.

Here is the trick I have been waiting to use. A PNG is an ordinary picture. File explorers show it. Email clients show it. Canvas and the other learning systems show it as a thumbnail. PNG has also, for a long time, allowed a little extra text to ride along inside the file. Most software ignores those chunks. Flower stores the complete editable project in them. The picture you hand in is the program. There is no sidecar project file for the LMS to refuse to preview.

That means a student can attach a Flower chart to an email, or upload it to a dropbox, and what the instructor sees in the preview is the actual flowchart. Open the same file in Flower and the boxes are live again. You can step, run, watch variables, and keep editing. The caveat is ordinary and important. If the LMS or the mail server re-encodes the image and strips the extra text, you are left with a picture. Keep the original download. Do not let a helpful optimizer "clean" the file.

The editor is opinionated in a way I think intro students need. You do not draw lines wherever you like. You click a connector, then a node type, and the new box lands on that path. Illegal control flow is refused up front instead of failing later with a shrug. Immediate execution with highlighting, a console, and a variable watch is what makes the diamonds honest. If the true branch does not do what you thought, you find out while the picture is still in front of you.

That is the continuing value. Programming is a way of thinking, and visualization is still one of the shortest paths into it. When a student has to put an If on the page and then choose what happens on the true side and the false side, they are practicing the same discipline we used to practice with green ink. The difference is they can press Run. For some students that is the moment the whole subject stops being a foreign language and starts being a set of moves they can see.

I am looking forward to the next feature, which is the one that closes the loop with the old paper. Take a photo of a flowchart on a napkin, a whiteboard, or a worksheet. Let a language model interpret the shapes and the text, and recover an editable Flower chart from a picture that has no metadata at all. That is how you bridge from "I figured it out at the kitchen table" to a functional algorithm you can run. The architecture already leaves room for it. The model is the part I have not wired yet.

If you want to try it, it is a website. No install. No account. sandmarktech.com/flower.