the differences between programming paradigms (e.g., imperative, functional, object-oriented)

88 viewsOtherTechnology

the differences between programming paradigms (e.g., imperative, functional, object-oriented)

In: Technology

4 Answers

Anonymous 0 Comments

I’ll give it a shot:

Think of imperative like step-by-step recipe, for this example. When you write imperative code, you’re telling the computer what to do, sort of like a baking recipe.

Functional is like having a magical box, and whatever you put in always comes out the same. Example, if you do 2 + 3, it always comes out with 5.

Object-oriented is a little more complicated, but essentially, each toy has its own super special ability! You can tell the toy what to do based on what it represents, for example, you can tell a toy plane to fly, and it will fly for you. You can tell a toy car to “honk” and “drive”.

You are viewing 1 out of 4 answers, click here to view all answers.