Skip to content

Commit 9ecaa3f

Browse files
authored
feat: more cursed knowledge (#20794)
1 parent b1aacfd commit 9ecaa3f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

docs/src/pages/cursed-knowledge.tsx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ import {
1616
mdiCloudKeyOutline,
1717
mdiRegex,
1818
mdiCodeJson,
19+
mdiClockOutline,
20+
mdiAccountOutline,
21+
mdiRestart,
1922
} from '@mdi/js';
2023
import Layout from '@theme/Layout';
2124
import React from 'react';
@@ -26,6 +29,42 @@ const withLanguage = (date: Date) => (language: string) => date.toLocaleDateStri
2629
type Item = Omit<TimelineItem, 'done' | 'getDateLabel'> & { date: Date };
2730

2831
const items: Item[] = [
32+
{
33+
icon: mdiClockOutline,
34+
iconColor: 'gray',
35+
title: 'setTimeout is cursed',
36+
description:
37+
'The setTimeout method in JavaScript is cursed when used with small values because the implementation may or may not actually wait the specified time.',
38+
link: {
39+
url: 'https://github.com/immich-app/immich/pull/20655',
40+
text: '#20655',
41+
},
42+
date: new Date(2025, 7, 4),
43+
},
44+
{
45+
icon: mdiAccountOutline,
46+
iconColor: '#DAB1DA',
47+
title: 'PostgreSQL USER is cursed',
48+
description:
49+
'The USER keyword in PostgreSQL is cursed because you can select from it like a table, which leads to confusion if you have a table name user as well.',
50+
link: {
51+
url: 'https://github.com/immich-app/immich/pull/19891',
52+
text: '#19891',
53+
},
54+
date: new Date(2025, 7, 4),
55+
},
56+
{
57+
icon: mdiRestart,
58+
iconColor: '#8395e3',
59+
title: 'PostgreSQL RESET is cursed',
60+
description:
61+
'PostgreSQL RESET is cursed because it is impossible to RESET a PostgreSQL extension parameter if the extension has been uninstalled.',
62+
link: {
63+
url: 'https://github.com/immich-app/immich/pull/19363',
64+
text: '#19363',
65+
},
66+
date: new Date(2025, 5, 20),
67+
},
2968
{
3069
icon: mdiRegex,
3170
iconColor: 'purple',

0 commit comments

Comments
 (0)