💾 Archived View for midnight.pub › replies › 1733 captured on 2022-03-01 at 16:15:16. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
< Programming a PB&J
~bitdweller
To illustrate how "difficult" it is to program (finnicky may be a better word, if my understanding of English is correct), I will add some steps:
- First, loop through all rooms, if name === "pantry", then proceed with opening its door.
- You need to account for all possible errors, if there's no knives on the drawer, then run getKnife(), which in turn may need to run cleanKnife().
- You didn't close the drawer, you may hurt yourself bumping into it.
- After returning the peanut butter and jelly, you didn't go back to the counter.
This is just for fun, not to actually "correct" you :)
Write a reply