logoalt Hacker News

SOLAR_FIELDS10/12/20241 replyview on HN

My problem with this approach is that I feel like it's the wrong tool for the job. Am I declaring the state of my pizza? Ordering pizza is inherently an imperative task, and unless we are willing to track the lifecycle of the delivery or the pizza itself I feel like we need to explore alternative solutions. Can any solutions engineers weigh in?


Replies

darylteo10/12/2024

The solution here creates Orders, not Pizzas. Therefore the lifecycle of the delivery is captured by Order itself.