# Clojure by Example (2015)

**URL:** <https://forum.devtalk.com/t/clojure-by-example-2015/10011>\
**Category:** Blogs/Articles/Talks/Podcasts\
**Tags:** clojure\
**Created:** [29 May 2021 14:01 UTC](https://forum.devtalk.com/t/clojure-by-example-2015/10011 "2021-05-29T14:01:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CommunityNews](https://forum.devtalk.com/user_avatar/forum.devtalk.com/communitynews/32/1113_2.png) [@CommunityNews](https://forum.devtalk.com/u/CommunityNews)\
**Post date:** [29 May 2021 14:01 UTC](https://forum.devtalk.com/t/clojure-by-example-2015/10011/1 "2021-05-29T14:01:51Z")

</div>

> I don’t like reading thick O’Reilly books when I start learning new programming languages. Rather, I like starting by writing small and dirty code. If you take this approach, having many simple code examples are extremely helpful because I can find answers to these questions very easily.
> 
> _How can I define a function?_
> 
> _What’s the syntax for if and else?_
> 
> _Does the language support string interpolation?_
> 
> _What scopes of variables are available?_
> 
> These are very basic questions, but enough to start hacking with the new languages.

Read in full here:

[https://kimh.github.io/clojure-by-example/#about](https://kimh.github.io/clojure-by-example/#about)

_This thread was posted by one of our members via one of our news source trackers._

---

<div class="post-metadata">

**Author:** ![davearonson](https://forum.devtalk.com/user_avatar/forum.devtalk.com/davearonson/32/591_2.png) [@davearonson](https://forum.devtalk.com/u/davearonson)\
**Post date:** [3 June 2021 12:02 UTC](https://forum.devtalk.com/t/clojure-by-example-2015/10011/3 "2021-06-03T12:02:39Z")

</div>

Relevant not so much to the whole page, but to the snippet shown above: I read something recently, that I can’t find now, about a small set of questions (eleven, I think) to determine the grammar of a human language. It included things like how plurals are formed, whether adjectives come before or after the noun, how questions are asked, etc. etc. etc. Perhaps a similar set of “questions” could be formed for computer languages, whether “how does one do this tiny bit of functionality”, or specs for a tiny application, like an exercise off Exercism.
