40
loading...
This website collects cookies to deliver better user experience
Hey You! Don’t be afraid of these terms, read, learn and confuse others! 💁
The first thing to note is in the title is that I didn’t mention Versus as no soul on this beautiful earth can draw a straight line between them. It’s like the Single Responsibility Principle, where you keep breaking down your application logic and still find it being violated.
Imperative deals with - How to do it?
Declarative deals with - What to do anyway?
JSX is that branch of js which is only suitable for writing components.
Can we write a javascript generator function in it? Well is it even meant for it.
Do we care about how this will work. Hell no !
Can we use migration syntaxes in general ruby code. Not fully, its made for migrations !
Learn to perform top-down decomposition of codebase.
Imaginary problem time:
We are gonna cook noodles and its gonna be Legen-wait_for_it-dary.
These paradigms are like a number line, Imperative on left and Declarative on right. You can always move toward one paradigm but never reach the ultimate end. On left you'll find your language to be more general purpose and on right it takes path to become a DSL.