reklama - zainteresowany?

Clojure Programming. Practical Lisp for the Java World - Helion

Clojure Programming. Practical Lisp for the Java World
ebook
Autor: Chas Emerick, Brian Carper, Christophe Grand
ISBN: 978-14-493-3534-2
stron: 630, Format: ebook
Data wydania: 2012-03-30
Księgarnia: Helion

Cena książki: 160,65 zł (poprzednio: 186,80 zł)
Oszczędzasz: 14% (-26,15 zł)

Dodaj do koszyka Clojure Programming. Practical Lisp for the Java World

Tagi: Java - Programowanie

Clojure is a practical, general-purpose language that offers expressivity rivaling other dynamic languages like Ruby and Python, while seamlessly taking advantage of Java libraries, services, and all of the resources of the JVM ecosystem. This book helps you learn the fundamentals of Clojure with examples relating it to the languages you know already, in the domains and topics you work with every day. See how this JVM language can help eliminate unnecessary complexity from your programming practice and open up new options for solving the most challenging problems.



Clojure Programming demonstrates the language’s flexibility by showing how it can be used for common tasks like web programming and working with databases, up through more demanding applications that require safe, effective concurrency and parallelism, data analysis, and more. This in-depth look helps tie together the full Clojure development experience, from how to organize your project and an introduction to Clojure build tooling, to a tutorial on how to make the most of Clojure’s REPL during development, and how to deploy your finished application in a cloud environment.



  • Learn how to use Clojure while leveraging your investment in the Java platform
  • Understand the advantages of Clojure as an efficient Lisp for the JVM
  • See how Clojure is used today in several practical domains
  • Discover how Clojure eliminates the need for many verbose and complicated design patterns
  • Deploy large or small web applications to the cloud with Clojure

Dodaj do koszyka Clojure Programming. Practical Lisp for the Java World

 

Osoby które kupowały "Clojure Programming. Practical Lisp for the Java World", wybierały także:

  • Metoda dziel i zwyci
  • JÄ™zyk C. Kurs video. Praktyczne wprowadzenie do programowania
  • Wprowadzenie do Javy. Programowanie i struktury danych. Wydanie XII
  • Spring i Spring Boot. Kurs video. Testowanie aplikacji i bezpiecze
  • Maven. Kurs video. Automatyzacja tworzenia aplikacji w Javie

Dodaj do koszyka Clojure Programming. Practical Lisp for the Java World

Spis treści

