An Interest In:
Web News this Week
- April 3, 2024
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
April 26, 2023 03:04 pm GMT
Original Link: https://dev.to/philipjohnbasile/declarative-programming-vs-imperative-programming-413c
Declarative Programming Vs Imperative Programming
Imperative: My cat is hungry. I'll goto the pantry and grab a can. I'll unfurl the top and walk to the garbage can. At the garbage can I will open the lid with my foot and place said unfurled top with ease into said can. Cat looks at me. I look at cat. I goto the pantry again. I grab a disposable dish from the shelf. I flip the cat can into the dish. I hold the new almost empty cat can and place the disposable dish on the floor with the other hand. I walk to the trash can. I open it up with my foot. I chuck the can. I call the cat. The cat runs in. My cat is now eating.
Declarative: I'll feed my cat.
Original Link: https://dev.to/philipjohnbasile/declarative-programming-vs-imperative-programming-413c
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To