Clojure for the brave and true : learn the ultimate language and become a better programmer /


Daniel Higginbotham.
Bok Engelsk 2015 · Electronic books.
Omfang
1 online resource (329 p.)
Utgave
1st edition
Opplysninger
Includes index.. - About the Author ; About the Technical Reviewer ; Brief Contents ; Contents in Detail ; Foreword; Acknowledgments; Introduction; Learning a New Programming Language: A Journey Through the Four Labyrinths; How This Book Is Organized; Part I: Environment Setup; Part II: Language Fundamentals; Part III: Advanced Topics; The Code; The Journey Begins!; Part I: Environment Setup; Chapter 1: Building, Running, and the REPL; First Things First: What Is Clojure?; Leiningen; Creating a New Clojure Project; Running the Clojure Project; Building the Clojure Project; Using the REPL; Clojure Editors. - Chapter 3: Do Things: A Clojure Crash CourseSyntax; Forms; Control Flow; Naming Values with def; Data Structures; Numbers; Strings; Maps; Keywords; Vectors; Lists; Sets; Simplicity; Functions; Calling Functions; Function Calls, Macro Calls, and Special Forms; Defining Functions; Anonymous Functions; Returning Functions; Pulling It All Together; The Shire's Next Top Model; let; loop; Regular Expressions; Symmetrizer; Better Symmetrizer with reduce; Hobbit Violence; Summary; Exercises; Chapter 4: Core Functions in Depth; Programming to Abstractions. - Living with Immutable Data StructuresRecursion Instead of for/while; Function Composition Instead of Attribute Mutation; Cool Things to Do with Pure Functions; comp; memoize; Peg Thing; Playing; Code Organization; Creating the Board; Moving Pegs; Rendering and Printing the Board; Player Interaction; Summary; Exercises; Chapter 6: Organizing Your Project: A Librarian's Tale; Your Project as a Library; Storing Objects with def; Creating and Switching to Namespaces; refer; alias; Real Project Organization; The Relationship Between File Paths and Namespace Names; Requiring and Using Namespaces. - SummaryChapter 2: How to Use Emacs, an Excellent Clojure Editor; Installation; Configuration; Emacs Escape Hatch; Emacs Buffers; Working with Files; Key Bindings and Modes; Emacs Is a Lisp Interpreter; Modes; Installing Packages; Core Editing Terminology and Key Bindings; Point; Movement; Selection with Regions; Killing and the Kill Ring; Editing and Help; Using Emacs with Clojure; Fire Up Your REPL!; Interlude: Emacs Windows and Frames; A Cornucopia of Useful Key Bindings; How to Handle Errors; Paredit; Continue Learning; Summary; Part II: Language Fundamentals. - The ns Macro. - Treating Lists, Vectors, Sets, and Maps as Sequencesfirst, rest, and cons; Abstraction Through Indirection; Seq Function Examples; map; reduce; take, drop, take-while, and drop-while; filter and some; sort and sort-by; concat; Lazy Seqs; Demonstrating Lazy Seq Efficiency; Infinite Sequences ; The Collection Abstraction; into; conj; Function Functions; apply; partial; complement; A Vampire Data Analysis Program for the FWPD; Summary; Exercises; Chapter 5: Functional Programming; Pure Functions: What and Why; Pure Functions Are Referentially Transparent; Pure Functions Have No Side Effects. - Learn simple programming skills to automate everyday computer tasks.
Emner
Sjanger
Dewey
ISBN
1-4571-9001-X. - 1-59327-591-9. - 1-59327-723-7

Bibliotek som har denne