Clojure Programming. Practical Lisp for the Java World eBook -- spis treści

  • Clojure Programming
  • Preface
    • Who Is This Book For?
      • Engaged Java Developers
      • Ruby, Python, and Other Developers
    • How to Read This Book
      • Start with Practical Applications of Clojure
      • Start from the Ground Up with Clojures Foundational Concepts
    • Whos We?
      • Chas Emerick
      • Brian Carper
      • Christophe Grand
    • Acknowledgments
      • And Last, but Certainly Far from Least
    • Conventions Used in This Book
    • Using Code Examples
    • Safari Books Online
    • How to Contact Us
  • 1. Down the Rabbit Hole
    • Why Clojure?
    • Obtaining Clojure
    • The Clojure REPL
    • No, Parentheses Actually Wont Make You Go Blind
    • Expressions, Operators, Syntax, and Precedence
    • Homoiconicity
    • The Reader
      • Scalar Literals
        • Strings
        • Booleans
        • nil
        • Characters
        • Keywords
        • Symbols
        • Numbers
        • Regular expressions
      • Comments
      • Whitespace and Commas
      • Collection Literals
      • Miscellaneous Reader Sugar
    • Namespaces
    • Symbol Evaluation
    • Special Forms
      • Suppressing Evaluation: quote
      • Code Blocks: do
      • Defining Vars: def
      • Local Bindings: let
      • Destructuring (let, Part 2)
        • Sequential destructuring
        • Map destructuring
      • Creating Functions: fn
        • Destructuring function arguments
        • Function literals
      • Conditionals: if
      • Looping: loop and recur
      • Referring to Vars: var
      • Java Interop: . and new
      • Exception Handling: try and throw
      • Specialized Mutation: set!
      • Primitive Locking: monitor-enter and monitor-exit
    • Putting It All Together
      • eval
    • This Is Just the Beginning
  • I. Functional Programming and Concurrency
    • 2. Functional Programming
      • What Does Functional Programming Mean?
      • On the Importance of Values
        • About Values
        • Comparing Values to Mutable Objects
        • A Critical Choice
      • First-Class and Higher-Order Functions
        • Applying Ourselves Partially
      • Composition of Function(ality)
        • Writing Higher-Order Functions
        • Building a Primitive Logging System with Composable Higher-Order Functions
      • Pure Functions
        • Why Are Pure Functions Interesting?
      • Functional Programming in the Real World
    • 3. Collections and Data Structures
      • Abstractions over Implementations
        • Collection
        • Sequences
          • Sequences are not iterators
          • Sequences are not lists
          • Creating seqs
          • Lazy seqs
          • Head retention
        • Associative
          • Beware of nil values
        • Indexed
        • Stack
        • Set
        • Sorted
          • Comparators and predicates to define ordering
      • Concise Collection Access
        • Idiomatic Usage
        • Collections and Keys and Higher-Order Functions
      • Data Structure Types
        • Lists
        • Vectors
          • Vectors as tuples
        • Sets
        • Maps
          • Maps as ad-hoc structs
          • Other usages of maps
      • Immutability and Persistence
        • Persistence and Structural Sharing
          • Visualizing persistence: lists
          • Visualizing persistence: maps (and vectors and sets)
          • Tangible benefits
        • Transients
      • Metadata
      • Putting Clojures Collections to Work
        • Identifiers and Cycles
        • Thinking Different: From Imperative to Functional
          • Revisiting a classic: Conways Game of Life
          • Maze generation
        • Navigation, Update, and Zippers
          • Manipulating zippers
          • Custom zippers
          • Ariadnes zipper
      • In Summary
    • 4. Concurrency and Parallelism
      • Shifting Computation Through Time and Space
        • Delays
        • Futures
        • Promises
      • Parallelism on the Cheap
      • State and Identity
      • Clojure Reference Types
      • Classifying Concurrent Operations
      • Atoms
      • Notifications and Constraints
        • Watches
        • Validators
      • Refs
        • Software Transactional Memory
        • The Mechanics of Ref Change
          • Understanding alter
          • Minimizing transaction conflict with commute
          • Clobbering ref state with ref-set
          • Enforcing local consistency by using validators
        • The Sharp Corners of Software Transactional Memory
          • Side-effecting functions strictly verboten
          • Minimize the scope of each transaction
          • Readers may retry
          • Write skew
      • Vars
        • Defining Vars
          • Private vars
          • Docstrings
          • Constants
        • Dynamic Scope
        • Vars Are Not Variables
        • Forward Declarations
      • Agents
        • Dealing with Errors in Agent Actions
          • Agent error handlers and modes
        • I/O, Transactions, and Nested Sends
          • Persisting reference states with an agent-based write-behind log
          • Using agents to parallelize workloads
      • Using Javas Concurrency Primitives
        • Locking
      • Final Thoughts
  • II. Building Abstractions
    • 5. Macros
      • What Is a Macro?
        • What Macros Are Not
        • What Can Macros Do that Functions Cannot?
        • Macros Versus Ruby eval
      • Writing Your First Macro
      • Debugging Macros
        • Macroexpansion
      • Syntax
        • quote Versus syntax-quote
        • unquote and unquote-splicing
      • When to Use Macros
      • Hygiene
        • Gensyms to the Rescue
        • Letting the User Pick Names
        • Double Evaluation
      • Common Macro Idioms and Patterns
      • The Implicit Arguments: &env and &form
        • &env
        • &form
          • Producing useful macro error messages
          • Preserving user-provided type hints
        • Testing Contextual Macros
      • In Detail: -> and ->>
      • Final Thoughts
    • 6. Datatypes and Protocols
      • Protocols
      • Extending to Existing Types
      • Defining Your Own Types
        • Records
          • Constructors and factory functions
          • When to use maps or records
        • Types
      • Implementing Protocols
        • Inline Implementation
          • Inline implementations of Java interfaces
          • Defining anonymous types with reify
        • Reusing Implementations
      • Protocol Introspection
      • Protocol Dispatch Edge Cases
      • Participating in Clojures Collection Abstractions
      • Final Thoughts
    • 7. Multimethods
      • Multimethods Basics
      • Toward Hierarchies
      • Hierarchies
        • Independent Hierarchies
      • Making It Really Multiple!
      • A Few More Things
        • Multiple Inheritance
        • Introspecting Multimethods
        • type Versus class; or, the Revenge of the Map
        • The Range of Dispatch Functions Is Unlimited
      • Final Thoughts
  • III. Tools, Platform, and Projects
    • 8. Organizing and Building Clojure Projects
      • Project Geography
        • Defining and Using Namespaces
          • Namespaces and files
          • A classpath primer
        • Location, Location, Location
        • The Functional Organization of Clojure Codebases
          • Basic project organization principles
      • Build
        • Ahead-of-Time Compilation
        • Dependency Management
        • The Maven Dependency Management Model
          • Artifacts and coordinates
          • Repositories
          • Dependencies
        • Build Tools and Configuration Patterns
          • Maven
          • Leiningen
          • AOT compilation configuration
          • Building mixed-source projects
      • Final Thoughts
    • 9. Java and JVM Interoperability
      • The JVM Is Clojures Foundation
      • Using Java Classes, Methods, and Fields
      • Handy Interop Utilities
      • Exceptions and Error Handling
        • Escaping Checked Exceptions
        • with-open, finallys Lament
      • Type Hinting for Performance
      • Arrays
      • Defining Classes and Implementing Interfaces
        • Instances of Anonymous Classes: proxy
        • Defining Named Classes
          • gen-class
        • Annotations
          • Producing annotated JUnit tests
          • Implementing JAX-RS web service endpoints
      • Using Clojure from Java
        • Using deftype and defrecord Classes
        • Implementing Protocol Interfaces
      • Collaborating Partners
    • 10. REPL-Oriented Programming
      • Interactive Development
        • The Persistent, Evolving Environment
      • Tooling
        • The Bare REPL
          • Introspecting namespaces
        • Eclipse
        • Emacs
          • clojure-mode and paredit
          • inferior-lisp
          • SLIME
      • Debugging, Monitoring, and Patching Production in the REPL
        • Special Considerations for Deployed REPLs
      • Limitations to Redefining Constructs
      • In Summary
  • IV. Practicums
    • 11. Numerics and Mathematics
      • Clojure Numerics
        • Clojure Prefers 64-bit (or Larger) Representations
        • Clojure Has a Mixed Numerics Model
        • Rationals
        • The Rules of Numeric Contagion
      • Clojure Mathematics
        • Bounded Versus Arbitrary Precision
        • Unchecked Ops
        • Scale and Rounding Modes for Arbitrary-Precision Decimals Ops
      • Equality and Equivalence
        • Object Identity (identical?)
        • Reference Equality (=)
        • Numeric Equivalence (==)
          • Equivalence can preserve your sanity
      • Optimizing Numeric Performance
        • Declare Functions to Take and Return Primitives
          • Type errors and warnings
        • Use Primitive Arrays Judiciously
          • The mechanics of primitive arrays
          • Automating type hinting of multidimensional array operations
      • Visualizing the Mandelbrot Set in Clojure
    • 12. Design Patterns
      • Dependency Injection
      • Strategy Pattern
      • Chain of Responsibility
      • Aspect-Oriented Programming
      • Final Thoughts
    • 13. Testing
      • Immutable Values and Pure Functions
        • Mocking
      • clojure.test
        • Defining Tests
        • Test Suites
        • Fixtures
      • Growing an HTML DSL
      • Relying upon Assertions
        • Preconditions and Postconditions
    • 14. Using Relational Databases
      • clojure.java.jdbc
        • with-query-results Explained
        • Transactions
        • Connection Pooling
      • Korma
        • Prelude
        • Queries
        • Why Bother with a DSL?
      • Hibernate
        • Setup
        • Persisting Data
        • Running Queries
        • Removing Boilerplate
      • Final Thoughts
    • 15. Using Nonrelational Databases
      • Getting Set Up with CouchDB and Clutch
      • Basic CRUD Operations
      • Views
        • A Simple (JavaScript) View
        • Views in Clojure
      • _changes: Abusing CouchDB as a Message Queue
      • la Carte Message Queues
      • Final Thoughts
    • 16. Clojure and the Web
      • The Clojure Stack
      • The Foundation: Ring
        • Requests and Responses
        • Adapters
        • Handlers
        • Middleware
      • Routing Requests with Compojure
      • Templating
        • Enlive: Selector-Based HTML Transformation
          • Testing the waters
          • Selectors
          • Iterating and branching
          • Putting everything together
      • Final Thoughts
    • 17. Deploying Clojure Web Applications
      • Java and Clojure Web Architecture
        • Web Application Packaging
          • Building .war files with Maven
          • Building .war files with Leiningen
      • Running Web Apps Locally
      • Web Application Deployment
        • Deploying Clojure Apps to Amazons Elastic Beanstalk
      • Going Beyond Simple Web Application Deployment
  • V. Miscellanea
    • 18. Choosing Clojure Type Definition Forms Wisely
    • 19. Introducing Clojure into Your Workplace
      • Just the Facts
      • Emphasize Productivity
      • Emphasize Community
      • Be Prudent
    • 20. Whats Next?
      • (dissoc Clojure JVM)
        • ClojureCLR
        • ClojureScript
      • 4Clojure
      • Overtone
      • core.logic
      • Pallet
      • Avout
      • Clojure on Heroku
  • Index
  • About the Authors
  • Colophon
  • Copyright

Dodaj do koszyka Clojure Programming. Practical Lisp for the Java World

Code, Publish & WebDesing by CATALIST.com.pl



(c) 2005-2024 CATALIST agencja interaktywna, znaki firmowe należą do wydawnictwa Helion S.A.