solid-docs
solid-docs copied to clipboard
Wording in Declarative programming introduction
Declarative programming refers to the practice of writing computer code that explains what your computer should do rather than how to accomplish it.
Source: https://docs.solidjs.com/guides/foundations/thinking-solid
My proposal is it replace "what your computer should do" with "what your computer should accomplish".
The phrase "what your computer should do" is ambiguous and could just as well describe imperative programming.
Declarative programming is specifically not about "what to do":
Declarative programming lets you declare the desired outcome (accomplishment), leaving the "how to accomplish it" or in other words "what to do", up to the computer.