Git Product home page Git Product logo

linemonitorbot's Introduction

LineMonitorBot

Enterprise productivity app for use in a plastics extrusion plant.

See how it works on the Play Store.

Bug reporting

See bug status at bitbucket.org.

Design notes

This app grew up from a very basic MIT App Inventor product to something I used all day at work. I also shared it with my coworkers, so UI hints, easy touch targets, and responsiveness were important.

The 19 domain model classes are in src/com/kovaciny/primexmodel/ along with PrimexModel.java which contains most of the business logic. The 28 fragments and activities in src/com/kovaciny/linemonitorbot/ are mainly controlled by MainActivity.java.

I'm proud of the MVC architecture with views using PropertyChangeListener. I'm not so proud of the "god object" PrimexModel class. I should have modeled the business concerns as objects (eg, a RateCalculator class), instead of modeling only the concrete domain (lines, rolls) and doing mostly procedural operations to them. I had a lot of trouble with things getting into wrong states, when I could have been using stateless helper classes.

The unit tests have some repetition because I hadn't discovered parameterization yet, and many of them test using the UI which makes them kind of fragile, but they work. They catch the kind of bugs that tend to crop up.

linemonitorbot's People

Contributors

karlkovaciny avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.