DEV Community

loading...

Programming Metaphors

Vicki (she/her)
Vicki was once a manager of aircraft maintenance and is now charming Python. She coded #VetsWhoCode bot & Code Questions bot. When Vicki isn't petting her cat, she’s throwing a ball for her dogs.
・1 min read

Last week I wrote about how programming and cooking are similar.

This week, I've come across tons of things that could be metaphors for programming. What are your best metaphors for programming?

Discussion (6)

Collapse
annarankin profile image
Anna Rankin

I love this! I've always liked the idea of sketching as a development workflow: you draw rough sketches to figure out an approach (or mess around with libraries/patterns in code), then once you know how you want your drawing (or feature) to work, you lay it out (good place to use tdd!) and elaborate on it until it's ready to ship!

Collapse
vickilanger profile image
Vicki (she/her) Author

What an awesome metaphor. A drawing project is a lot like a coding project.
Maybe:
shapes = part of a statement
Quick sketch = pseudocode
Erasing/fixing = debugging
Printing/publishing = shipping/push to prod

Collapse
osde8info profile image
Clive Da

painting

Collapse
vickilanger profile image
Vicki (she/her) Author

Agreed. I’d like to think an outline like TDD or pseudocode

Collapse
osde8info profile image
Collapse
vickilanger profile image
Vicki (she/her) Author

Love it 😍 Lego is a very natural feeling metaphor for code. Code is just a bunch of building blocks, that hopefully look and work right when done, right?

Forem Open with the Forem app