this post was submitted on 24 Nov 2023
4 points (100.0% liked)

Clojure programming language discussion

453 readers
2 users here now

Clojure is a Lisp that targets JVM and JS runtimes

Finding information about Clojure

API Reference

Clojure Guides

Practice Problems

Interactive Problems

Clojure Videos

The Clojure Community

Clojure Books

Tools & Libraries

Clojure Editors

Web Platforms

founded 4 years ago
MODERATORS
 

Architectural layers and abstraction impedes imperative readability, since both hide the concrete implementation details.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 11 months ago

from the article...

"Imperative Readability

< snip >

How does the function execute its logic?

What are the specific steps taken by the code?

Which operations are performed in what sequence?

How are state changes managed and tracked

< snip >

Declarative Readability

On the other hand, declarative readability (or readability-d) uses abstractions and architectural layers to manage complexity. It seeks to answer very different types of questions:

What is the intent of this function or module?

What business rule or domain concept is this code encapsulating?

What is the end goal or output of this code, in terms of the domain?

What are the high-level policies or constraints that this code is adhering to?


... I've no interest in learning Scala or Closure, but damn that is an important differentiation...