You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/introduction/learning-path.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ Practice writing and evaluating Clojure code using [:fontawesome-solid-book-open
32
32
33
33
Take a quick look at the Syntax of Clojure. The syntax is very small, so this will take about 15 minutes to 1 hour (dependent on your own experiences with coding). Don't try to remember all the syntax and functions, they will come through practise.
34
34
35
-
- eg. [:fontawesome-solid-book-open: Clojure in 15 minutes](clojure-in-15-minutes.md)
35
+
- eg. [:fontawesome-solid-book-open: Clojure in 15 minutes](./clojure-in-15-minutes.md)
36
36
37
37
38
38
## REPL Connected Editor
@@ -62,9 +62,9 @@ Gain an appreciation that a software system should strive for a simple design is
62
62
63
63
Spend an hour watching the author of the Clojure Language, [:globe_with_meridians: Rich Hickey, talk about Simple made Easy](https://www.infoq.com/presentations/Simple-Made-Easy) or read the ([:globe_with_meridians: transcript of talk](https://github.com/matthiasn/talk-transcripts/blob/master/Hickey_Rich/SimpleMadeEasy.md)) to emerse in the foundational concepts of Clojure.
64
64
65
-
Review the [:fontawesome-solid-book-open: Clojure Big Ideas](concepts/) presented by Stuart Halloway and further [:fontawesome-solid-book-open: video presentations by Rich Hickey](concepts/clojure-from-the-author.md){target=_blank .mkdocs-button}.
65
+
Review the [:fontawesome-solid-book-open: Clojure Big Ideas](./concepts/) presented by Stuart Halloway and further [:fontawesome-solid-book-open: video presentations by Rich Hickey](./concepts/clojure-from-the-author.md){target=_blank .mkdocs-button}.
66
66
67
-
[:fontawesome-solid-book-open: Rich Hickey video lecture series](concepts/clojure-from-the-author.md){target=_blank .mkdocs-button}
67
+
[:fontawesome-solid-book-open: Rich Hickey video lecture series](./concepts/clojure-from-the-author.md){target=_blank .mkdocs-button}
Copy file name to clipboardExpand all lines: docs/introduction/repl-workflow.md
+33-29
Original file line number
Diff line number
Diff line change
@@ -70,20 +70,23 @@ Expressions in rich comment blocks can represent how to use the functions that m
70
70
) ; End of rich comment block
71
71
```
72
72
73
-
Rich comment blocks are very useful for rapidly iterating over different design decisions by including the same function but with different implementations. Hide [clj-kondo linter](https://practical.li/clojure/clojure-cli/install/code-analysis.html){target=_blank} warnings for redefined vars (`def`, `defn`) when using this approach.
73
+
Rich comment blocks are very useful for rapidly iterating over different design decisions by including the same function but with different implementations.
74
74
75
-
```clojure
76
-
;; Rich comment block with redefined vars ignored
77
-
#_{:clj-kondo/ignore [:redefined-var]}
78
-
(comment
79
-
(defnvalue-added-tax []
80
-
;; algorithm design - first idea)
75
+
Hide [clj-kondo linter](https://practical.li/clojure/reference/code-analysis/){target=_blank} warnings for redefined vars (`def`, `defn`) when using this approach.
81
76
82
-
(defnvalue-added-tax []
83
-
;; algorithm design - second idea)
77
+
!!! EXAMPLE ""
78
+
```clojure
79
+
;; Rich comment block with redefined vars ignored
80
+
#_{:clj-kondo/ignore [:redefined-var]}
81
+
(comment
82
+
(defn value-added-tax []
83
+
;; algorithm design - first idea)
84
+
85
+
(defn value-added-tax []
86
+
;; algorithm design - second idea)
84
87
85
-
) ;; End of rich comment block
86
-
```
88
+
) ;; End of rich comment block
89
+
```
87
90
88
91
The "Rich" in the name is an honourary mention to Rich Hickey, the author and benevolent dictator of Clojure design.
89
92
@@ -113,15 +116,15 @@ Pretty print shows the structure of results from function calls in a human-frien
113
116
Tools to view and navigate code
114
117
115
118
*[:fontawesome-solid-book-open: Cider inspector](https://practical.li/spacemacs/evaluating-clojure/inspect/){target=_blank} is an effective way to navigate nested data and page through large data sets.
*[:fontawesome-solid-book-open: Portal Inspector](https://practical.li/clojure/data-inspector/portal){target=_blank} to visualise many kinds of data in many different forms.
117
120
118
121

119
122
120
123
## Code Style and idiomatic Clojure
121
124
122
125
Clojure aware editors should automatically apply formatting that follows the [:globe_with_meridians: Clojure Style guide](https://github.com/bbatsov/clojure-style-guide){target=_blank}.
Live linting with [:fontawesome-brands-github: clj-kondo](https://github.com/borkdude/clj-kondo){target=_blank} suggests common idioms and highlights a wide range of syntax errors as code is written, minimizing bugs and therefore speeding up the development process.
125
128
126
129

127
130

@@ -140,22 +143,23 @@ Live linting with [clj-kondo](:fontawesome-brands-github: <https://github.com/bo
140
143
141
144
As data structures are identified in REPL experiments, create data specification to validate the keys and value types of that data.
As the public API is designed, specifications for each functions arguments are added to validate the correct data is used when calling those functions.
0 commit comments