Join Arthur Ulfeldt for an in-depth discussion in this video Namespaces, part of Learning Clojure.
- Namespaces are another feature…that I've been talking about a whole lot…throughout this course without actually defining.…To put it briefly, namespaces are where vars live.…When you define a var, it goes into a namespace.…And you can reference a var by either typing…out the whole namespace name slash the var name,…or just if you're in that namespace,…just giving the var's name as a symbol.…Interning is a word used to describe,…in a lot of the Clojure documentation,…to describe adding a var to a namespace.…
And that's all it is.…It's not actually a var that has…to fetch coffee for the other vars…because it's just getting into the namespace.…Namespaces play a critical role…in how your program starts.…You can require a namespace…by saying require and either giving the namespace…inside of a set of vectors, which is the preferred form,…or doing just require and the namespace's name.…Note the quotes in both cases.…We don't want to evaluate the namespace.…So, requiring is important, because this is the thing…that causes the namespace to get loaded.…
Arthur Ulfeldt covers the Leiningen build tool and setting up Clojure to work with the IntelliJ IDEA dev environment. He then reviews the basics of the syntax, including functions, expressions, values, macros, strings, and conditionals. He shows how to structure, compile, and deploy Clojure projects in Leiningen, and pull from Clojure's core library. In the final chapters, Arthur explores references and namespaces and points to resources to learn more about Clojure.
- Installing Leiningen
- Configuring IntelliJ IDEA
- Using REPLs to execute code
- Working with simple and composite values
- Mastering Clojure macros
- Exploring Clojure syntax
- Building a Clojure project with Leiningen
- Mapping, filtering, and reducing
- Binding and destructuring data
- Working with identities
Skill Level Intermediate
Java Essential Training for Studentswith Peggy Fisher3h 6m Intermediate
1. First Look at Clojure
2. Exploring the Syntax of Clojure
Conditionals and special forms10m 27s
3. Evaluating Forms
4. Clojure Projects and Leiningen
5. The Core Library
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.