Today I Learned - Rocky Kev

TIL Declarative Vs Imperative Programming Paradigms

POSTED ON:

TAGS:

Declarative Programming is like asking your friend to fix your car. You don’t care how to fix it, that’s up to her.

Imperative Programming is like your friend calling your father that tells her how to fix your car step by step.

There's no right or wrong way. They're just patterns and models to help us write better code.

And from personal experience - it's always 80/20. It's never possible to go ALL IN on a pattern.

Source:
https://docs.microsoft.com/en-us/answers/questions/211050/declarative-vs-imperative-language.html


Related TILs

Tagged:

TIL Indirection and Swallowing the error

Op shared a tryCatch util that is problematic.

TIL reusing variables

Do not reuse variables. Do not double define variables that represent the same thing.

TIL about semaphores

A semaphore limits access to a resource to some number of consumers. Any new requests for the resource will get stalled until later, eventually to be handled.