1.4-Software-Development-Principles

Project setup

Introduction

For this module we want you to continually rethink design choices as we present you with additional information on how to do things in an easy or logical method.

Solutions that are great for a previous assignment may need to be (slightly) adapted in order to do their work more efficiently for the current assignment. This doesn’t mean you did something wrong, this only means you learned a better way to do things.

To ensure this process we would like to invite you to create one single project in which you develop your code for this entire module.

SDP 2024

Create a new empty Java project called “sdp2024”:

  1. Create two additional directories: resources and tests
  2. Mark the resources directory as “resources root” (Right click…)
  3. Mark the tests directory as “test sources root”
  4. In the src folder create a package named: nl.saxion.sdp
  5. Move the Main.java to this package.

Initial utilities

  1. Create an additional package called utils (nl.saxion.sdp.utils)
  2. Create an additional package called exercises Please note! nl.saxion.sdp.exercises, not nl.saxion.sdp.utils.exercises
  3. Copy some useful classes from your OGP project(s) to the utils package.
    • CSVReader
    • InputReader
    • OptionSelector

If you created other useful utilities, this is a great moment to add those as well.

Project usage

With this project structure every new excercise should be a new sub-package under nl.saxion.sdp.exercises. (Please note, this may break the “don’t create a package for only one class” rule.)

When an exercise makes you design a class that is going to be a useful tool for other exercises feel free to migrate it to the utils package.