-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path28.d56a2d49.chunk.js
More file actions
1 lines (1 loc) · 2.67 KB
/
28.d56a2d49.chunk.js
File metadata and controls
1 lines (1 loc) · 2.67 KB
1
"use strict";(self.webpackChunkfezcodex=self.webpackChunkfezcodex||[]).push([[28],{80028(e,s,t){t.r(s),t.d(s,{default:()=>a});t(9950);var r=t(44414);function a(){return(0,r.jsxs)("div",{className:"space-y-8 font-mono text-sm leading-relaxed",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-bold text-purple-400 uppercase tracking-widest mb-2 border-b border-purple-500/20 pb-1 w-fit",children:"Medicine"}),(0,r.jsx)("p",{className:"text-gray-400 text-xs",children:'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."'})]}),(0,r.jsxs)("div",{className:"border-t border-white/10 pt-6",children:[(0,r.jsx)("h4",{className:"text-xs font-bold text-blue-400 uppercase tracking-widest mb-4 border-b border-blue-500/20 pb-1 w-fit",children:"Computer Science"}),(0,r.jsxs)("p",{className:"text-gray-400 text-xs mb-4",children:["A function or expression is said to have a"," ",(0,r.jsx)("strong",{className:"text-current",children:"side effect"})," if it modifies some state outside its local environment or has an observable interaction with the outside world."]}),(0,r.jsxs)("div",{className:"bg-black p-4 border border-white/10 my-4 font-mono text-xs overflow-x-auto",children:[(0,r.jsxs)("div",{className:"text-gray-500 mb-2",children:["//"," Impure (Side Effect)"]}),(0,r.jsx)("span",{className:"text-purple-400",children:"let"})," ",(0,r.jsx)("span",{className:"text-blue-400",children:"count"})," ="," ",(0,r.jsx)("span",{className:"text-orange-400",children:"0"}),";",(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-purple-400",children:"function"})," ",(0,r.jsx)("span",{className:"text-yellow-400",children:"increment"}),"() ","{",(0,r.jsx)("br",{}),"\xa0\xa0",(0,r.jsx)("span",{className:"text-blue-400",children:"count"}),"++;"," ",(0,r.jsxs)("span",{className:"text-gray-500",children:["//"," Modifies external state!"]}),(0,r.jsx)("br",{}),"}"]}),(0,r.jsxs)("ul",{className:"space-y-1 text-gray-500 text-xs pl-4 border-l border-white/10",children:[(0,r.jsx)("li",{children:"-- Modifying a global variable"}),(0,r.jsx)("li",{children:"-- Writing to a file or database"}),(0,r.jsxs)("li",{children:["-- ",(0,r.jsx)("code",{children:"console.log()"})]}),(0,r.jsx)("li",{children:"-- DOM manipulation"})]}),(0,r.jsxs)("p",{className:"text-gray-500 text-xs mt-4 italic border-t border-white/5 pt-2",children:["In"," ",(0,r.jsx)("strong",{className:"text-current not-italic",children:"Functional Programming"}),', side effects are avoided to ensure functions are "pure" (deterministic).']})]})]})}}}]);