How meetmatt/organization-structure-optimizer works
Project type and purpose
• This is a command-line Java SE application (Maven project) called “Organization Structure Optimizer.”
• It ingests a CSV of employees, applies business rules (salary bounds, reporting‐line length), and prints a console report.
• There is no UI beyond the console; it’s a small, single-process tool, packaged via Docker and built in CI.
File structure
• Top level:
• pom.xml (Maven build, dependencies, plugins)
• Dockerfile + .docker/* scripts (container build/test entrypoints)
• .github/workflows/ci.yml & site.yml (CI and site generation)
• src/main/java/lu/golikov/oso (code)
• src/test/java/... (unit tests)
• Layered packages under src/main/java/lu/golikov/oso:
• Application (orchestration layer: DataObject, Factory, Service)
• Domain (business logic: Model, Service interfaces, DataMapper abstractions)
• Infrastructure (concrete DataMapper & Repository implementations)
• Util (helper classes DSN, FileUtil)
• Main.java (entrypoint)
• Tests mirror the structure, validating factories, services, mappers, utils.
README for additional insights
• Describes CSV format and business rules: managers’ salary must be 20–50% above direct reports; reporting lines <=4 layers.
• Emphasizes simplicity, readability, Java SE + JUnit, console I/O.