User Tools

Site Tools


ai:prompt:learning-new-technologies

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ai:prompt:learning-new-technologies [2026/06/17 06:44] – created phong2018ai:prompt:learning-new-technologies [2026/06/18 00:36] (current) phong2018
Line 1: Line 1:
 +When learning any tech (Kafka, Redis, TCP, etc.):
 +
 +1. Start with WHY (Purpose / Motivation: most important first): Why does this exist?
 +
 +2. Then WHAT (Concept / Definition: structure, components): What is it?
 +
 +3. Then HOW (Implementation / Usage: flow, example, code)
 +
 +4. Then build something small
 +
 +5. Final summay by yourself (why, what, how)
 +
 +
 +
 ====== Framework: Learn Any Technology from First Principles ====== ====== Framework: Learn Any Technology from First Principles ======
  
Line 433: Line 447:
 Theory lasts. Theory lasts.
  
 +=======Claude.ai=======
 +
 +====== Prompts to Learn the Theory Behind Any Technology ======
 +
 +===== Core Prompt Templates =====
 +
 +==== 1. The "Mental Model First" Prompt ====
 +  Before explaining how to use [technology/concept], explain:
 +  - What problem does it solve?
 +  - What is the core theory/principle behind it?
 +  - What are the fundamental building blocks?
 +  - How does the theory map to the implementation?
 +
 +==== 2. The "Taxonomy" Prompt ====
 +  Give me a taxonomy of [topic].
 +  - What are the main categories?
 +  - What theory does each category come from?
 +  - When would you choose one over another?
 +  Example: "Give me a taxonomy of authentication methods and the theory behind each"
 +
 +==== 3. The "Why Does This Exist" Prompt ====
 +  Explain [technology] from first principles:
 +  - What problem existed before it?
 +  - What theoretical insight solved it?
 +  - How does the implementation reflect that theory?
 +  - What tradeoffs did the design make?
 +
 +==== 4. The "Layer by Layer" Prompt ====
 +  Explain [technology] in layers:
 +  - Layer 1: The math/science/theory underneath
 +  - Layer 2: The abstract concept built on that
 +  - Layer 3: The protocol/standard that implements it
 +  - Layer 4: The library/tool I actually use
 +  Example: "Explain JWT in layers from cryptography theory to Express middleware"
 +
 +==== 5. The "Compare From Theory" Prompt ====
 +  Compare [A] vs [B] vs [C] starting from theory:
 +  - What shared theory do they come from?
 +  - Where does each one diverge in its approach?
 +  - What does each tradeoff to gain something else?
 +  Example: "Compare symmetric vs asymmetric encryption vs hashing from theory"
 +
 +===== Applied to Your Examples =====
 +
 +^ Topic          ^ Prompt to Use                                                                                                                                 ^
 +| **Auth**       | //Give me a taxonomy of authentication. Start from the theory of identity verification, then map each method (password, API key, JWT, session) to that theory// |
 +| **Encryption** | //Explain encryption from first principles — what is the mathematical problem each type relies on, and how does that lead to symmetric vs asymmetric?//          |
 +| **SSO**        | //Why does SSO exist? Explain the theory of federated identity, then show how SAML/OAuth/OIDC each implement that theory differently//                           |
 +| **Databases**  | //Explain database indexing in layers — from the data structure theory (B-tree, hash) to how Postgres implements it//                                            |
 +
 +===== Master Prompt (Reusable) =====
 +
 +  I'm learning [technology/concept]. Don't start with how to use it.
 +  Instead:
 +  1. What is the core theory or problem it's based on?
 +  2. What are the main categories or approaches, and why do they differ?
 +  3. How does the theory translate into the actual implementation?
 +  4. What are common misconceptions people have when they skip the theory?
 +  
 +  Then give me a concrete example that connects theory → implementation.
 +
 +> This gives you **the why before the how**, so implementation always makes sense instead of feeling like memorization.
ai/prompt/learning-new-technologies.1781678644.txt.gz · Last modified: by phong2018