Code Monkey home page Code Monkey logo

a-functional-approach-to-java's Introduction

A Functional Approach to Java

This is the accompanying repository for the O'Reilly book A Functional Approach to Java.

Book Cover

How To Use

The code and files are split into three categories:

  • JShell
  • Java
  • Other

The actual implementation of the examples might differ from their counterparts in the book to make them easier to use or runnable.

JShell

The examples from the book can mostly be run directly in JShell by either running jshell and pasting the code into it or using a redirect, e.g., jshell < file.java instead.

Some code, however, demonstrates invalid code, and either throws Exceptions or won't compile at all.

Even though most of the import statements aren't required, they are still there to ensure everything works, regardless of your JShell configuration, or if you want to use the code in your favorite IDE.

Java

There are two types of examples in the folder java. Runnable examples often wrap multiple types into a singular class with a public static void main method to run the actual code. Other files are representations of certain designs and as such not runnable on their own.

Since Java 11, you don't need to compile the file beforehand, e.g., javac ExampleFile.java and then java ExampleFile. Instead, java ExampleFile.java compiles and runs it in a single step.

Other Files

The other examples are mostly non-Java languages and partial Java code that's non-runnable or incomplete.

Chapter 14 is an exception, as it's a Gradle-project with dedicated tasks for each example. See its README.md for more info.

Buying the book

Besides using the O'Reilly Learning Platform, you can buy a paperback version of the book at your favorite store. Here are a few direct links to US stores:

ISBN-10: 1098109929
ISBN-13: 9781098109929

a-functional-approach-to-java's People

Contributors

benweidig avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.