Code Monkey home page Code Monkey logo

javafx-inventory-management-project's Issues

Change naming conventions for scene creation

Change the naming of local variables found in scene creation blocks.

eg...

System.out.println("User cancelled operation. Exiting to Main Screen.");
            Parent root = FXMLLoader.load(getClass().getResource("MainScreen.fxml"));
            Scene scene = new Scene(root);
            Stage mainScreenWindow = (Stage) ((Node) event.getSource()).getScene().getWindow();
            mainScreenWindow.setTitle("ABC Company: Inventory Management System");
            mainScreenWindow.setScene(scene);
            mainScreenWindow.show();

Make the variables such as root and scene something more descriptive.

These scene creation blocks are found throughout the various controllers.

Restructure code... IT'S A MESS RIGHT NOW :angry:

Restructure code in throughout app so that the UI flow of the app follows the code organization. Also, in files that contain both PART and PRODUCT methods/properties/etc, group the PART stuff with the PART stuff and PRODUCT stuff with the PRODUCT stuff.

Add SYSOUT comments for all IO Ops

Add SYSOUT messages for all IO operations.

For instance...

if (partValueException.length() > 0) {
                    Alert alert = new Alert(Alert.AlertType.WARNING);
                    alert.setTitle("ERROR: INVALID VALUES PRESENT");
                    alert.setHeaderText("This part has not been modified");
                    alert.setContentText(partValueException);
                    alert.showAndWait();
                    partValueException = "";

To-Do List

  • Remove Unnecessary File Imports
  • Remove Unnecessary JavaFX IDs
  • Comment Code for Reviewers
  • Add SYSOUT Comments for all IO Ops
  • Restructure Code (It's a MESS right now) ๐Ÿ˜ 
  • Change naming conventions for Scene creation
  • Move Exception Handling for Controllers into a separate class

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.