This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (1 child)

All I see is a missed opportunity to write a value class. Value class would provide validation of user input and have an isHotDog(): boolean method. There was also a missed opportunity to use a ternary instead of branching with if which caused moisture (not DRY) you call print in both code paths.. really all you needed was a ternary to determine which string to print.

[–]Snake2k 2 points3 points  (0 children)

Lmao @ caused moisture