Skip to content

Commit ebbe31e

Browse files
committed
logs: common side effects.
1 parent c658985 commit ebbe31e

File tree

5 files changed

+74
-2
lines changed

5 files changed

+74
-2
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Common Side Effects
2+
- **Category:** Series
3+
- **Date:** 2025-02-15
4+
- **Link:** https://www.adultswim.com/videos/common-side-effects
5+
- **Platform:** Adult Swim
6+
- **Rating:** 4/5
7+
8+
## About "Common Side Effects"
9+
10+
"Common [Side Effects](/#/vocab/side-effects)" is an adult animated sci-fi comedy created by Joe Bennett and Steve Hely,
11+
and executive produced by Mike Judge and Greg Daniels.
12+
13+
The series follows Marshall and Frances, two former high school lab partners who stumble upon a rare mushroom that holds
14+
the key to curing all the world's diseases. However, they soon find themselves entangled in a massive conspiracy as
15+
"Big Pharma" and the government will stop at nothing to suppress the discovery.
16+
17+
It blends the sharp, satirical wit of *King of the Hill* with a trippy, psychedelic visual style that feels right at home on Adult Swim.
18+
The show tackles themes of corporate greed and the ethics of healthcare with a healthy dose of humor and heart.

public/logs/series/series.piml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
(logs)
2+
> (item)
3+
(category) Series
4+
(date) 2025-12-12
5+
(link) https://www.adultswim.com/videos/common-side-effects
6+
(platform) Adult Swim
7+
(rating) 4
8+
(slug) common-side-effects
9+
(title) Common Side Effects (TV Series)
10+
(image) /images/defaults/series/kelly-sikkema-RIPiTX__OeQ-unsplash.jpg
11+
(description) Common Side Effects is an adult animated sci-fi comedy created by Joe Bennett and Steve Hely. It follows two former lab partners who discover a mushroom that cures all diseases, only to face a massive conspiracy.
12+
213
> (item)
314
(category) Series
415
(date) 2025-12-08

public/posts/react-magic-markdown-components.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const MarkdownLink = ({ href, children }) => {
4040
openSidePanel(definition.title, definition.content);
4141
}
4242
}}
43-
className="text-amber-400 dashed-underline cursor-help"
43+
className="text-pink-400 dashed-underline cursor-help"
4444
>
4545
{children}
4646
</a>

src/components/MarkdownLink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const MarkdownLink = ({ href, children, className, ...props }) => {
2424
console.warn(`Vocabulary term not found: ${term}`);
2525
}
2626
}}
27-
className="text-amber-400 hover:text-amber-300 transition-colors inline-flex items-center gap-1 border-b border-amber-500/30 border-dashed hover:border-solid cursor-help"
27+
className="text-pink-400 hover:text-pink-300 transition-colors inline-flex items-center gap-1 border-b border-pink-500/30 border-dashed hover:border-solid cursor-help"
2828
title="Click for definition"
2929
{...props}
3030
>

src/data/vocabulary.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,47 @@ export const vocabulary = {
8282
</div>
8383
),
8484
},
85+
'side-effects': {
86+
title: 'Side Effects',
87+
content: (
88+
<div className="space-y-6">
89+
<div>
90+
<h4 className="flex items-center gap-2 text-sm font-bold text-purple-400 mb-2">
91+
<span className="text-lg">💊</span> Medicine
92+
</h4>
93+
<p className="text-gray-300 text-sm">
94+
An unintended secondary effect of a medication or treatment. While often negative (e.g., drowsiness, nausea), they can sometimes be beneficial or neutral. In the context of the show, this likely refers to the unexpected consequences of the "miracle cure."
95+
</p>
96+
</div>
97+
98+
<div className="border-t border-gray-700 pt-4">
99+
<h4 className="flex items-center gap-2 text-sm font-bold text-blue-400 mb-2">
100+
<span className="text-lg">💻</span> Computer Science
101+
</h4>
102+
<p className="text-gray-300 text-sm mb-2">
103+
A function or expression is said to have a <strong>side effect</strong> if it modifies some state outside its local environment or has an observable interaction with the outside world.
104+
</p>
105+
<div className="bg-black/50 p-3 rounded border border-gray-800 my-3 font-mono text-xs overflow-x-auto">
106+
<div className="text-gray-500">// Impure (Side Effect)</div>
107+
<span className="text-purple-300">let</span> <span className="text-blue-300">count</span> = <span className="text-orange-300">0</span>;
108+
<br />
109+
<span className="text-purple-300">function</span> <span className="text-yellow-300">increment</span>() {'{'}
110+
<br />
111+
&nbsp;&nbsp;<span className="text-blue-300">count</span>++; <span className="text-gray-500">// Modifies external state!</span>
112+
<br />
113+
{'}'}
114+
</div>
115+
<ul className="list-disc pl-5 space-y-1 text-gray-400 text-xs font-mono">
116+
<li>Modifying a global variable</li>
117+
<li>Writing to a file or database</li>
118+
<li><code>console.log()</code></li>
119+
<li>DOM manipulation</li>
120+
</ul>
121+
<p className="text-gray-500 text-xs mt-3 italic">
122+
In <strong>Functional Programming</strong>, side effects are avoided to ensure functions are "pure" (deterministic).
123+
</p>
124+
</div>
125+
</div>
126+
),
127+
},
85128
};

0 commit comments

Comments
 (0)