-
1. imperative programming:
- 描述怎么做(how);
- 更接近机器;
- 完成任务需要额外的字段,比如循环的计数器;
---
2. declarative programming:
- 描述做什么(what);
- 更接近人类;
- 完成任务不需要额外的字段,关系的是数据的结果,而不是处理过程;
-
In imperative programming you can stop iteration by using `break` or `return` keywords, but in Nevalang's dataflow it's not possible - `for`, `map`, `filter`, etc will process the whole stream even if…
-
I don't disagree with the sentiment here, but [Favor functional programming over imperative programming](https://github.com/uohzxela/clean-code-ruby#favor-functional-programming-over-imperative-progra…
-
After lecture 09, I am confused that should we try to use as much declarative programming as possible or are there criteria for deciding which style should use in the context of question??
-
### Updated: September 30
* (p.2) Added a table that compares the functional and imperative programming.
* (p.12) "Boolean expressions _~are~can_ be combined by boolean operators:"
* (p.17) Added t…
-
I am taking an interesting error on 27 inc monitor. Maybe I'm doing something wrong but I wanted to share it anyway. Smallest image shows up on wide screen. First of all, I want to share what I did.
…
-
React GUI kind of framework
User defines state and state transitions and library defines a runtime that evaluates these state transitions on-demand and renders the state. There can also be an inter…
-
Hi, this is a great project. Thanks.
I have a concern that I would like to share.
For instance, looking at `/algorithms/math/factorial` which is one of the most basic math topic:
https://github.…
-
I take issue with two subsection titles:
- Prefer object orientation to imperative programming
- Prefer functional to procedural language constructs
because you can do imperative programming in…
-
In its current state, the DSL looks more like an imperative particle programming language. While an imperative approach is powerful in terms of expressivenes, a DSL may not need to strive for this, i.…