Imperative vs Declarative

소바·2022년 8월 30일
0

Imperative vs Declarative

Declarative programming

We are going to get feedback from users, but we have no idea how that's going to happen.
That's why we call it declarative.
We are simply stating something that is going to happen on the counter end of that.

Imperative programming

We have what we call imperative programming and imperative programming says how it will happen.

Imperative programming is where you go line by line by line, saying Do this, do that?


Declarative is very powerful because of its simplicity, because you don't have to worry about what's going to happen behind the scenes, and you can just say, Hey, get me this, hey, get me that you can be more productive versus imperative.

You have more flexibility, you have more power, you can do way more things, but it becomes more complicated as you go along because you have to manage all of these extra things.


https://www.udemy.com/course/advanced-javascript-concepts/learn/lecture/13829074#overview

https://www.udemy.com/course/advanced-javascript-concepts/learn/lecture/13829074#overview

https://www.udemy.com/course/complete-react-developer-zero-to-mastery/learn/lecture/15081790#overview

profile
소바보이

0개의 댓글