Handeling Edge-cases #3

Closed
opened 2018-04-07 16:49:06 +00:00 by import_user_oitsjustjose_95mQ · 2 comments
import_user_oitsjustjose_95mQ commented 2018-04-07 16:49:06 +00:00 (Migrated from git.oitsjustjose.com)

We need to determine how we are going to handle invalid commands. I see two types of invalid commands a user could provide:

  • Initially invalid commands. EX: draw_hoizontal_line, -10, -10, 10
  • Eventually invalid commands, these would start in valid board-space and attempt to draw off the edge. EX: draw_horizontal_line, 10, 10, 9999
We need to determine how we are going to handle invalid commands. I see two types of invalid commands a user could provide: * Initially invalid commands. EX: `draw_hoizontal_line, -10, -10, 10` * Eventually invalid commands, these would start in valid board-space and attempt to draw off the edge. EX: `draw_horizontal_line, 10, 10, 9999`
import_user_oitsjustjose_95mQ commented 2018-04-07 16:50:23 +00:00 (Migrated from git.oitsjustjose.com)

I vote we just no-op in both cases. If a command starts invalid, we do nothing.
If a command starts drawing off the edge, we simply stop drawing.

I vote we just no-op in both cases. If a command starts invalid, we do nothing. If a command starts drawing off the edge, we simply stop drawing.
import_user_oitsjustjose_95mQ commented 2018-04-10 16:59:39 +00:00 (Migrated from git.oitsjustjose.com)

I've no-op'd invalid inputs on my part 😄

I've no-op'd invalid inputs on my part :smile:
import_user_oitsjustjose_95mQ (Migrated from git.oitsjustjose.com) closed this issue 2018-04-15 19:37:23 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
oitsjustjose/CPSC4100#3
No description provided.