Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active October 5, 2025 18:39
Show Gist options
  • Save mcsee/0bd165efd528becd130a142cca8f7c2b to your computer and use it in GitHub Desktop.
Save mcsee/0bd165efd528becd130a142cca8f7c2b to your computer and use it in GitHub Desktop.
This gist belongs to Clean Code Cookbook http://cleancodecookbook.com By Maximiliano Contieri http://maximilianocontieri.com
function findHolidays(
maxPrice: Currency,
startDate: Date,
endDate: Date,
minPrice: Currency) {
// Notice that maxPrice and minPrice are swapped by mistake
// Also, dates are mixed
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment