Skip to content

Address inconsistencies in Window Class exercise #936

@mikefizzled

Description

@mikefizzled

While completing the Windowing System exercise, I realised my tests were failing due to inconsistent ordering of parameters. The tests expect a different pattern than what is laid out earlier in the instructions. These inconsistencies make the intended pattern confusing, and the enforced order differs from typical convention.

The patterns are as follows:

Task 1

  • Instructions: x, y, height, width
  • Example: x, y, width, height

Task 2

  • Instructions: x, y, width, height
  • Example x, y. width, height

Task 3

  • Instructions: height, width
  • Example: height, width
  • Tests: height, width

Task 4

  • Instructions: y, x
  • Example: y, x
  • Tests: y, x

Because the tests enforce the (height, width) and (y, x) ordering in later tasks, learners must follow the unconventional ordering even though it contradicts earlier instructions.

Would it make sense to standardise to a single pattern, presumably (x,y) and (width, height) given that these are far more common practice? Using recognisable screen resolutions of 800x600 and then requiring them in the reverse order can be quite unintuitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions