summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2024-07-16 15:06:54 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2024-07-16 15:06:54 +0100
commit48d0b2367e39abcb115e66a70dbf9a738283df46 (patch)
tree3745aa96dfb21cfe7e6a8c0a667032c45df06744
parent3cac1825bf3c600c07c4da39882f4a7d113eaa18 (diff)
Don't use booleans
-rw-r--r--website/src/data/links.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/website/src/data/links.ts b/website/src/data/links.ts
index cc2659b..458afca 100644
--- a/website/src/data/links.ts
+++ b/website/src/data/links.ts
@@ -86,6 +86,12 @@ const LINKS: Link[] = [
description: 'Who doesn\'t like a classic David-and-Goliath hacker story? Also, if you\'re American, please <a href="https://www.breakupticketmaster.com">break up TicketMaster</a>. If you\'re in the UK, it\'s not quite as bad, but <a href="https://assets.publishing.service.gov.uk/media/5519473540f0b61401000087/final_report.pdf">it\'s still really bad</a>. Use alternatives where you can.',
isoDateAdded: '2024-07-16',
},
+ {
+ href: 'https://www.luu.io/posts/dont-use-booleans',
+ title: 'Don’t use booleans',
+ description: "A nice idea. But I think this advice only applies well when you've got many inter-dependent flags. If you have independent flags, re-writing those as enums will just end up with you re-implementing the boolean type for every parameter, and not getting much profit, I reckon.",
+ isoDateAdded: '2024-07-16',
+ },
];
export default LINKS;