Java everywhere
Java everywhere
$15.00
Minimum price
$19.00
Suggested price
Java everywhere

This book is 100% complete

Completed on 2016-01-13

About the Book

For a long time Java used to be a really good way to create cross-platform applications. Swing, SWT and the frameworks built on top of them gave us a way to deploy our applications to all relevant devices from a single source. The advent of the iPhone changed that. iOS and Android suddenly put up a barrier that wouldn't let us run our applications there. While initially it didn't matter in the enterprise, these platforms have become more and more important. 

But Java as you download it isn't a solution any more. DukeScript was invented to solve this problem. With it you can create applications that run on almost any device using the same source code.

This is a book to help you with your project. If you're an absolute DukeScript newbie, that's perfect. The book starts by explaining the core concepts and then immediately jumps to practical exercices. We'll go through our sample applications and inspect how they work. Along the way I'll explain the beasic workings and ideas behind the APIs.

This is a living book. That means that new chapters will be added and content will be updated. Once you've bought the book you'll get these updates for free as long as the book exists. If I find any errors I'll try to fix them in a timely manner, and if you spot any errors, let me know! It also means that if you want more detail on something, or if you miss something, you can tell me in the public issue tracker, and I will try to include it, so together we can make our book even better. 

About the Author

Anton Epple
Anton Epple

Anton is a consultant worldwide for a wide variety of companies, ranging from startups to Fortune 500 companies, in many areas, including finance institutions and aerospace. In his spare time, Anton is a member of the NetBeans Dream Team and the organizer of the JayDay developer conference in Munich. In 2013 he joined the Java Champions and received a JavaONE Rockstar Award. In 2014 he received a Duke's Choice Award for his work on DukeScript. 

Table of Contents

  • Preface
    • About this book
    • History
    • How it works
  • Getting started!
    • Prerequisites
    • Developing DukeScript apps with the NetBeans Plugin
    • Creating DukeScript apps with Eclipse
    • Using Maven to create a DukeScript project
    • The Generated Projects
  • Understanding the sample application
    • Running the application
    • The View
    • Binding the View to the Model
    • The Model
    • Putting it all together
  • Debugging a DukeScript application
    • Debugging Java Code
    • Visual Debugging
    • Debugging on Android Devices
    • Debugging on iOS Devices and Emulators
    • Debugging JavaScript Code
    • Debugging JavaScript with firebug-lite
    • Summary
  • Using the Knockout API
    • Model, View, ViewModel (MVVM)
    • The Model
    • The ViewModel
    • The View
    • Defining the ViewModel
    • Summary
  • DukeScript, JSON and the REST
    • Creating the project
    • Running the application
    • The client application
    • Code sharing
    • Parsing JSON
    • Summary
  • Workshop: DukeScript Twitter Client
    • Prerequisites
    • Set up the project
    • DukeScript, JSON and the REST
    • Creating the ViewModel
    • A model for parsing JSON results
    • Create a JSON Endpoint
    • Adding Functions for the UI
    • Observing Property changes
    • Initializing the model
    • The View
  • Separating View and ViewModel in practice
    • The state of UI Development
    • The Setup
    • Finding the right Designer
    • Working with the design
    • The result
    • Responsive Design with CSS
    • New CSS3 units vh and vw
  • Testing
    • Unit Tests
    • Test Driven Development means “Test first”
    • Is your UI Toolkit Test friendly?
    • DukeScript to the rescue
    • A little example - Unit Testing a viewmodel
    • Unit testing server communication
    • @OnReceive with Plain Text
    • Type-safe Access to Received JSON Data
    • Dealing with JSON Arrays
    • Summary
  • Deploying to the App Stores
    • Deploying to the Google App store
    • Deploying to the Apple Store
    • Summary
  • Creating a new API
    • Some examples
    • HTML5 Canvas
    • The @JavaScriptBody Annotation
    • The @JavaScriptResource Annotation
    • Summary
  • Dear Reader,

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub