<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aditya</title>
    <description>The latest articles on DEV Community by Aditya (@extinctsion).</description>
    <link>https://dev.to/extinctsion</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F752555%2F48f47813-e1be-48bb-84ae-876132ecc1d7.png</url>
      <title>DEV Community: Aditya</title>
      <link>https://dev.to/extinctsion</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/extinctsion"/>
    <language>en</language>
    <item>
      <title>Language and Thought: How Language Shapes Cognition</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Sun, 06 Sep 2026 04:45:00 +0000</pubDate>
      <link>https://dev.to/extinctsion/language-and-thought-how-language-shapes-cognition-4o98</link>
      <guid>https://dev.to/extinctsion/language-and-thought-how-language-shapes-cognition-4o98</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Does language reflect how we think, or does it shape how we think? Can you conceive of an idea you don't have words for? These questions sit at the intersection of linguistics and psychology, revealing how deeply language is woven into cognition. The answers suggest your native language doesn't just express your thoughts it constrains and enables what you can think.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1blv66tx1nkcnasew1hf.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1blv66tx1nkcnasew1hf.gif" alt="thought" width="498" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Linguistic Relativity (Sapir-Whorf Hypothesis)&lt;/strong&gt;: The structure and vocabulary of your language influences (or determines) how you perceive and think about the world&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strong Version&lt;/strong&gt;: Language &lt;em&gt;determines&lt;/em&gt; thought; speakers of different languages think fundamentally differently&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Weak Version&lt;/strong&gt;: Language &lt;em&gt;influences&lt;/em&gt; thought; linguistic categories bias attention and memory toward certain features&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grammar&lt;/strong&gt;: The rules organizing language; different languages encode information differently (tense, gender, plurality, evidentiality)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lexical Gaps&lt;/strong&gt;: Absent words create absent concepts—if your language lacks a word for a color, you perceive it differently&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bilingualism&lt;/strong&gt;: Speaking two languages creates cognitive advantages (mental flexibility, executive function) and interference effects (slower processing, word retrieval)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Critical Period&lt;/strong&gt;: Early childhood is optimal for language acquisition; after puberty, learning a native-like accent becomes difficult&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linguistic Relativity in Practice&lt;/strong&gt;: Language primes attention; thinking in different languages activates different cultural values and memories&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Universal Principles&lt;/strong&gt;: Despite linguistic diversity, some cognitive features appear universal (word order constraints, basic color categories)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conceptual Metaphor&lt;/strong&gt;: Abstract concepts are understood through physical metaphors rooted in language ("time is money," "argument is war")&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Examples &amp;amp; Classic Experiments
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Color Perception and Language
&lt;/h3&gt;

&lt;p&gt;Languages carve up the color spectrum differently:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;English: Blue and green are distinct colors&lt;/li&gt;
&lt;li&gt;Vietnamese, some African languages: Blue and green grouped together&lt;/li&gt;
&lt;li&gt;Russian: Light blue (goluboy) and dark blue (siniy) are separate basic colors&lt;/li&gt;
&lt;li&gt;Pirahã (Amazon): Only two color terms (roughly "light" and "dark")&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Finding&lt;/strong&gt;: Speakers are faster at distinguishing colors their language explicitly names. Russian speakers discriminate shades of blue faster than English speakers because they have separate words.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Implication&lt;/strong&gt;: Language doesn't &lt;em&gt;create&lt;/em&gt; the ability to see colors, but it highlights what matters, making discrimination faster and easier.&lt;/p&gt;

&lt;h3&gt;
  
  
  Time and Space Orientation (Lera Boroditsky)
&lt;/h3&gt;

&lt;p&gt;Mandarin Chinese speakers gesture horizontally when discussing time; English speakers gesture front-to-back. When primed with spatial language, Mandarin speakers reason about time differently than English speakers.&lt;/p&gt;

&lt;p&gt;Even more striking: The Aymara language (Andes) places the past &lt;em&gt;in front&lt;/em&gt; and future &lt;em&gt;behind&lt;/em&gt; opposite to English. Aymara speakers gesture accordingly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Implication&lt;/strong&gt;: Linguistic patterns of expression are linked to spatial reasoning and cultural metaphors for time.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Sapir-Whorf Challenge: Inuit Snow Words
&lt;/h3&gt;

&lt;p&gt;Popular claim: Inuit languages have 100+ words for snow. Reality: Most Inuit languages have ~7–8 words for different types of snow. English speakers can also describe snow types using phrases.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson&lt;/strong&gt;: Linguistic relativity doesn't mean determinism. Multiple languages can express the same ideas; some just require more words or are more convenient.&lt;/p&gt;

&lt;h3&gt;
  
  
  Bilingual Advantage and Interference
&lt;/h3&gt;

&lt;p&gt;Bilingual children show:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Advantages&lt;/strong&gt;: Better executive function, cognitive flexibility, and inhibitory control (managing two language systems)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disadvantages&lt;/strong&gt;: Slightly slower vocabulary in each language individually, increased tip-of-the-tongue errors&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Practical finding&lt;/strong&gt;: Bilinguals' overall vocabulary is larger but distributed across two languages, creating mild retrieval interference in each language separately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Language influences thought, not determines it&lt;/strong&gt; linguistic categories make certain concepts more salient or easier to think about, but don't make other thoughts impossible&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Grammar shapes attention and memory&lt;/strong&gt; languages that grammatically require marking tense, gender, or evidentiality prime speakers to track these features more carefully&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Lexical gaps constrain but don't eliminate concepts&lt;/strong&gt; without a word for something, you can still conceive of it, but with more difficulty; language enables, not creates, thought&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Bilingualism trades off specialization for flexibility&lt;/strong&gt; speaking two languages provides cognitive advantages in executive function but costs some processing speed in each language individually&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Linguistic relativity interacts with culture&lt;/strong&gt; how languages encode concepts reflects what their speakers valued; acquiring a new language partially adopts that cultural perspective&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Final Note
&lt;/h2&gt;

&lt;p&gt;Your language is a lens, not a prison. It highlights certain patterns and makes certain thoughts easier or harder, but doesn't fundamentally limit human cognition. Learning a new language doesn't change your ability to think, but it does expand the ways you can think about the world.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1p8t953uymm0uby2ah7.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1p8t953uymm0uby2ah7.gif" alt="think" width="498" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>beginners</category>
      <category>psychology</category>
    </item>
    <item>
      <title>Next.js + Prettier + Husky setup</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Wed, 02 Sep 2026 17:37:24 +0000</pubDate>
      <link>https://dev.to/extinctsion/nextjs-prettier-husky-setup-31h2</link>
      <guid>https://dev.to/extinctsion/nextjs-prettier-husky-setup-31h2</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Getting started is intentionally simple. You can create a new project with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-next-app@latest &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjsywc2gz87ti9c7l0aad.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjsywc2gz87ti9c7l0aad.gif" alt="nextjs" width="352" height="234"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's enough to &lt;strong&gt;create a Next.js project&lt;/strong&gt;. But creating the project is only the first step.&lt;/p&gt;

&lt;p&gt;For a real application, you will usually want consistent code formatting, linting, Git hooks, environment-variable conventions, and a project structure that can scale as the application grows.&lt;/p&gt;

&lt;p&gt;This guide walks through a complete baseline setup so that you can move from a freshly generated Next.js application to a clean development environment ready for full-stack development.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The exact prompts and defaults of &lt;code&gt;create-next-app&lt;/code&gt; can change between Next.js releases. The commands below follow the current Next.js setup approach.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Steps to Complete Setup
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbs8wlws6itxa873ufj5q.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbs8wlws6itxa873ufj5q.gif" alt="setup" width="280" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Prerequisites
&lt;/h2&gt;

&lt;p&gt;Before starting, make sure the following are installed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Node.js
&lt;/h3&gt;

&lt;p&gt;The current Next.js documentation requires &lt;strong&gt;Node.js 20.9 or newer&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Check your installed version:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see a version equal to or greater than:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v20.9.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  npm
&lt;/h3&gt;

&lt;p&gt;npm is installed along with Node.js.&lt;/p&gt;

&lt;p&gt;Verify it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Git
&lt;/h3&gt;

&lt;p&gt;Git is strongly recommended for version control and will also be used by Husky later.&lt;/p&gt;

&lt;p&gt;Check:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Code Editor
&lt;/h3&gt;

&lt;p&gt;Visual Studio Code is a good choice for Next.js development.&lt;/p&gt;

&lt;p&gt;Recommended extensions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ESLint&lt;/li&gt;
&lt;li&gt;Prettier - Code formatter&lt;/li&gt;
&lt;li&gt;Tailwind CSS IntelliSense&lt;/li&gt;
&lt;li&gt;Error Lens&lt;/li&gt;
&lt;li&gt;GitLens (optional)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. Create the Next.js Application
&lt;/h2&gt;

&lt;p&gt;Create the project in the current directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-next-app@latest &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Next.js CLI will ask you several questions.&lt;/p&gt;

&lt;p&gt;For a modern full-stack application, the following setup is a good starting point:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;Recommended&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;TypeScript&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linter&lt;/td&gt;
&lt;td&gt;ESLint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;React Compiler&lt;/td&gt;
&lt;td&gt;Based on project requirements&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tailwind CSS&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;src/&lt;/code&gt; directory&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;App Router&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Import alias&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Import alias value&lt;/td&gt;
&lt;td&gt;&lt;code&gt;@/*&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AGENTS.md&lt;/td&gt;
&lt;td&gt;Optional&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The current &lt;code&gt;create-next-app&lt;/code&gt; documentation lists TypeScript, Tailwind CSS, ESLint, App Router, and Turbopack among the recommended/default setup options. The CLI also supports an &lt;code&gt;--import-alias&lt;/code&gt; option and can initialize a project inside &lt;code&gt;src/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;After the setup completes, start the development server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost:3000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the default Next.js page appears, your application has been successfully created.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Initialize Git
&lt;/h2&gt;

&lt;p&gt;If Git has not already been initialized, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check the repository:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create the initial commit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"chore: initialize Next.js project"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From this point onward, Git will track your project changes.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Install and Configure Prettier
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why Prettier?
&lt;/h3&gt;

&lt;p&gt;Prettier automatically formats your code according to a consistent style.&lt;/p&gt;

&lt;p&gt;Without a formatter, different developers may write:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;user&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;John&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="na"&gt;age&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;while someone else writes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;John&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;age&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Prettier removes this unnecessary discussion and keeps the codebase consistent.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install Prettier
&lt;/h3&gt;

&lt;p&gt;Install it locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--save-dev&lt;/span&gt; &lt;span class="nt"&gt;--save-exact&lt;/span&gt; prettier
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using a local version means everyone working on the project uses the same formatter version.&lt;/p&gt;

&lt;h3&gt;
  
  
  Create &lt;code&gt;.prettierrc&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Create:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.prettierrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"semi"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"singleQuote"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"trailingComma"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"all"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"tabWidth"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"printWidth"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Create &lt;code&gt;.prettierignore&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Create:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.prettierignore
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;node_modules
.next
out
dist
coverage
public
*.lock
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Format the project
&lt;/h3&gt;

&lt;p&gt;Run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx prettier &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--write&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To check formatting without modifying files:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx prettier &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--check&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  5. Integrate Prettier with ESLint
&lt;/h2&gt;

&lt;p&gt;Next.js projects can use ESLint for code-quality checks while Prettier handles formatting.&lt;/p&gt;

&lt;p&gt;Install the compatibility configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--save-dev&lt;/span&gt; eslint-config-prettier
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;eslint.config.mjs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A current flat-config setup can look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;defineConfig&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;globalIgnores&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;eslint/config&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;nextVitals&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;eslint-config-next/core-web-vitals&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;nextTs&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;eslint-config-next/typescript&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;prettier&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;eslint-config-prettier/flat&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nf"&gt;defineConfig&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
  &lt;span class="p"&gt;...&lt;/span&gt;&lt;span class="nx"&gt;nextVitals&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;...&lt;/span&gt;&lt;span class="nx"&gt;nextTs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nx"&gt;prettier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nf"&gt;globalIgnores&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
    &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.next/**&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;out/**&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;build/**&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;next-env.d.ts&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;]),&lt;/span&gt;
&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important part is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;prettier&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;eslint-config-prettier/flat&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;prettier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This disables ESLint rules that conflict with Prettier.&lt;/p&gt;

&lt;p&gt;Run ESLint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run lint
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; ESLint configuration can vary depending on the Next.js version and whether you selected ESLint or another linter during project creation. If your generated configuration differs, keep the Next.js-generated configuration and add the Prettier compatibility configuration rather than blindly replacing the entire file.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  6. Add Useful npm Scripts
&lt;/h2&gt;

&lt;p&gt;Open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;package.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add or update the scripts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"scripts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"dev"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"next dev --turbopack"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"next build"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"start"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"next start"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"lint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"eslint ."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"format"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"prettier . --write"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"format:check"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"prettier . --check"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"typecheck"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"tsc --noEmit"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can now run:&lt;/p&gt;

&lt;h3&gt;
  
  
  Development server
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Linting
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run lint
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Format code
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run format
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Check formatting
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run format:check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Type checking
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run typecheck
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Production build
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This gives you a useful set of commands for everyday development.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. Set Up Husky and lint-staged
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why Husky?
&lt;/h3&gt;

&lt;p&gt;You can manually remember to run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run lint
npm run format:check
npm run typecheck
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;before every commit.&lt;/p&gt;

&lt;p&gt;But eventually, someone will forget.&lt;/p&gt;

&lt;p&gt;Husky allows Git hooks to automatically run commands at specific points in the Git workflow.&lt;/p&gt;

&lt;p&gt;For this setup, we will use a &lt;strong&gt;pre-commit hook&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install Husky and lint-staged
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--save-dev&lt;/span&gt; husky lint-staged
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Initialize Husky:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx husky init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This creates the &lt;code&gt;.husky&lt;/code&gt; directory and a pre-commit hook.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Configure the Pre-commit Hook
&lt;/h2&gt;

&lt;p&gt;Open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.husky/pre-commit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace its contents with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx lint-staged
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now configure &lt;code&gt;lint-staged&lt;/code&gt; in &lt;code&gt;package.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"lint-staged"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"*.{js,jsx,ts,tsx}"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"eslint --fix"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"prettier --write"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"*.{json,css,md,yml,yaml}"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"prettier --write"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now when you run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"feat: add authentication"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Husky runs the pre-commit hook.&lt;/p&gt;

&lt;p&gt;The hook runs &lt;code&gt;lint-staged&lt;/code&gt;, which runs ESLint and Prettier only against the relevant staged files.&lt;/p&gt;

&lt;p&gt;This keeps commits cleaner without repeatedly processing the entire project.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. Test Husky
&lt;/h2&gt;

&lt;p&gt;Create or modify a TypeScript file.&lt;/p&gt;

&lt;p&gt;Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Commit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"test: verify git hooks"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see lint-staged execute before the commit is created.&lt;/p&gt;

&lt;p&gt;If a linting error cannot be fixed automatically, the commit should fail.&lt;/p&gt;

&lt;p&gt;That is exactly what we want: broken code should not easily make its way into the repository.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. Configure Environment Variables
&lt;/h2&gt;

&lt;p&gt;Full-stack applications usually require secrets and configuration values such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Database connection strings&lt;/li&gt;
&lt;li&gt;API keys&lt;/li&gt;
&lt;li&gt;Authentication secrets&lt;/li&gt;
&lt;li&gt;External service URLs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Create:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.env.local
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DATABASE_URL="postgresql://..."
AUTH_SECRET="your-secret"
API_KEY="your-api-key"
NEXT_PUBLIC_APP_URL="http://localhost:3000"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Server-only variables
&lt;/h3&gt;

&lt;p&gt;Variables such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DATABASE_URL=
AUTH_SECRET=
API_KEY=
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;should remain server-side.&lt;/p&gt;

&lt;h3&gt;
  
  
  Public variables
&lt;/h3&gt;

&lt;p&gt;Variables prefixed with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;NEXT_PUBLIC_
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;can be exposed to browser-side code.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;NEXT_PUBLIC_APP_URL="http://localhost:3000"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do &lt;strong&gt;not&lt;/strong&gt; put secrets behind &lt;code&gt;NEXT_PUBLIC_&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Create &lt;code&gt;.env.example&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;You should also create:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.env.example
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add placeholders:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DATABASE_URL=
AUTH_SECRET=
API_KEY=
NEXT_PUBLIC_APP_URL=
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This file can safely be committed and tells other developers which environment variables they need.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Security:&lt;/strong&gt; Never commit real API keys, database passwords, authentication secrets, or production credentials to Git.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Problem 1: &lt;code&gt;node&lt;/code&gt; or &lt;code&gt;npm&lt;/code&gt; is not recognized
&lt;/h2&gt;

&lt;p&gt;Check:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node &lt;span class="nt"&gt;-v&lt;/span&gt;
npm &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the commands fail, Node.js is either not installed or its installation directory is not available in your system &lt;code&gt;PATH&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Install a supported Node.js version, restart your terminal, and try again.&lt;/p&gt;




&lt;h2&gt;
  
  
  Problem 2: &lt;code&gt;npx create-next-app@latest .&lt;/code&gt; fails
&lt;/h2&gt;

&lt;p&gt;First check your Node.js version:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The current Next.js requirement is Node.js 20.9 or newer.&lt;/p&gt;

&lt;p&gt;You can also check the CLI help:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-next-app@latest &lt;span class="nt"&gt;--help&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you are creating the project in the current directory using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-next-app@latest &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;make sure the directory does not already contain conflicting project files.&lt;/p&gt;




&lt;h2&gt;
  
  
  Problem 3: Husky hook does not run
&lt;/h2&gt;

&lt;p&gt;Check that the project is a Git repository:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then initialize Husky again:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx husky init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.husky/pre-commit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;contains:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx lint-staged
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Problem 4: lint-staged fails during commit
&lt;/h2&gt;

&lt;p&gt;Run it directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx lint-staged
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run the checks individually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run lint
npm run format:check
npm run typecheck
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fix the reported problem, stage the changes again, and retry the commit.&lt;/p&gt;




&lt;h2&gt;
  
  
  Problem 5: ESLint and Prettier conflict
&lt;/h2&gt;

&lt;p&gt;Make sure this package is installed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--save-dev&lt;/span&gt; eslint-config-prettier
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then make sure the Prettier compatibility configuration is included in your ESLint flat configuration.&lt;/p&gt;




&lt;h2&gt;
  
  
  Problem 6: Prettier formats files that it should not touch
&lt;/h2&gt;

&lt;p&gt;Add generated directories to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.prettierignore
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.next
dist
coverage
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review the ignore file if generated or external files are being formatted unexpectedly.&lt;/p&gt;




&lt;h2&gt;
  
  
  Problem 7: Git commit is rejected
&lt;/h2&gt;

&lt;p&gt;A rejected commit is often the expected behavior.&lt;/p&gt;

&lt;p&gt;Your pre-commit hook may have detected:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ESLint errors&lt;/li&gt;
&lt;li&gt;Formatting problems&lt;/li&gt;
&lt;li&gt;Invalid staged files&lt;/li&gt;
&lt;li&gt;Another configured validation failure&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx lint-staged
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fix the problem and commit again.&lt;/p&gt;

&lt;p&gt;Avoid bypassing hooks unless you have a specific reason to do so.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 8: Any other issue
&lt;/h2&gt;

&lt;p&gt;If you are facing any other issue apart from the above mentioned faq, feel free to drop them in the comments.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Verification
&lt;/h2&gt;

&lt;p&gt;Before you start building features, run the complete baseline:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run lint
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run format:check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run typecheck
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If all four commands pass, you have a solid starting point for development.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;With this setup, you now have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js&lt;/strong&gt; for the application framework&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TypeScript&lt;/strong&gt; for type safety&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;App Router&lt;/strong&gt; for modern Next.js routing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailwind CSS&lt;/strong&gt; for styling&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ESLint&lt;/strong&gt; for code-quality checks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prettier&lt;/strong&gt; for consistent formatting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Husky&lt;/strong&gt; for Git hooks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;lint-staged&lt;/strong&gt; for checking staged files&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Environment-variable conventions&lt;/strong&gt; for configuration and secrets&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A scalable project structure&lt;/strong&gt; for future features&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can now add the application-specific pieces you actually need, such as PostgreSQL, Prisma or Drizzle, authentication, validation, testing, and CI/CD.&lt;/p&gt;

&lt;p&gt;The goal is not to install every possible tool on day one. The goal is to start with a &lt;strong&gt;clean, consistent foundation&lt;/strong&gt; and add complexity only when the application requires it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffs7dwuzdb8d6fe27ep3m.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffs7dwuzdb8d6fe27ep3m.gif" alt="og dog" width="211" height="374"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cheers! Happy coding&lt;/p&gt;




</description>
      <category>nextjs</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>frontend</category>
    </item>
    <item>
      <title>Intelligence: Theories and Measurement</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Sun, 23 Aug 2026 04:34:00 +0000</pubDate>
      <link>https://dev.to/extinctsion/intelligence-theories-and-measurement-59i8</link>
      <guid>https://dev.to/extinctsion/intelligence-theories-and-measurement-59i8</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;When you think of intelligence, you probably imagine IQ tests or academic success. But what is intelligence really? Can it be measured? And does a number on a test capture the full picture of cognitive ability? Psychologists have debated these questions for over a century, producing competing theories that reveal why defining and measuring intelligence is far more complicated than it seems.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6xpo73h8h1u7mqno6r9z.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6xpo73h8h1u7mqno6r9z.gif" alt="think" width="201" height="201"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;General Intelligence (g)&lt;/strong&gt;: Charles Spearman's theory that a single, underlying factor (g) explains cognitive performance across all tasks; high g predicts success broadly&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Factor Analysis&lt;/strong&gt;: Statistical method identifying underlying patterns in test scores; used to support the g-factor and identify specific abilities&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Specific Abilities (s)&lt;/strong&gt;: Factors that explain performance in particular domains; someone might excel at verbal reasoning but struggle with spatial reasoning&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multiple Intelligences Theory&lt;/strong&gt; (Gardner): Intelligence isn't a single trait but 8–9 distinct types (linguistic, logical-mathematical, spatial, bodily-kinesthetic, musical, interpersonal, intrapersonal, naturalistic)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Triarchic Theory&lt;/strong&gt; (Sternberg): Intelligence comprises analytic ability (problem-solving), creative ability (novel solutions), and practical ability (real-world application)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Emotional Intelligence (EI)&lt;/strong&gt;: Ability to recognize, understand, and manage emotions in yourself and others; correlates with social success but debates persist about measurement&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IQ (Intelligence Quotient)&lt;/strong&gt;: Originally mental age ÷ chronological age × 100; now standardized scores (mean 100, SD 15) that measure reasoning, verbal ability, processing speed, and perceptual reasoning&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reliability&lt;/strong&gt;: IQ tests produce consistent scores across repeated testing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validity&lt;/strong&gt;: Debate over whether IQ tests measure "true" intelligence or narrow academic skills; they predict school/job performance moderately but miss creativity, practical problem-solving, emotional skills&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nature vs. Nurture&lt;/strong&gt;: Heritability of IQ estimated at 50%; environment (education, SES, nutrition) also significantly impacts scores&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Examples &amp;amp; Classic Experiments
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Factor Analysis of Intelligence (Spearman, 1904)
&lt;/h3&gt;

&lt;p&gt;Spearman analyzed correlations between different cognitive tests and found something surprising: performance on seemingly unrelated tasks (verbal, spatial, mathematical) correlated moderately. He concluded a single underlying factor—g—explained this pattern.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Implications&lt;/strong&gt;: If g exists, a single measure should predict performance across domains. IQ tests were built on this assumption.&lt;/p&gt;

&lt;h3&gt;
  
  
  Multiple Intelligences in Action
&lt;/h3&gt;

&lt;p&gt;Gardner argued that a musically gifted child, a chess prodigy, and an interpersonal leader are all "intelligent" despite scoring differently on traditional IQ tests. Someone high in musical intelligence but low in logical-mathematical intelligence wouldn't shine in school but excels in their domain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Practical observation&lt;/strong&gt;: Savants demonstrate extraordinary ability in narrow domains (calendar calculation, music) despite low overall IQ, challenging the g-factor model.&lt;/p&gt;

&lt;h3&gt;
  
  
  Flynn Effect
&lt;/h3&gt;

&lt;p&gt;IQ scores have increased roughly 3 points per decade over the past 70+ years. This can't be genetic change (too fast), so it must reflect environmental improvements: better nutrition, more education, exposure to abstract reasoning in media.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Implication&lt;/strong&gt;: IQ isn't purely a fixed trait; it responds to environmental enrichment.&lt;/p&gt;

&lt;h3&gt;
  
  
  IQ and Real-World Outcomes
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Weak to moderate correlation&lt;/strong&gt; with job success (r = 0.3–0.5 depending on job complexity)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strong correlation&lt;/strong&gt; with school performance (r = 0.5–0.7)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Weak correlation&lt;/strong&gt; with happiness, health, or life satisfaction beyond moderate income&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Social and emotional factors&lt;/strong&gt; often predict success better than IQ alone&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;"Intelligence" is multidimensional&lt;/strong&gt; no single definition or measure captures all forms of cognitive ability; g-factor explains variance but doesn't capture creativity, practical problem-solving, or emotional skills&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;IQ tests measure specific skills, not innate potential&lt;/strong&gt; they're reliable and predict academic/job performance moderately, but they're influenced by education, culture, and familiarity with abstract reasoning&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Environmental factors matter significantly&lt;/strong&gt; IQ is heritable but not fixed; nutrition, education, and early exposure substantially influence scores, as shown by the Flynn Effect&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Different contexts reward different intelligences&lt;/strong&gt; academic success and IQ correlate, but practical success, creativity, and interpersonal effectiveness require abilities IQ tests don't measure&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Measurement validity remains contested&lt;/strong&gt; IQ tests are useful predictors for academic settings but incomplete as measures of human cognitive capability or potential for real-world success&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Final Note
&lt;/h2&gt;

&lt;p&gt;Intelligence is too complex to reduce to a single number. IQ tests are useful tools for specific purposes, but conflating an IQ score with overall intelligence, capability, or human worth is a category error that has led to harmful policies historically.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9jorpe5w84fldp7q6z9o.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9jorpe5w84fldp7q6z9o.gif" alt="cat" width="372" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>beginners</category>
      <category>psychology</category>
    </item>
    <item>
      <title>Thinking and Decision Making: Cognitive Processes Explained</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Sun, 09 Aug 2026 04:37:00 +0000</pubDate>
      <link>https://dev.to/extinctsion/thinking-and-decision-making-cognitive-processes-explained-2hl3</link>
      <guid>https://dev.to/extinctsion/thinking-and-decision-making-cognitive-processes-explained-2hl3</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Every day you make thousands of decisions: what to eat, which route to take, whether a news headline is true. You probably think you're reasoning logically through each choice. But research reveals something uncomfortable your thinking is riddled with shortcuts, biases, and systematic errors. Understanding how you actually think (versus how you think you think) is the first step to making better decisions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2bcxjbych0wbh89qs664.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2bcxjbych0wbh89qs664.gif" alt="decision" width="498" height="374"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Algorithm&lt;/strong&gt;: A step-by-step procedure that guarantees a correct solution; slow but accurate (like solving math problems)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Heuristic&lt;/strong&gt;: A mental shortcut or rule of thumb that works quickly but isn't guaranteed to be correct (gut feeling, educated guess)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Availability Heuristic&lt;/strong&gt;: Judging likelihood based on how easily examples come to mind; more memorable = seems more common&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Representativeness Heuristic&lt;/strong&gt;: Judging probability by how similar something is to a prototype or category; ignoring actual base rates&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anchoring Bias&lt;/strong&gt;: Your judgment is disproportionately influenced by an initial number or piece of information&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Framing Effect&lt;/strong&gt;: How a decision is presented (as a gain vs. loss) influences your choice, even with identical outcomes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confirmation Bias&lt;/strong&gt;: Seeking, interpreting, and remembering information that confirms your existing beliefs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overconfidence&lt;/strong&gt;: Overestimating accuracy of your knowledge and decisions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sunk Cost Fallacy&lt;/strong&gt;: Continuing behavior because of past investment rather than future consequences&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cognitive Load&lt;/strong&gt;: The mental effort required; high load impairs judgment and increases reliance on heuristics&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Examples &amp;amp; Classic Experiments
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The Linda Problem (Kahneman &amp;amp; Tversky, 1983)
&lt;/h3&gt;

&lt;p&gt;Participants read: "Linda is 31, single, outspoken, and concerned with social justice." Then rated probability of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;(A) Linda is a bank teller&lt;/li&gt;
&lt;li&gt;(B) Linda is a bank teller &lt;em&gt;and&lt;/em&gt; active in the feminist movement&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most people rated (B) as more likely, violating basic probability rules. (B) cannot be more probable than (A) because all feminist bank tellers are also bank tellers. This is the &lt;strong&gt;representativeness heuristic&lt;/strong&gt; Linda "seems like" a feminist, making (B) feel more probable despite being logically impossible.&lt;/p&gt;

&lt;h3&gt;
  
  
  Anchoring Effect (Tversky &amp;amp; Kahneman, 1974)
&lt;/h3&gt;

&lt;p&gt;Participants were asked if the percentage of African nations in the UN is higher or lower than a random number (either 10 or 65). Then they estimated the actual percentage.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Anchored to 10: Average estimate ~25%&lt;/li&gt;
&lt;li&gt;Anchored to 65: Average estimate ~45%&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The arbitrary number &lt;em&gt;dragged&lt;/em&gt; their estimates. Even when told the anchor was random, it still influenced judgment.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Framing Effect
&lt;/h3&gt;

&lt;p&gt;Two groups making the same choice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gain Frame&lt;/strong&gt;: "This program will save 200 out of 600 lives" → Most choose it&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loss Frame&lt;/strong&gt;: "400 out of 600 will die" → Most avoid it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Identical outcomes, opposite choices. People are &lt;strong&gt;risk averse for gains but risk-seeking for losses&lt;/strong&gt; context rewires decision making.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbthtl4pq08tzrk0egm3f.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbthtl4pq08tzrk0egm3f.gif" alt="thinking" width="396" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Sunk Cost Fallacy
&lt;/h3&gt;

&lt;p&gt;You paid $100 for a concert ticket but don't feel well. Do you go? People often say yes because of the sunk cost. But that $100 is gone regardless only future consequences (health, enjoyment) should matter. Yet we can't ignore past investment, even irrationally.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Heuristics are fast and usually work&lt;/strong&gt; they're not flaws; they're adaptations for a complex world requiring rapid decisions with limited information&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Heuristics systematically fail in predictable ways&lt;/strong&gt; representativeness ignores base rates, availability confuses memorability with frequency, anchoring locks you to irrelevant numbers&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Context frames decisions&lt;/strong&gt; identical choices feel different depending on framing, which aspects are highlighted, and what comparisons come to mind&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;You're overconfident about accuracy&lt;/strong&gt; your subjective certainty correlates poorly with actual correctness; expertise reduces but doesn't eliminate bias&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Cognitive load amplifies bias&lt;/strong&gt; when mental resources are stretched, you lean harder on heuristics and shortcuts; tired, stressed decision makers are more biased&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Final Note
&lt;/h2&gt;

&lt;p&gt;You're not irrational you're rational &lt;em&gt;given the shortcuts your brain uses&lt;/em&gt;. Recognizing these patterns helps you catch errors before decisions solidify, especially when stakes are high and time is short.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk1lmjm4ebfh8hin4ewoh.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk1lmjm4ebfh8hin4ewoh.gif" alt="rational" width="400" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>psychology</category>
      <category>discuss</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Forgetting and False Memories: Why Memory Is Unreliable</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Sun, 19 Jul 2026 04:49:00 +0000</pubDate>
      <link>https://dev.to/extinctsion/forgetting-and-false-memories-why-memory-is-unreliable-2512</link>
      <guid>https://dev.to/extinctsion/forgetting-and-false-memories-why-memory-is-unreliable-2512</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;You're convinced you remember exactly what happened at a birthday party three years ago. But studies show your memory is likely wrong filled with details you've unconsciously fabricated or borrowed from others' stories. Forgetting isn't the only way memory fails us; we also remember things that never happened. Understanding why reveals uncomfortable truths about how malleable memory really is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Decay&lt;/strong&gt;: Information fades over time due to lack of use; traces in memory physically weaken&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interference&lt;/strong&gt;: New information disrupts retrieval of old information (proactive interference) or old information blocks retrieval of new (retroactive interference)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retrieval Failure&lt;/strong&gt;: Information is stored but inaccessible due to missing cues or ineffective search strategies&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Source Confusion&lt;/strong&gt;: Remembering something without accurately recalling where it came from (was it a dream, something you read, or experienced?)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;False Memory&lt;/strong&gt;: Confident memory of an event that didn't happen, or confabulation filling gaps with plausible but fabricated details&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Misinformation Effect&lt;/strong&gt;: Post-event information changes what people remember about the original event&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flashbulb Memory&lt;/strong&gt;: Vivid, detailed memory of a significant event (9/11, a tragic accident) that feels immune to forgetting, but is often inaccurate&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Eyewitness Memory&lt;/strong&gt;: Surprisingly unreliable despite subjective confidence; highly vulnerable to suggestion and reconstruction&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjvuwnzrnte8pcvd0fu44.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjvuwnzrnte8pcvd0fu44.gif" alt="asd" width="498" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Examples &amp;amp; Classic Experiments
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The Misinformation Effect (Loftus &amp;amp; Palmer, 1974)
&lt;/h3&gt;

&lt;p&gt;Participants watched a car accident then answered questions about it. The critical manipulation: asking "How fast were the cars going when they &lt;em&gt;smashed&lt;/em&gt; into each other?" versus "hit" each other.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Smashed group: 41 mph estimate&lt;/li&gt;
&lt;li&gt;Hit group: 34 mph estimate&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A week later, participants who heard "smashed" were more likely to falsely remember seeing broken glass that wasn't there. &lt;strong&gt;Post-event language rewrites memory&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Lost-in-the-Mall Illusion (Loftus, 1995)
&lt;/h3&gt;

&lt;p&gt;Through repeated suggestion and guided imagery, researchers convinced 25% of participants they had experienced being lost in a mall as a child—an event that never happened. Participants generated vivid details about the false event.&lt;/p&gt;

&lt;p&gt;This demonstrated that &lt;strong&gt;false memories can be implanted through social pressure and imagination&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Source Confusion in Action
&lt;/h3&gt;

&lt;p&gt;You hear a statistic on a podcast but later remember it as something you read in a study. The information feels learned but the source is wrong. Or you dream about something and later swear it happened—the emotional intensity of the memory masks its source.&lt;/p&gt;

&lt;h3&gt;
  
  
  Eyewitness Misidentification
&lt;/h3&gt;

&lt;p&gt;Even high-confidence eyewitness identifications are often wrong. The culprit is &lt;strong&gt;memory reconstruction during retrieval&lt;/strong&gt;—each time you recall an event, you're rebuilding it, making it vulnerable to new information and suggestion. Police lineups using live perpetrators vs. photos produce different memory effects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Forgetting has multiple causes&lt;/strong&gt;—decay, interference, and retrieval failure each operate differently; the information might not be lost, just inaccessible&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Memory is reconstructive, not reproductive&lt;/strong&gt;—every recall rebuilds the memory, incorporating current knowledge and suggestions; each retrieval slightly alters what's stored&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Confidence is not accuracy&lt;/strong&gt;—people can be absolutely certain about false memories; feeling confident tells you nothing about whether the memory is true&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Post-event information rewrites memory&lt;/strong&gt;—being told false details about something you witnessed can actually change what you remember; the brain doesn't distinguish between accurate and fabricated details&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Details don't guarantee truth&lt;/strong&gt;—vivid, specific memories of events can be completely false; detail and confidence are products of retrieval effort, not memory accuracy&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Final Note
&lt;/h2&gt;

&lt;p&gt;Your memories feel like videos you can replay, but they're actually stories your brain reconstructs each time. This isn't a flaw unique to you—it's how memory works for everyone. Recognizing this changes how you should trust your own memories and those of others, especially in high-stakes situations like eyewitness testimony.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>beginners</category>
      <category>psychology</category>
    </item>
    <item>
      <title>Memory Systems: How We Store and Recall Information</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Sun, 12 Jul 2026 04:45:00 +0000</pubDate>
      <link>https://dev.to/extinctsion/memory-systems-how-we-store-and-recall-information-3f04</link>
      <guid>https://dev.to/extinctsion/memory-systems-how-we-store-and-recall-information-3f04</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;You remember your first day of school but forget where you put your keys this morning. You can ride a bike without thinking but struggle to recall the name of someone you met last week. These differences reveal that memory isn't a single system—it's multiple systems working in parallel, each optimized for different types of information and timescales.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flgvmaihg2orcgmghwh58.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flgvmaihg2orcgmghwh58.gif" alt="asda" width="450" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sensory Memory&lt;/strong&gt;: Ultra-brief storage of sensory information (milliseconds to seconds). Most is immediately lost; only attended information enters working memory&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Short-Term/Working Memory&lt;/strong&gt;: Active, limited-capacity storage (about 7±2 items) lasting seconds to minutes. Rehearsal can extend duration&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long-Term Memory&lt;/strong&gt;: Unlimited capacity storage lasting hours to decades

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Declarative/Explicit Memory&lt;/strong&gt;: Conscious, intentional recall&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Semantic&lt;/em&gt;: Facts, concepts, general knowledge (Paris is the capital of France)&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Episodic&lt;/em&gt;: Personal experiences and events with context (your graduation day)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Procedural/Implicit Memory&lt;/strong&gt;: Skills and habits that operate automatically (riding a bike, typing)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Encoding&lt;/strong&gt;: Converting information into a form the nervous system can store&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage&lt;/strong&gt;: Maintaining information over time&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retrieval&lt;/strong&gt;: Accessing stored information when needed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forgetting&lt;/strong&gt;: Loss of information due to decay or interference&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consolidation&lt;/strong&gt;: Process of converting temporary memories into stable long-term storage&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Examples &amp;amp; Classic Experiments
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2du9axu76mr9o0ob3mg6.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2du9axu76mr9o0ob3mg6.gif" alt="dasd" width="300" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The Peterson &amp;amp; Peterson Study (1959)
&lt;/h3&gt;

&lt;p&gt;Participants memorized a three-letter consonant trigram (like "XYZ"), then counted backward by 3s for varying durations to prevent rehearsal.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After 3 seconds: ~80% recall&lt;/li&gt;
&lt;li&gt;After 18 seconds: ~10% recall&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This demonstrated that &lt;strong&gt;without rehearsal, short-term memories decay rapidly&lt;/strong&gt;duration depends on active maintenance.&lt;/p&gt;

&lt;h3&gt;
  
  
  Ebbinghaus Forgetting Curve (1885)
&lt;/h3&gt;

&lt;p&gt;Ebbinghaus memorized nonsense syllables and tested recall at intervals:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Forgetting is &lt;em&gt;steepest immediately&lt;/em&gt; after learning&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spaced repetition&lt;/strong&gt; dramatically slows forgetting—reviewing material after 1 day, 1 week, and 1 month maintains memory far longer than cramming&lt;/li&gt;
&lt;li&gt;This is why cramming fails: you're fighting the natural decay of memory&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Encoding Specificity
&lt;/h3&gt;

&lt;p&gt;Study words in one context and recall is better when tested in that same context auditory learning aids auditory recall; visual learning aids visual recall. &lt;strong&gt;The retrieval cues present during testing matter more than you think&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Implicit Memory Phenomena
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Priming&lt;/strong&gt;: Seeing a word makes you faster at recognizing related words, even if you can't consciously recall it&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Motor Learning&lt;/strong&gt;: After practice, riding a bike becomes automatic procedural memory doesn't require conscious attention&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Habit Formation&lt;/strong&gt;: Behavioral patterns become automatic through repetition, resistant to extinction even after conscious learning overrides them&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Memory has multiple timescales&lt;/strong&gt; sensory memory operates in milliseconds, working memory in seconds, long-term memory in years; each serves a different function&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Working memory is severely limited&lt;/strong&gt; about 7 items maximum; this is why phone numbers are ~7 digits and why complex tasks need written support&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Encoding matters more than repetition&lt;/strong&gt; elaboration and semantic processing create stronger memories than passive reading; connecting new information to existing knowledge aids retrieval&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Forgetting is normal and adaptive&lt;/strong&gt; it happens fastest immediately after learning, then plateaus; spaced repetition is the most effective study technique&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Context and retrieval cues are critical&lt;/strong&gt; you remember better in the same environment where you learned, and specific cues unlock memories that seem "forgotten"&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Final Note
&lt;/h2&gt;

&lt;p&gt;Your memory isn't a video recorder, it's a reconstruction process influenced by attention, emotion, and context. Understanding this explains both its remarkable capacity and its surprising failures, and reveals how to work &lt;em&gt;with&lt;/em&gt; your memory system rather than against it.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>beginners</category>
      <category>psychology</category>
    </item>
    <item>
      <title>Operant Conditioning: Rewards, Punishments, and Behavior</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Sun, 05 Jul 2026 04:40:00 +0000</pubDate>
      <link>https://dev.to/extinctsion/operant-conditioning-rewards-punishments-and-behavior-4n89</link>
      <guid>https://dev.to/extinctsion/operant-conditioning-rewards-punishments-and-behavior-4n89</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Why do you check your phone obsessively? Why does your dog sit on command? Why do you study before exams? In each case, your behavior is shaped by consequences rewards and punishments that follow your actions. This is operant conditioning: learning through the outcomes of your behavior.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fporwxazspvsl0wyb0w5a.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fporwxazspvsl0wyb0w5a.gif" alt="rewards" width="498" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Operant Behavior&lt;/strong&gt;: Behavior that is voluntarily emitted and can be shaped by consequences (unlike the automatic responses in classical conditioning)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reinforcement&lt;/strong&gt;: Any consequence that increases the likelihood of a behavior being repeated&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Positive Reinforcement&lt;/strong&gt;: Adding something desirable after a behavior (praise, money, food)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Negative Reinforcement&lt;/strong&gt;: Removing something undesirable after a behavior (turning off a siren when you buckle up)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Punishment&lt;/strong&gt;: Any consequence that decreases the likelihood of a behavior being repeated&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Positive Punishment&lt;/strong&gt;: Adding something undesirable after a behavior (speeding ticket, scolding)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Negative Punishment&lt;/strong&gt;: Removing something desirable after a behavior (losing phone privileges, timeout)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Extinction&lt;/strong&gt;: Withholding reinforcement until the behavior stops&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shaping&lt;/strong&gt;: Reinforcing progressively closer approximations to a desired behavior&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schedules of Reinforcement&lt;/strong&gt;: Patterns of when reinforcement is delivered (continuous, ratio, interval)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Examples &amp;amp; Classic Experiments
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Skinner's Operant Chamber (The "Skinner Box")
&lt;/h3&gt;

&lt;p&gt;B.F. Skinner demonstrated operant conditioning with rats:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Baseline&lt;/strong&gt;: Rat explores box randomly&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shaping&lt;/strong&gt;: Rat is reinforced (food pellet) each time it approaches the lever&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Acquisition&lt;/strong&gt;: Rat learns to press the lever for food&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result&lt;/strong&gt;: Behavior is completely shaped by reinforcement&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This same principle works for pigeons, humans, and even bacteria reinforcement reliably increases behavior.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reinforcement Schedules
&lt;/h3&gt;

&lt;p&gt;Different reinforcement patterns create different behavior patterns:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Continuous Reinforcement&lt;/strong&gt;: Every behavior is rewarded. Learning is fast but extinction is quick stop the reward and behavior stops fast.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Variable Ratio&lt;/strong&gt;: Reward after an unpredictable number of behaviors. This creates &lt;em&gt;persistent behavior&lt;/em&gt; slot machines use this, which is why gambling is so hard to quit. You never know when the next reward comes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Variable Interval&lt;/strong&gt;: Reward available at unpredictable times. This creates steady, consistent behavior like checking email or social media. Something might be there, but you don't know when.&lt;/p&gt;

&lt;h3&gt;
  
  
  Real-World Applications
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Workplace Behavior&lt;/strong&gt;: Bonuses (reinforcement) increase productivity; deadlines with consequences (punishment) motivate completion. Sales commissions (variable ratio) often drive high effort and, sometimes, unethical behavior.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Parenting&lt;/strong&gt;: Praising effort (reinforcement) increases motivation; grounding (positive punishment) decreases misbehavior. But timing matters delayed consequences are less effective.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Addiction&lt;/strong&gt;: Drugs provide immediate, powerful reinforcement. This bypasses rational decision making because the brain prioritizes immediate rewards over long-term consequences.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Consequences shape behavior&lt;/strong&gt; we're not consciously choosing; our nervous system adjusts behavior based on outcomes&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Timing is everything&lt;/strong&gt; reinforcement must come immediately (or very soon) after the behavior, or the association weakens&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Variable reinforcement creates stronger habits&lt;/strong&gt;—unpredictable rewards lead to more persistent behavior than predictable rewards&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Punishment is less effective than reinforcement&lt;/strong&gt; it stops behavior temporarily but doesn't teach what &lt;em&gt;to&lt;/em&gt; do; it can also create fear and resentment&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Reinforcement is more powerful than punishment&lt;/strong&gt; building behavior through rewards is more effective and has better long-term outcomes than controlling through punishment&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Final Note
&lt;/h2&gt;

&lt;p&gt;Understanding operant conditioning reveals why willpower often fails, our environments are designed to reinforce the wrong behaviors. Recognizing this gives you power to restructure your environment and reshape your habits.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F84n06ta2y8ozfadlx1hi.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F84n06ta2y8ozfadlx1hi.gif" alt="habits" width="498" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>psychology</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Classical Conditioning: Learning Through Association</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Sun, 28 Jun 2026 04:35:00 +0000</pubDate>
      <link>https://dev.to/extinctsion/classical-conditioning-learning-through-association-dj9</link>
      <guid>https://dev.to/extinctsion/classical-conditioning-learning-through-association-dj9</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk3we6zjjcbaa9svk1rqj.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk3we6zjjcbaa9svk1rqj.gif" alt="deep learning" width="380" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before you learned to drive, the sound of a siren meant nothing special. Now, it triggers alertness and a quick check of your mirrors. This is classical conditioning a fundamental learning mechanism where we form associations between neutral stimuli and meaningful events. It's how our brains predict what comes next.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Unconditioned Stimulus (UCS)&lt;/strong&gt;: Something that naturally triggers a response without learning (food, pain, loud noise)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unconditioned Response (UCR)&lt;/strong&gt;: The automatic, innate reaction to the UCS (salivation, flinching, startle)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conditioned Stimulus (CS)&lt;/strong&gt;: A neutral stimulus that becomes associated with the UCS through pairing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conditioned Response (CR)&lt;/strong&gt;: The learned response that occurs when the CS is presented alone&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Acquisition&lt;/strong&gt;: The initial learning phase where the association is formed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Extinction&lt;/strong&gt;: When the CR gradually weakens because the CS is no longer paired with the UCS&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spontaneous Recovery&lt;/strong&gt;: The CR reappears after extinction, even without new pairings&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stimulus Generalization&lt;/strong&gt;: Responding to stimuli similar to the original CS&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stimulus Discrimination&lt;/strong&gt;: Learning to respond only to the specific CS, not similar stimuli&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Examples &amp;amp; Classic Experiments
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo37pi1l9lrdu1m6elli4.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo37pi1l9lrdu1m6elli4.gif" alt="experiment" width="498" height="305"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Pavlov's Dogs (1897)
&lt;/h3&gt;

&lt;p&gt;Ivan Pavlov's landmark experiment demonstrated the mechanism:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Before conditioning&lt;/strong&gt;: A bell (neutral) produces no salivation; food (UCS) produces salivation (UCR)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;During conditioning&lt;/strong&gt;: Bell is repeatedly paired with food&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;After conditioning&lt;/strong&gt;: Bell alone (now CS) produces salivation (CR)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The timing matters the bell must come &lt;em&gt;before&lt;/em&gt; the food by a few seconds for the strongest association.&lt;/p&gt;

&lt;h3&gt;
  
  
  Real-World Applications
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Fear Conditioning&lt;/strong&gt;: A child bitten by a dog develops fear not just of that dog, but of dogs in general (generalization). Later, repeated exposure to friendly dogs without negative outcomes can reverse this (extinction).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Taste Aversion&lt;/strong&gt;: Eat bad sushi, then feel sick hours later, and you've formed a lasting aversion even though sushi didn't cause the illness. Your brain made the association quickly to prevent future harm.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Marketing &amp;amp; Branding&lt;/strong&gt;: Advertisers pair logos and music (CS) with positive emotions (UCS) so you feel good when you see the brand. This is classical conditioning applied deliberately.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Limits of Classical Conditioning
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Garcia Effect&lt;/strong&gt;: Taste aversions form with one pairing, but other fears need repeated pairings evolution hardwired us to link illness with food quickly&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Preparedness&lt;/strong&gt;: We condition easily to fear snakes and spiders but rarely to flowers we're biologically predisposed to certain associations&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Associations are powerful&lt;/strong&gt; our brains constantly link events together to predict the future, often without conscious awareness&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Timing is critical&lt;/strong&gt; the CS must precede the UCS by an optimal interval (usually 0.5–5 seconds) for conditioning to occur&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Classical conditioning is automatic&lt;/strong&gt; you don't decide to feel fear or salivate; it happens because your nervous system learned the association&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Extinction doesn't erase learning&lt;/strong&gt; the original association remains; it just gets inhibited by new learning&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Evolutionary context matters&lt;/strong&gt; some associations are easier to form because they increased survival odds (food, threat detection)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Final Note
&lt;/h2&gt;

&lt;p&gt;Classical conditioning explains why you feel calm at a therapist's office after many positive sessions, or anxious before exams. It's not irrational it's your brain working as designed. Understanding this helps us recognize how our environment shapes our responses and gives us tools to reshape them.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>psychology</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Illusions and Perceptual Errors: The Limits of Human Perception</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Sun, 14 Jun 2026 03:31:00 +0000</pubDate>
      <link>https://dev.to/extinctsion/illusions-and-perceptual-errors-the-limits-of-human-perception-2c6a</link>
      <guid>https://dev.to/extinctsion/illusions-and-perceptual-errors-the-limits-of-human-perception-2c6a</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqqobnhjtd5kcdjoetm8y.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqqobnhjtd5kcdjoetm8y.gif" alt="illusion" width="480" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Our brains are powerful pattern recognition machines, but they're far from perfect. What we perceive as reality is actually a constructed interpretation of the world, filled with shortcuts and assumptions. Understanding how and why perception fails reveals fundamental truths about how our minds work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Perceptual Error&lt;/strong&gt;: A mismatch between what we perceive and what actually exists in the world&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Illusion&lt;/strong&gt;: A systematic misperception, our brain consistently misinterprets the same sensory input in the same way&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hallucination&lt;/strong&gt;: Perception without any corresponding sensory stimulus&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gestalt Principles&lt;/strong&gt;: Our brains organize visual information into meaningful groups (proximity, similarity, continuity)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Top-Down Processing&lt;/strong&gt;: What we expect to see influences what we actually perceive&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bottom-Up Processing&lt;/strong&gt;: Raw sensory data that builds toward perception&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Examples &amp;amp; Classic Experiments
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Visual Illusions
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;The Rubin Vase&lt;/strong&gt;: A famous figure-ground illusion where you can see either a vase or two faces, depending on which part you focus on. Your brain treats one area as the "figure" and the rest as "ground" but it keeps switching.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Müller-Lyer Illusion&lt;/strong&gt;: Two lines of equal length appear different because of arrow-like fins at their ends. Even when you measure them and know they're equal, the illusion persists. This shows perception bypasses logic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Motion and Apparent Motion&lt;/strong&gt;: If you see two stationary lights flashing in sequence, your brain perceives continuous movement. This is how movies work still frames create the illusion of motion.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Limits of Attention
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Inattentional Blindness&lt;/strong&gt;: In the famous "invisible gorilla" experiment, people watching a basketball game missed a person in a gorilla suit walking across the court because they were focused on counting passes. We literally don't see what we're not attending to.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Change Blindness&lt;/strong&gt;: We fail to notice even large changes in scenes when our attention is diverted. Our perception isn't a continuous video it's more like snapshots.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Perception is constructed&lt;/strong&gt;, not a direct copy of reality, your brain builds it from limited information and past experience&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Context matters enormously&lt;/strong&gt; the same sensory input can be perceived differently depending on surroundings and expectations&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Attention is selective&lt;/strong&gt;, you can't consciously process everything, so your brain prioritizes based on relevance and prediction&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Illusions reveal normal mechanisms&lt;/strong&gt;, not defects, they show how efficient perceptual systems sometimes backfire&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Individual variation exists&lt;/strong&gt;, people don't perceive identical illusions with equal intensity; experience, culture, and expectations shape perception&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Final Note
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ixule29lb25ws667mdm.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ixule29lb25ws667mdm.gif" alt="illusion" width="431" height="498"&gt;&lt;/a&gt;&lt;br&gt;
The next time you're certain about what you saw or heard, remember: your perception is an educated guess made by your brain, not objective reality. That's not a flaw, it's a feature that lets us navigate the world efficiently despite sensory limitations.&lt;/p&gt;

</description>
      <category>psychology</category>
      <category>discuss</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Visual Perception: How We Interpret the World</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Sun, 07 Jun 2026 02:51:00 +0000</pubDate>
      <link>https://dev.to/extinctsion/visual-perception-how-we-interpret-the-world-a1l</link>
      <guid>https://dev.to/extinctsion/visual-perception-how-we-interpret-the-world-a1l</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy0ledwun8giyxgk9s4dn.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy0ledwun8giyxgk9s4dn.gif" alt="cat eye" width="360" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Our eyes capture light, but our brains construct reality. Visual perception is far more complex than simply seeing, it's an active process of interpretation shaped by neural processing, prior knowledge, and context.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Transduction&lt;/strong&gt;: Light energy converts into neural signals that the brain processes. The retina's photoreceptors (rods and cones) translate visual stimuli into electrical impulses.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Sensation vs. Perception&lt;/strong&gt;: Sensation is raw sensory input; perception is how the brain organizes and interprets that input to create meaning.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Bottom-Up Processing&lt;/strong&gt;: Information flows from sensory receptors upward through the visual system. It's data-driven—determined by stimulus properties.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Top-Down Processing&lt;/strong&gt;: Prior knowledge, expectations, and context influence what we perceive. Our brains predict what we should see based on experience.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Feature Detection&lt;/strong&gt;: The visual cortex contains specialized neurons that respond to specific features—orientation, color, motion, and edges (discovered by Hubel &amp;amp; Wiesel's Nobel Prize-winning work).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Gestalt Principles&lt;/strong&gt;: We organize visual elements using principles like proximity, similarity, continuity, and closure. We see patterns, not isolated lines.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Experiments &amp;amp; Examples
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The Blind Spot&lt;/strong&gt;: Each eye has a region where the optic nerve exits, creating a blind spot. Yet we don't perceive a "hole" in our vision. The brain fills in missing information, a phenomenon called &lt;em&gt;filling in&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ambiguous Figures&lt;/strong&gt;: The famous vase-faces illusion shows how perception flips between interpretations. Both images are present, but your brain selects one interpretation at a time, demonstrating that perception is constructive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kanizsa Triangle&lt;/strong&gt;: You "see" a white triangle in this figure, but no triangle is actually drawn. Your brain completes the shape using the Gestalt closure principle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Change Blindness&lt;/strong&gt;: When scenes contain subtle changes, observers often miss them—even when looking directly at the changing object. This reveals that we don't perceive everything in our visual field with equal detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Perception is constructed, not passively received.&lt;/strong&gt; The brain actively interprets sensory data using both bottom-up (stimulus-driven) and top-down (knowledge-driven) processes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Context matters enormously.&lt;/strong&gt; Expectations shaped by experience determine what we perceive. The same image can look different depending on context.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Feature detection is specialized.&lt;/strong&gt; The visual cortex has dedicated neural circuits for processing specific visual properties, enabling efficient processing of complex scenes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;We fill in gaps constantly.&lt;/strong&gt; The brain doesn't wait for complete information—it predicts, infers, and completes based on patterns and past experience.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Attention is selective.&lt;/strong&gt; We don't perceive everything equally. Attention shapes perception, directing processing resources to behaviorally relevant information.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw6a991gdkuo55jw5kcwb.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw6a991gdkuo55jw5kcwb.gif" alt="side eye" width="498" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Visual perception reveals a fundamental truth: seeing is believing, but believing also shapes seeing. Our brains are prediction machines that use visual input as evidence, not a direct window to reality. Understanding this helps explain optical illusions, attention failures, and why eyewitness testimony can be unreliable—a reminder that perception is interpretation.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>psychology</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Neuropsychology: What Brain Damage Reveals About the Mind</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Sun, 24 May 2026 04:00:00 +0000</pubDate>
      <link>https://dev.to/extinctsion/neuropsychology-what-brain-damage-reveals-about-the-mind-1o62</link>
      <guid>https://dev.to/extinctsion/neuropsychology-what-brain-damage-reveals-about-the-mind-1o62</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8untgcwwxgk2mbqlz8sq.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8untgcwwxgk2mbqlz8sq.gif" alt="brain" width="498" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Neuropsychology teaches us that the brain is modular—different regions handle different functions. By studying what happens when these regions are damaged, we've learned more about how our minds work than almost any other method in psychology.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Localization of Function&lt;/strong&gt;: Specific brain regions are responsible for specific abilities (speech, memory, motor control, etc.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lesion Studies&lt;/strong&gt;: When a brain area is damaged, we can infer what that area normally does by observing what the person can no longer do&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dissociation&lt;/strong&gt;: A person loses one ability while keeping others intact, proving those functions are separate&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Double Dissociation&lt;/strong&gt;: Two people lose different abilities from different brain damage, confirming separate systems&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What Brain Damage Has Taught Us
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The Case of Phineas Gage (1848)
&lt;/h3&gt;

&lt;p&gt;A railroad worker's tamping iron pierced his frontal lobe. Before: responsible, polite. After: impulsive, aggressive, poor judgment. This showed us the frontal lobe handles personality and decision-making, not just movement.&lt;/p&gt;

&lt;h3&gt;
  
  
  H.M. – The Man Without New Memories
&lt;/h3&gt;

&lt;p&gt;H.M. had his hippocampus removed to treat severe epilepsy. He could recall his past, but couldn't form new long-term memories. Lesson: the hippocampus is essential for &lt;em&gt;encoding&lt;/em&gt; new memories, not retrieving old ones.&lt;/p&gt;

&lt;h3&gt;
  
  
  Broca's Area vs. Wernicke's Area
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Broca's Aphasia&lt;/strong&gt; (frontal lobe damage): People struggle to &lt;em&gt;produce&lt;/em&gt; speech but understand it. They speak slowly, effortfully, with words like "the," "and" often missing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wernicke's Aphasia&lt;/strong&gt; (temporal lobe damage): People speak fluently but don't &lt;em&gt;understand&lt;/em&gt; speech and often say nonsensical things.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This dissociation proved speech production and comprehension are separate neural systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  Split-Brain Research
&lt;/h3&gt;

&lt;p&gt;When the corpus callosum (connecting left and right hemispheres) is severed, the two halves operate independently. The left hemisphere controls language; the right handles spatial awareness. This revealed the brain isn't one unified system—it's a collection of specialized modules.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The brain is modular&lt;/strong&gt;: Functions are localized to specific regions. Damage to one region impairs that function while leaving others intact.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;We learn from loss&lt;/strong&gt;: Neuropsychology relies on identifying what's broken to understand what normally works. This principle extends beyond neurology—it's fundamental to how we study systems.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Dissociations matter&lt;/strong&gt;: Two people can have opposite deficits from different brain damage. This proves the brain doesn't use a single "master system" for everything.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Memory isn't one thing&lt;/strong&gt;: H.M. taught us there are multiple memory systems (short-term, long-term, procedural). Each relies on different brain structures.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Language has modules&lt;/strong&gt;: Broca's and Wernicke's areas show that even within language, the brain separates production from comprehension.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Final Note
&lt;/h2&gt;

&lt;p&gt;Modern neuroscience uses fMRI and PET scans to confirm these insights, but the principles came from careful observation of brain damage. Neuropsychology reminds us: sometimes the best way to understand how something works is to see what happens when it breaks.&lt;/p&gt;

&lt;h3&gt;
  
  
  Disclaimer
&lt;/h3&gt;

&lt;p&gt;This article series is based on the &lt;strong&gt;MIT Introduction to Psychology&lt;/strong&gt; course lectures. The content written here reflects my personal understanding and interpretation of the topics after going through the lectures.&lt;/p&gt;

&lt;p&gt;These articles are created for learning and educational purposes only. I do not claim ownership of the original course material, and all credit for the concepts and teachings belongs to the instructors and MIT OpenCourseWare.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6wn6o238yan5z4k1vnwk.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6wn6o238yan5z4k1vnwk.gif" alt="bye" width="260" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>psychology</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Research Methods in Psychology: How We Study Human Behavior</title>
      <dc:creator>Aditya</dc:creator>
      <pubDate>Sun, 10 May 2026 03:30:00 +0000</pubDate>
      <link>https://dev.to/extinctsion/research-methods-in-psychology-how-we-study-human-behavior-3pb5</link>
      <guid>https://dev.to/extinctsion/research-methods-in-psychology-how-we-study-human-behavior-3pb5</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw8cdzjjqdzv6mmuj40hg.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw8cdzjjqdzv6mmuj40hg.gif" alt="psychology" width="450" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Psychology uses structured methods to understand behavior, thoughts, and feelings. This article summarizes the core research approaches that make psychological findings reliable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Experimental design tests cause and effect using controlled variables.&lt;/li&gt;
&lt;li&gt;Observational research records behavior without interference.&lt;/li&gt;
&lt;li&gt;Surveys and questionnaires collect self-reported attitudes and experiences.&lt;/li&gt;
&lt;li&gt;Correlation identifies relationships but does not prove causation.&lt;/li&gt;
&lt;li&gt;Ethical standards protect participants and ensure results are valid.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Examples / Experiments
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Laboratory experiments isolate variables, such as measuring how sleep affects memory.&lt;/li&gt;
&lt;li&gt;Naturalistic observation studies behavior in real settings, like children at play.&lt;/li&gt;
&lt;li&gt;Longitudinal studies follow the same people over time to track development.&lt;/li&gt;
&lt;li&gt;Case studies examine one individual in depth, often revealing rare conditions.&lt;/li&gt;
&lt;li&gt;Cross-sectional studies compare different groups at a single time point.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Research methods shape what psychologists can learn and how strongly they can conclude.&lt;/li&gt;
&lt;li&gt;Controlled experiments are best for testing cause and effect.&lt;/li&gt;
&lt;li&gt;Observational and survey methods are useful for real-world behavior and attitudes.&lt;/li&gt;
&lt;li&gt;Correlation can point to links, but only experiments support causal claims.&lt;/li&gt;
&lt;li&gt;Ethical research requires consent, privacy, and careful treatment of participants.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final Note
&lt;/h2&gt;

&lt;p&gt;A strong grasp of research methods helps you evaluate psychological claims and distinguish evidence from opinion. Keep these core ideas in mind when reviewing studies.&lt;/p&gt;

&lt;h3&gt;
  
  
  Disclaimer
&lt;/h3&gt;

&lt;p&gt;This article series is based on the &lt;strong&gt;MIT Introduction to Psychology&lt;/strong&gt; course lectures. The content written here reflects my personal understanding and interpretation of the topics after going through the lectures.&lt;/p&gt;

&lt;p&gt;These articles are created for learning and educational purposes only. I do not claim ownership of the original course material, and all credit for the concepts and teachings belongs to the instructors and MIT OpenCourseWare.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fib856w08x0mix9xe8af8.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fib856w08x0mix9xe8af8.gif" alt="bye" width="498" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>psychology</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
