Clojure For Beginners (Programming Language)
- Description
- Curriculum
- FAQ
- Reviews
Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy. In this course, I’m going to run you through the most basic and simple concepts of the language. We’re going to be covering things like the print command, commenting, data types, string library, math library, sets, functions, conditionals, etc.
It’s all easy stuff especially if you already know how to code in another language. But, if you don’t, that’s perfectly fine as well. I’m going to be explaining everything as simply as possible, and anyone can easily understand the things discussed in each lecture of this course. It’ll be a breeze.
Most importantly, in this course, we’re going to dive right into the code without spending anytime on installations, since we’re going to use an online IDE. This way you can start practicing and checking out the code right away and skip the annoying time-consuming experience of setting up your environment. You can even use a tablet or smartphone.
Clojure is a nice fun language to learn. It’s syntax is different from many other languages. It’s unique take on presentation and code is something that a lot of people find appealing. This course is ideal for beginners learning to code, and for people who know other languages and want a quick introduction to Clojure’s Core Syntax.
-
1Online IDE, ReplitVideo lesson
Walkthrough explaining how to set up and use the online IDE replit on your desktop or mobile device.
-
2Hello World! New VariablesVideo lesson
-
3What is Clojure?Text lesson
-
4Data TypesVideo lesson
;; DATA TYPES & CHECKS
(def aLong 10 ) ;; -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807
(def aDouble 5.12345) ;; 4.94065645841246544e-324d to 1.79769313486231570e+308d
(def aString "Hello" ) ;; A String
(def aBoolean true ) ;; true or false
(type aLong) ;; Get the data type
(nil? aString) ;; Check if no value (nil)
(pos? aLong) ;; Check if a value is positive
(neg? aLong) ;; Check if a number is negative
;;NOTES:
; 1. Types are assigned based on the value assigned
-
5Formatted OutputVideo lesson
;; VARIABLES
(def aLong 100 )
(def aDouble 5.12345 )
(def aString "Hello" )
(def aBool true )
;; FORMATTED OUTPUT
(format "This is a string %s" aBool)
(format "Add n spaces: %7d" aLong)
(format " x digits with leading zeros %05d" aLong)
(format "%-5d left justified and spaces" aLong)
(format "Set n decimal places %.3f" aDouble)

External Links May Contain Affiliate Links read more