Explore all newline lessons
lesson
Threading Macros in Clojure - Thread-Last vs Thread-First vs AsTinycanva: Clojure for React DevelopersNested calls can become hard to manage. Threading macros help us take control. In this chapter, we'll learn about the concept of threading macros and study three commonly-used versions.
lesson
Sequence OperationsTinycanva: Clojure for React DevelopersClojure sequences are abstract. In this chapter, we'll make sense of what exactly we mean by that, and learn about common operations.
lesson
Clojure Functions - Definitions, Distinctions, and ExamplesTinycanva: Clojure for React DevelopersThere are many ways to define a function and parse arguments. In this chapter, we'll learn more about function definition, destructuring and some helpful higher-order functions.
lesson
Atoms in Clojure - How to Create and Manipulate ThemTinycanva: Clojure for React DevelopersAtoms are thread-safe containers for handling mutable state. In this chapter, we'll learn how to create and manipulate atoms. We'll also learn how to hook into an atom's lifecycle and execute side-effects.
lesson
Clojure Conditionals - Understanding Flow Control OperatorsTinycanva: Clojure for React DevelopersClojure offers many control flow conditionals, like if-else blocks. In this chapter, we'll study the API of a few such methods.
lesson
A Clojure Beginner's Guide to Structural Editing with PareditTinycanva: Clojure for React DevelopersParedit is a tool to help with structural editing. It helps you write and modify S-Expressions with so much ease that the brackets will almost disappear! In this chapter, we'll learn fundamental Paredit commands.
lesson
An Introduction to Clojure REPL and Evaluating Code InlineTinycanva: Clojure for React DevelopersThe REPL is an essential element of a Lisper's toolkit. In this chapter, we'll solidify our grasp of the REPL and editor integration. We'll also learn about some problems that come with the REPL.
lesson
Getting Familiar With The Shadow CLJS APITinycanva: Clojure for React DevelopersOur first project is now in place. In this chapter, we'll learn how to build and run it. We'll also explore some other build targets and explore Shadow with Reagent, a ClojureScript wrapper to React.
lesson
How to Set Up a Shadow CLJS Project From ScratchTinycanva: Clojure for React DevelopersEnough talking, let's create a new repository and set up a project from scratch, using Shadow CLJS.
lesson
Clojure Build Tools - Leiningen, Boot, Shadow CLJS & FigwheelTinycanva: Clojure for React DevelopersSince Clojure is hosted, it can tap into ecosystems of other languages. This has led to multiple build tools for different ecosystems. Choosing the right build tool might get tough for a beginner as the pros and cons might not be known. In this module, we'll learn about the general state of build tools in Clojure and choose the right tool for our project.
lesson
What is Syntaxlessness? How to Write More Expressive CodeTinycanva: Clojure for React DevelopersC-style languages invisibly impose a syntax, whereas Lisps do not. This makes Lisps more expressive and easier to grasp.
lesson
Clojure Basics - Syntax and Native Data TypesTinycanva: Clojure for React DevelopersLet's get our hands dirty with native data types and common operations.