First things first, Julia Evans is IMO great at this. jvns.ca is her website. She writes "zines" with illustrated technical concepts, and they're great.
Anyway, the most helpful analogy I encountered as I was learning was to think of an interface like a light switch.
Hides complexity from the user
Exposes methods to the user (e.g. lightswitch.turn_on()
Is extensible
Is intuitive
Credit: I first came across this description in Data Structures and Algorithms in Python by Goodrich, Tamassia, and Goldwasser
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
First things first, Julia Evans is IMO great at this. jvns.ca is her website. She writes "zines" with illustrated technical concepts, and they're great.
Anyway, the most helpful analogy I encountered as I was learning was to think of an interface like a light switch.
lightswitch.turn_on()
Credit: I first came across this description in Data Structures and Algorithms in Python by Goodrich, Tamassia, and Goldwasser