Skip to content

Instantly share code, notes, and snippets.

@carlosmaniero
Created February 19, 2019 03:51
Show Gist options
  • Save carlosmaniero/64a171109838c7d4df96b68a7d94ce96 to your computer and use it in GitHub Desktop.
Save carlosmaniero/64a171109838c7d4df96b68a7d94ce96 to your computer and use it in GitHub Desktop.
It shows how orders without status are treated by the application: It is part of the "Agile practices on Legacy code"
const updateStatus = (order, newStatus) => {
if (order.status === undefined) {
order.status = 'ORDERED'
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment