Learning Coding

Learning coding is not easy, but here are some steps we can follow to boost our efficiency.

Steps

  1. Learn to learn.
    • Feynman technique
      • Steps in general
        1. Choose a topic.
        2. Explain it to a 12 year old.
        3. Reflect, refine, and simplify.
        4. Organize and review.
      • Steps for coding
        1. Choose a product.
        2. Explain the tech to someone or in a blog post/video.
        3. Build a MVP fast.
        4. Refactor and share.
    • Learn and retain problem solving patterns over programming language syntax.
  2. Go and build something.
    • Code with the mindset of prioritizing correctness, and then readability, and then performance.
    • Code it ourselves.
      • Try to design and implement things before asking AI. If we see the AI's answer first, our thought process tends to anchor to its solution and loses the opportunity for critical thinking.
    • Code with AI.
      • Start new AI chat for each distinct task to keep context focused and minimal.
      • Let AI generate a basic implementation.
      • Question architectural decisions and refactor the generated code into smaller, focused modules.
      • Strengthen type definitions and interfaces.
      • Document architectural decision and module boundary.
        • Use AI-generated description as a supplement rather than a replacement of manual-written ones.
        • Add comments to clarify the reason why a piece of code exists.
      • Add edge case and error handling.

See also

←Previous Next→