GithubHelp home page GithubHelp logo

jmixite's Introduction

JMixite

This is a pure Java port of the Mixite library by Hexworks. The original Mixite library is fully functional, but it did not integrate well with Java 9+ in all cases. This library has the same functionality, with some design differences. These changes are not proposed as an update to Mixite itself, however, because these design differences alter the interfaces and fundamental organization of information.

Aside: The original mixite library is fully functional and fit for purpose; this project exists primarily because the Kotlin library did not integrate well with Java 16+ JPMS projects. The changes described below reflect my own code style and design preferences.

Design Principles

  • The external interfaces should be intuitive and simple, requiring minimal boilerplate code.
  • Enforce the Open/Closed Principle.
  • Provide the simplest code possible while maintaining performance.

Design Updates

The key changes that differentiate this library from the original mixite involve the organization of data related to individual hexagons:

  • Hexagon is now a shape, nothing more. The functions beyond geometry now reside in GridCell.
  • GridCell (unlike the old Hexagon) is persistent and specific to a grid, rather than transient during some calculations.
  • This library does not provide a SatelliteData base class; it now considers the GridCell content to be fully implementation-specific.
  • There is no separate storage class. My use cases don't require the small performance gains that custom storage provides, so the added complexity is not worthwhile for me.

jmixite's People

Contributors

denalidtx 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.