Skip to content

Commit cd231f4

Browse files
committedDec 31, 2024·
regenerate site
1 parent 1597b7c commit cd231f4

File tree

12 files changed

+77
-42
lines changed

12 files changed

+77
-42
lines changed
 

‎articles/cookbooks/date_and_time/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ <h2>Date and Time</h2>
143143
(ydm "20170108")
144144
;; =&gt; #object[java.time.LocalDate 0x4851aa55 "2017-08-01"]
145145
</code></pre><p>For more formatting patterns check out the
146-
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/format/DateTimeFormatter.html">DateTimeFormatter</a>
146+
<a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/format/DateTimeFormatter.html">DateTimeFormatter</a>
147147
class, the table <strong>Predefined Formatters</strong> is where the <code>:iso-date</code> came from
148148
although note it is written as <code>ISO_DATE</code> in the <strong>Formatted</strong> column.</p><p>More basic recipes can be read in the
149149
<a href="https://dm3.github.io/clojure.java-time/README.html">README</a> for

‎articles/cookbooks/files_and_directories/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ <h2>Working with Files and Directories in Clojure</h2>
109109
getParent The dirname of the file.
110110
getPath Filename with directory.
111111
mkdir Create this directory on disk.
112-
</code></pre><p>To read about more available methods, see <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html">the <code>java.io.File</code>
112+
</code></pre><p>To read about more available methods, see <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/File.html">the <code>java.io.File</code>
113113
docs</a>.</p><h3 id="get-a-list-of-the-files-and-dirs-in-a-given-directory">Get a list of the files and dirs in a given directory</h3><p>As <code>File</code> objects:</p><pre><code class="clojure">(.listFiles (io/file "path/to/some-dir"))
114114
</code></pre><p>Same, but just the <em>names</em> (strings), not File objects:</p><pre><code class="clojure">(.list (io/file "path/to/some-dir"))
115115
</code></pre><p>The results of those calls are seqable.</p><h2 id="see-also">See also</h2><ul><li><a href="https://github.com/clj-commons/fs">https://github.com/clj-commons/fs</a></li><li>the I/O section of the <a href="https://clojure.org/api/cheatsheet">cheatsheet</a></li></ul>

‎articles/cookbooks/strings/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ <h2>Strings</h2>
7777
interoperability.</p><p>This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/3.0/">Creative Commons
7878
Attribution 3.0 Unported License</a> (including images &amp;
7979
stylesheets). The source is available <a href="https://github.com/clojure-doc/clojure-doc.github.io">on
80-
Github</a>.</p><h2 id="overview">Overview</h2><ul><li>Strings are <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html">plain Java
80+
Github</a>.</p><h2 id="overview">Overview</h2><ul><li>Strings are <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html">plain Java
8181
strings</a>.
8282
You can use anything which operates on them.</li><li>Java strings are immutable, so they're convenient to use in Clojure.</li><li>You can't add metadata to Java strings.</li><li>Clojure supports some convenient notations:</li></ul><pre><code> "foo" java.lang.String
8383
#"\d" java.util.regex.Pattern (in this case, one which matches a single digit)
8484
\f java.lang.Character (in this case, the letter 'f')
8585
</code></pre><ul><li><strong>Caveat:</strong> Human brains and electronic computers are rather different
86-
devices. So Java strings (sequences of <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Character.html#unicode">UTF-16
86+
devices. So Java strings (sequences of <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Character.html#unicode">UTF-16
8787
characters</a>)
8888
don't always map nicely to user-perceived characters. For example, a
8989
single Unicode "code point" doesn't necessarily equal a user-perceived
@@ -179,7 +179,7 @@ <h2>Strings</h2>
179179
(read-string "#\"[abc]\""))
180180
;=&gt; #"[abc]"
181181
</code></pre><h3 id="parsing-complex-strings">Parsing complex strings</h3><h4 id="regexes">Regexes</h4><p>Regexes offer a boost in string-matching power. You can express ideas
182-
like repetition, alternatives, etc.</p><p><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/regex/Pattern.html">Regex
182+
like repetition, alternatives, etc.</p><p><a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/regex/Pattern.html">Regex
183183
reference.</a></p><p><strong>Groups:</strong> Regex groups are useful, when we want to match more than
184184
one substring. (Or refer to matches later.) In the regex <code>#"(group-1) (group-2)"</code>, the 0th group is the whole match. The 1st group is
185185
started by the left-most <code>(</code>, the 2nd group is started by the
@@ -291,7 +291,7 @@ <h2>Strings</h2>
291291
(print "...")))
292292
;=&gt; "We have shrimp-kabobs, shrimp creole, shrimp gumbo..."
293293
</code></pre><h4 id="format-strings">Format strings</h4><p>Java's templating mini-language helps you build many strings
294-
conveniently. <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Formatter.html">Reference.</a></p><pre><code class="clojure">;; %s is most commonly used to print args. Escape %'s with %%.
294+
conveniently. <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Formatter.html">Reference.</a></p><pre><code class="clojure">;; %s is most commonly used to print args. Escape %'s with %%.
295295
(format "%s enjoyed %s%%." "Mozambique" 19.8) ;=&gt; "Mozambique enjoyed 19.8%."
296296

297297
;; The 1$ prefix allows you to keep referring to the first arg.

‎articles/ecosystem/community/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ <h2>Clojure Community</h2>
6363
</div>
6464

6565
<p>This guide covers:</p><ul><li>Online Communities</li><li>The Official Clojure mailing lists</li><li>IRC channel</li><li>Documentation sites</li><li>Clojure User Groups around the globe</li><li>Conferences about or related to Clojure</li><li>Various Community sites about Clojure (subreddit, etc)</li></ul><p>This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>
66-
(including images &amp; stylesheets). The source is available <a href="https://github.com/clojure-doc/clojure-doc.github.io">on Github</a>.</p><h2 id="online-communities">Online Communities</h2><ul><li><a href="https://clojurians.slack.com">Clojurians Slack</a> -- currently the most active online community, generously sponsored by Salesforce (owners of Slack) -- <a href="http://clojurians.net">self-signup at clojurians.net</a> -- <a href="https://clojurians-log.clojureverse.org/">partial archive of channels</a> (via <code>@logbot</code> on Slack)</li><li><a href="https://clojurians.zulipchat.com/">Clojurians Zulip</a> -- free, open source community, includes an archive of most channels from the Clojurians Slack (via <code>@zulip-mirror-bot</code> on Slack)</li><li><a href="https://www.reddit.com/r/Clojure/">Clojure SubReddit</a> -- r/Clojure -- the right-hand sidebar has links to many Clojure resources</li><li><a href="https://clojureverse.org">ClojureVerse</a> -- online forum</li><li><a href="https://ask.clojure.org/">Clojure Q&amp;A</a> -- the official Clojure question and answer site</li><li><a href="https://discord.gg/discljord">Clojurians Discord</a></li><li><a href="https://clj.social/">clj.social</a> -- a Clojure-specific Mastodon instance</li><li><a href="https://clojure.camp/">Clojure Camp</a> -- aimed at Clojure beginners, this offers a fun community of mentors and fellow learners, via Discord, Meetup.com, and offers study groups, pairing, and 1:1 mentoring</li><li>See also the <a href="https://clojure.org/community/resources">Clojure Discussion section on clojure.org</a> for more online communities</li></ul><h2 id="clojure-mailing-list">Clojure Mailing List</h2><ul><li><a href="https://groups.google.com/g/clojure">Clojure users mailing list</a> -- this is the original and still occasionally active mailing list for Clojure users</li></ul><h2 id="clojure-irc-channels">Clojure IRC Channels</h2><ul><li><code>#clojure</code> on <a href="https://libera.chat">Libera.Chat</a></li></ul><h2 id="documentation">Documentation</h2><ul><li>Official <a href="https://clojure.org/guides/getting_started">clojure.org Guides</a></li><li>Official <a href="https://clojure.org/reference/reader">clojure.org Reference documentation</a></li><li>Official <a href="https://clojure.org/api/api">clojure.org API documentation</a></li><li><a href="https://clojuredocs.org/">ClojureDocs</a>: Clojure API reference, with examples</li><li><a href="https://clojure-doc.org/">Clojure-Doc</a>: Clojure tutorials, cookbooks, etc</li><li><a href="https://clojure.org/api/cheatsheet">Clojure API Cheatsheet</a> (hosted on clojure.org)</li><li>Community <a href="https://guide.clojure.style/">Clojure Style Guide</a></li><li><a href="http://clojurekoans.com/">Clojure Koans</a></li><li><a href="http://www.getclojure.org">GetClojure</a>: Tens of thousands of searchable Clojure examples mined from all over the internet.</li></ul><h2 id="books">Books</h2><ul><li>See the list of <a href="https://clojure.org/community/books">books on clojure.org</a></li></ul><h2 id="courses">Courses</h2><ul><li>See the list of <a href="https://www.clojure.org/community/training">courses and training on clojure.org</a></li></ul><h2 id="user-groups">User Groups</h2><ul><li>The list of <a href="https://clojure.org/community/user_groups">Clojure User Groups</a> around the world</li><li><a href="https://clojure.org/community/start_group">How to run your own Clojure User Group</a></li></ul><h2 id="videos-about-clojure">Videos About Clojure</h2><p>Videos of talks about Clojure are often made available on <a href="https://www.infoq.com/clojure">InfoQ</a>, and <a href="https://www.youtube.com/user/ClojureTV">Clojure YouTube channel</a>. In addition, here are some other video learning resources:</p><ul><li><a href="https://vimeo.com/channels/fulldisclojure/videos">Full Disclojure</a> is a series of screencasts about Clojure</li><li><a href="https://pluralsight.com/training/Courses/TableOfContents/clojure-concurrency-tutorial">Clojure Concurrency Tutorial</a></li><li><a href="https://www.oreilly.com/library/view/clojure-inside-out/9781449368647/">Clojure Inside Out</a> from O'Reilly</li><li><a href="https://www.youtube.com/playlist?list=PL1p6TgkbKXqyOwq6iSkce_EY5YWFHciHt">Clojure Koans Walkthroughs</a></li><li><a href="https://ericnormand.me/">Eric Normand</a></li><li><a href="https://tbaldridge.pivotshare.com/">Clojure Tutorials by Tim Baldridge</a></li><li><a href="https://www.youtube.com/practicalli">Practicalli YouTube Channel</a> -- including <a href="https://www.youtube.com/playlist?list=PLpr9V-R8ZxiDjyU7cQYWOEFBDR1t7t0wv">Learning Clojure with Practicalli</a></li></ul><h2 id="podcasts-about-clojure">Podcasts About Clojure</h2><ul><li><a href="https://cognitect.com/cognicast/">Cognicast</a> by Craig Andera often discusses topics relevant to Clojure and ClojureScript.</li><li><a href="https://clojuredesign.club/">Clojure Design Club</a> by Christoph Neumann and Nate Jones -- Functional Design in Clojure: Group therapy for recovering object-oriented developers.</li><li><a href="https://clojure.stream/podcast">ClojureStream</a> by Jacek Schae -- Explore unusually expressive programming language with Lisp roots that runs on JavaScript, Java Virtual Machine, and CLR.</li><li><a href="https://www.therepl.net/episodes/">The REPL</a> by Daniel Compton -- A weekly newsletter and podcast diving into Clojure programs and libraries.</li><li><a href="https://podcasters.spotify.com/pod/show/lostinlambduhhs/">Lost In Lambduhhs</a> by Jordan Miller -- Featuring interviews with a myriad of guests from all sectors of tech with a special focus on the languages Clojure and Clojurescript</li><li><a href="https://www.parens-of-the-dead.com/">Parens of the Dead</a> by Magnar Sveen and Christian Johansen -- A screencast series of zombie-themed games written with Clojure and ClojureScript</li></ul><h2 id="code-repositories">Code Repositories</h2><p>Most folks host their projects at
66+
(including images &amp; stylesheets). The source is available <a href="https://github.com/clojure-doc/clojure-doc.github.io">on Github</a>.</p><h2 id="online-communities">Online Communities</h2><ul><li><a href="https://clojurians.slack.com">Clojurians Slack</a> -- currently the most active online community, generously sponsored by Salesforce (owners of Slack) -- <a href="http://clojurians.net">self-signup at clojurians.net</a> -- <a href="https://clojurians-log.clojureverse.org/">partial archive of channels</a> (via <code>@logbot</code> on Slack)</li><li><a href="https://clojurians.zulipchat.com/">Clojurians Zulip</a> -- free, open source community, includes an archive of most channels from the Clojurians Slack (via <code>@zulip-mirror-bot</code> on Slack)</li><li><a href="https://www.reddit.com/r/Clojure/">Clojure SubReddit</a> -- r/Clojure -- the right-hand sidebar has links to many Clojure resources</li><li><a href="https://clojureverse.org">ClojureVerse</a> -- online forum</li><li><a href="https://ask.clojure.org/">Clojure Q&amp;A</a> -- the official Clojure question and answer site</li><li><a href="https://discord.gg/discljord">Clojurians Discord</a></li><li><a href="https://clj.social/">clj.social</a> -- a Clojure-specific Mastodon instance</li><li><a href="https://clojure.camp/">Clojure Camp</a> -- aimed at Clojure beginners, this offers a fun community of mentors and fellow learners, via Discord, Meetup.com, and offers study groups, pairing, and 1:1 mentoring</li><li>See also the <a href="https://clojure.org/community/resources">Clojure Discussion section on clojure.org</a> for more online communities</li></ul><h2 id="clojure-mailing-list">Clojure Mailing List</h2><ul><li><a href="https://groups.google.com/g/clojure">Clojure users mailing list</a> -- this is the original and still occasionally active mailing list for Clojure users</li></ul><h2 id="clojure-irc-channels">Clojure IRC Channels</h2><ul><li><code>#clojure</code> on <a href="https://libera.chat">Libera.Chat</a></li></ul><h2 id="documentation">Documentation</h2><ul><li>Official <a href="https://clojure.org/guides/getting_started">clojure.org Guides</a></li><li>Official <a href="https://clojure.org/reference/reader">clojure.org Reference documentation</a></li><li>Official <a href="https://clojure.org/api/api">clojure.org API documentation</a></li><li><a href="https://clojuredocs.org/">ClojureDocs</a>: Clojure API reference, with examples</li><li><a href="https://clojure-doc.org/">Clojure-Doc</a>: Clojure tutorials, cookbooks, etc</li><li><a href="https://clojure.org/api/cheatsheet">Clojure API Cheatsheet</a> (hosted on clojure.org)</li><li>Community <a href="https://guide.clojure.style/">Clojure Style Guide</a></li><li><a href="http://clojurekoans.com/">Clojure Koans</a></li><li><a href="http://www.getclojure.org">GetClojure</a>: Tens of thousands of searchable Clojure examples mined from all over the internet.</li></ul><h2 id="books">Books</h2><ul><li>See the list of <a href="https://clojure.org/community/books">books on clojure.org</a></li></ul><h2 id="courses">Courses</h2><ul><li>See the list of <a href="https://clojure.org/community/training">courses and training on clojure.org</a></li></ul><h2 id="user-groups">User Groups</h2><ul><li>The list of <a href="https://clojure.org/community/user_groups">Clojure User Groups</a> around the world</li><li><a href="https://clojure.org/community/start_group">How to run your own Clojure User Group</a></li></ul><h2 id="videos-about-clojure">Videos About Clojure</h2><p>Videos of talks about Clojure are often made available on <a href="https://www.infoq.com/clojure">InfoQ</a>, and <a href="https://www.youtube.com/user/ClojureTV">Clojure YouTube channel</a>. In addition, here are some other video learning resources:</p><ul><li><a href="https://vimeo.com/channels/fulldisclojure/videos">Full Disclojure</a> is a series of screencasts about Clojure</li><li><a href="https://pluralsight.com/training/Courses/TableOfContents/clojure-concurrency-tutorial">Clojure Concurrency Tutorial</a></li><li><a href="https://www.oreilly.com/library/view/clojure-inside-out/9781449368647/">Clojure Inside Out</a> from O'Reilly</li><li><a href="https://www.youtube.com/playlist?list=PL1p6TgkbKXqyOwq6iSkce_EY5YWFHciHt">Clojure Koans Walkthroughs</a></li><li><a href="https://ericnormand.me/">Eric Normand</a></li><li><a href="https://tbaldridge.pivotshare.com/">Clojure Tutorials by Tim Baldridge</a></li><li><a href="https://www.youtube.com/practicalli">Practicalli YouTube Channel</a> -- including <a href="https://www.youtube.com/playlist?list=PLpr9V-R8ZxiDjyU7cQYWOEFBDR1t7t0wv">Learning Clojure with Practicalli</a></li></ul><h2 id="podcasts-about-clojure">Podcasts About Clojure</h2><ul><li><a href="https://cognitect.com/cognicast/">Cognicast</a> by Craig Andera often discusses topics relevant to Clojure and ClojureScript.</li><li><a href="https://clojuredesign.club/">Clojure Design Club</a> by Christoph Neumann and Nate Jones -- Functional Design in Clojure: Group therapy for recovering object-oriented developers.</li><li><a href="https://clojure.stream/podcast">ClojureStream</a> by Jacek Schae -- Explore unusually expressive programming language with Lisp roots that runs on JavaScript, Java Virtual Machine, and CLR.</li><li><a href="https://www.therepl.net/episodes/">The REPL</a> by Daniel Compton -- A weekly newsletter and podcast diving into Clojure programs and libraries.</li><li><a href="https://podcasters.spotify.com/pod/show/lostinlambduhhs/">Lost In Lambduhhs</a> by Jordan Miller -- Featuring interviews with a myriad of guests from all sectors of tech with a special focus on the languages Clojure and Clojurescript</li><li><a href="https://www.parens-of-the-dead.com/">Parens of the Dead</a> by Magnar Sveen and Christian Johansen -- A screencast series of zombie-themed games written with Clojure and ClojureScript</li></ul><h2 id="code-repositories">Code Repositories</h2><p>Most folks host their projects at
6767
<a href="https://github.com/search?l=Clojure&amp;q=clojure&amp;type=Repositories">GitHub</a>, and most pure Clojure
6868
library distributions (with the exception of Contrib) are available at
6969
<a href="https://clojars.org/">Clojars</a>.</p><h2 id="websites">Websites</h2><ul><li><a href="https://clojure.org/">Clojure.org</a>: the official website</li><li><a href="https://planet.clojure.in/">Planet Clojure</a>: aggregator of selected Clojure-related blog posts</li><li><a href="https://www.clojure-toolbox.com/">The Clojure Toolbox</a>: a categorized directory of libraries and tools for Clojure</li><li><a href="https://4clojure.oxal.org/">4Clojure</a>: Clojure exercise problems</li><li><a href="https://exercism.io/">Exercism.io</a>: Peer-reviewed Clojure exercises</li></ul><h2 id="conferences">Conferences</h2><p>See <a href="https://clojure.org/community/resources#_conferences">Community &gt; Resources &gt; Conferences on clojure.org</a>.</p><h2 id="email-newsletters">Email Newsletters</h2><ul><li><a href="http://www.clojuregazette.com/">Clojure Gazette</a></li><li><a href="http://defnewsletter.com/">(def newsletter)</a></li></ul><h2 id="workshops">Workshops</h2><ul><li><a href="http://www.clojurebridge.org/">ClojureBridge</a></li></ul><h2 id="core-development">Core development</h2><p>See the <a href="https://clojure.org/dev/dev">Clojure &gt; Development on clojure.org</a> for full details on

0 commit comments

Comments
 (0)
Please sign in to comment.