Solution: Declare Constraints

Let's solve the antipattern discussed in the previous lesson by declaring constraints.

The Japanese phrase poka-yoke means “mistake-proofing.Poka-yoke was coined by industrial engineer Dr. Shigeo Shingo in his study of the Toyota Production System.” This term refers to a manufacturing process that helps eliminate product defects by preventing, correcting, or drawing attention to errors as they occur. This practice improves quality and decreases the need for correction, which more than makes up for the cost of its use.

Get hands-on with 1400+ tech skills courses.