3 ms·
> Compare that to procedural programming, where you are telling the computer what to do, and even if it does what you say, that may not have been what you actua
by taneq 10y ago
> Compare that to procedural programming, where you are telling the computer what to do, and even if it does what you say, that may not have been what you actually wanted after all.
Procedural vs. functional phrasing in no way changes the basic fact that if you ask a computer the wrong question it'll give you the wrong result.
"go through the list of all users and add the ones which are active to a new list"
vs.
"the list I want contains all active users from the list of all users"
- qb45 10y agoIn imperative you don't ask questions but give instructions. As long as the instructions are longer than the question (and they often are, even in your example ;)), you are bound to make more errors here. Plus, it requires some understanding of how this damn machine works in the first place. When turning questions into instruction is decidable it pays off to automate it.