[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"academy-blogs-en-1-1-all-5-prompt-templates-developers-ai-productivity-all--*":3,"academy-blog-translations-dyte0oh3ph91buj":81},{"data":4,"page":80,"perPage":80,"totalItems":80,"totalPages":80},[5],{"alt":6,"collectionId":7,"collectionName":8,"content":9,"cover_image":10,"cover_image_path":11,"created":12,"created_by":13,"expand":14,"id":75,"keywords":76,"locale":49,"published_at":77,"scheduled_at":13,"school_blog":71,"short_description":78,"status":69,"title":6,"updated":79,"updated_by":13,"slug":72,"views":74},"5 Prompt Templates Every Developer Should Save","sclblg987654321","school_blog_translations","\u003Cp>AI has become an essential partner for developers. Knowing how to use AI effectively isn't just a supplementary skill anymore it's a necessity. But the problems many people encounter are:\u003C\u002Fp>\u003Cul>\u003Cli>Spending too much time writing prompts to get good results\u003C\u002Fli>\u003Cli>Getting answers that don't match their needs\u003C\u002Fli>\u003Cli>Having to go back and forth multiple rounds before getting usable code\u003C\u002Fli>\u003Cli>Not knowing what to ask to get the best answers\u003C\u002Fli>\u003Cli>Wasting time thinking up new prompts every time for similar tasks\u003C\u002Fli>\u003C\u002Ful>\u003Cp>Impact: Not having good prompt templates means many developers only use 30% of AI's true potential, losing time to trial and error and getting incomplete results.\u003C\u002Fp>\u003Cp>Wouldn't it be better to use ready made templates designed specifically for developers that give good results every time, without having to think anew or trial and error just use them directly?\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch2>5 Prompt Templates\u003C\u002Fh2>\u003Ch3>Template 1: Code Review and Bug Fixing\u003C\u002Fh3>\u003Cp>When to use:\u003C\u002Fp>\u003Cul>\u003Cli>Need AI to help review code\u003C\u002Fli>\u003Cli>Have bugs that can't be fixed\u003C\u002Fli>\u003Cli>Want advice on code improvement\u003C\u002Fli>\u003C\u002Ful>\u003Cp>Template:\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext\">Help me review this code:\n\nLanguage: [JavaScript\u002FPython\u002Fetc.]\nFunction: [Explain what this code does]\nProblem: [Specify the problem, or leave blank for general review]\n\n[Code to be reviewed]\n\nPlease tell me:\n1. What bugs exist\n2. Is the code quality good (readable, fast)\n3. Are there any security vulnerabilities\n4. Improvement recommendations\n5. Provide a better version of the code\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>Example:\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext\">Help me review this code:\n\nLanguage: JavaScript\nFunction: Login function for web\nProblem: Sometimes login fails, don't know why\n\nfunction login(username, password) {\n    if (username &amp;&amp; password) {\n        fetch('\u002Fapi\u002Flogin', {\n            method: 'POST',\n            body: JSON.stringify({username, password})\n        }).then(response =&gt; response.json())\n          .then(data =&gt; {\n              if (data.success) {\n                  localStorage.setItem('token', data.token);\n                  window.location.href = '\u002Fdashboard';\n              }\n          });\n    }\n}\n\nPlease tell me:\n1. What bugs exist\n2. Is the code quality good (readable, fast)\n3. Are there any security vulnerabilities\n4. Improvement recommendations\n5. Provide a better version of the code\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>Template 2: Learning New Technology\u003C\u002Fh3>\u003Cp>When to use:\u003C\u002Fp>\u003Cul>\u003Cli>Need to learn new technology\u003C\u002Fli>\u003Cli>Don't understand difficult concepts\u003C\u002Fli>\u003Cli>Want real world usage examples\u003C\u002Fli>\u003C\u002Ful>\u003Cp>Template:\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext\">Please teach me about [topic]\n\nMy level: [Beginner\u002FIntermediate\u002FAdvanced]\nWill use for: [Tell what you'll use it for]\n\nPlease explain:\n1. What it is (use simple words)\n2. Compare to real-life things\n3. Give usable code examples (with explanatory comments)\n4. Common mistakes beginners make\n5. What to learn next\n6. Give practice exercises\n\nExplain step by step, starting simple then getting harder\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>Template 3: Quick Feature Creation\u003C\u002Fh3>\u003Cp>When to use:\u003C\u002Fp>\u003Cul>\u003Cli>Need to create new features quickly\u003C\u002Fli>\u003Cli>Want ready to use code\u003C\u002Fli>\u003Cli>Limited time\u003C\u002Fli>\u003C\u002Ful>\u003Cp>Template:\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext\">Help me create [feature\u002Ffunction]\n\nGoal: [Say what you want]\nTechnology: [React, Node.js, etc.]\nConstraints: [Time, performance, browser support]\n\nRequirements:\n- [Requirement 1]\n- [Requirement 2]\n- [Requirement 3]\n\nPlease provide:\n1. Ready-to-use code\n2. Installation\u002Fsetup instructions\n3. Usage examples\n4. How to handle special cases\n5. Basic test code\n\nFocus on simple and stable rather than complex\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>Tips included:\u003C\u002Fp>\u003Cul>\u003Cli>Include lots of details for accurate answers\u003C\u002Fli>\u003Cli>Include error messages if you have them\u003C\u002Fli>\u003Cli>Specify environment (Node.js version, browser support)\u003C\u002Fli>\u003Cli>Don't be shy about saying you're a beginner\u003C\u002Fli>\u003Cli>Ask for comparisons to understand better\u003C\u002Fli>\u003Cli>Request examples relevant to real work\u003C\u002Fli>\u003Cli>Clearly state constraints to get truly usable code\u003C\u002Fli>\u003Cli>Ask for error handling too\u003C\u002Fli>\u003Cli>Request usage examples to know how to integrate\u003C\u002Fli>\u003C\u002Ful>\u003Ch3>Template 4: Writing Tests\u003C\u002Fh3>\u003Cp>When to use:\u003C\u002Fp>\u003Cul>\u003Cli>Don't know what to test\u003C\u002Fli>\u003Cli>Need comprehensive test coverage\u003C\u002Fli>\u003Cli>Need to mock dependencies\u003C\u002Fli>\u003C\u002Ful>\u003Cp>Template:\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext\">Help me write tests for this code:\n\nFramework: [Jest\u002FMocha\u002FCypress]\nType: [Component\u002FFunction\u002FAPI]\nGoal: [Unit\u002FIntegration\u002FE2E tests]\n\n[Code to be tested]\n\nPlease provide:\n1. Test plan (what should be tested)\n2. Complete list of test cases\n3. Working test code\n4. How to mock dependencies\n5. Testing edge cases and errors\n6. Performance tests (if necessary)\n\nNeed both positive and negative cases\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>Example:\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext\">Help me write tests for this code:\n\nFramework: Jest + React Testing Library\nType: React Component\nGoal: Unit tests + some integration\n\nfunction UserSearch({ onUserSelect }) {\n    const [query, setQuery] = useState('');\n    const [users, setUsers] = useState([]);\n    const [loading, setLoading] = useState(false);\n\n    const searchUsers = async (searchQuery) =&gt; {\n        setLoading(true);\n        try {\n            const response = await fetch(`\u002Fapi\u002Fusers?q=${searchQuery}`);\n            const data = await response.json();\n            setUsers(data.users || []);\n        } catch (error) {\n            setUsers([]);\n        } finally {\n            setLoading(false);\n        }\n    };\n\n    return (\n        &lt;div&gt;\n            &lt;input \n                value={query}\n                onChange={(e) =&gt; setQuery(e.target.value)}\n                onKeyPress={(e) =&gt; e.key === 'Enter' &amp;&amp; searchUsers(query)}\n            \u002F&gt;\n            {loading &amp;&amp; &lt;div&gt;Loading...&lt;\u002Fdiv&gt;}\n            {users.map(user =&gt; (\n                &lt;div key={user.id} onClick={() =&gt; onUserSelect(user)}&gt;\n                    {user.name}\n                &lt;\u002Fdiv&gt;\n            ))}\n        &lt;\u002Fdiv&gt;\n    );\n}\n\nPlease provide:\n1. Test plan (what should be tested)\n2. Complete list of test cases\n3. Working test code\n4. How to mock dependencies\n5. Testing edge cases and errors\n6. Performance tests (if necessary)\n\nNeed both positive and negative cases\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>Template 5: Code Improvement\u003C\u002Fh3>\u003Cp>When to use:\u003C\u002Fp>\u003Cul>\u003Cli>Code runs slowly\u003C\u002Fli>\u003Cli>Code is hard to read or maintain\u003C\u002Fli>\u003Cli>Lots of duplicate code\u003C\u002Fli>\u003C\u002Ful>\u003Cp>Template:\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext\">Help me improve this code to make it [faster\u002Fmore readable\u002Feasier to maintain]\n\nCurrent problems: [Describe issues you're experiencing]\nRequirements: [e.g., load in under 2 seconds]\nConstraints: [e.g., must be compatible with existing code]\nPriority order: [Speed\u002FReadability\u002FMaintainability]\n\nOriginal code:\n[Paste code here]\n\nPlease tell me:\n1. What are the problems and where are the bottlenecks\n2. Improved code with explanations\n3. How much better will it be\n4. What might break in the original code\n5. How to change safely\n6. Other approaches possible\n\nFocus on high-impact, low-risk improvements\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>Example:\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext\">Help me improve this code to make it faster and more readable\n\nCurrent problems: Page loads slowly, code is hard to read, lots of duplicate logic\nRequirements: Load in under 2 seconds on 3G\nConstraints: Existing API must still work\nPriority order: Speed &gt; Readability &gt; Maintainability\n\nOriginal code:\nfunction ProductList() {\n    const [products, setProducts] = useState([]);\n    const [categories, setCategories] = useState([]);\n    const [selectedCategory, setSelectedCategory] = useState('all');\n\n    useEffect(() =&gt; {\n        fetch('\u002Fapi\u002Fproducts')\n            .then(res =&gt; res.json())\n            .then(data =&gt; setProducts(data));\n        \n        fetch('\u002Fapi\u002Fcategories')\n            .then(res =&gt; res.json())\n            .then(data =&gt; setCategories(data));\n    }, []);\n\n    const filteredProducts = products.filter(product =&gt; {\n        if (selectedCategory === 'all') return true;\n        return product.category === selectedCategory;\n    });\n\n    return (\n        &lt;div&gt;\n            &lt;select onChange={(e) =&gt; setSelectedCategory(e.target.value)}&gt;\n                &lt;option value=\"all\"&gt;All Categories&lt;\u002Foption&gt;\n                {categories.map(cat =&gt; (\n                    &lt;option key={cat.id} value={cat.name}&gt;{cat.name}&lt;\u002Foption&gt;\n                ))}\n            &lt;\u002Fselect&gt;\n            \n            {filteredProducts.map(product =&gt; (\n                &lt;div key={product.id}&gt;\n                    &lt;img src={product.image} alt={product.name} \u002F&gt;\n                    &lt;h3&gt;{product.name}&lt;\u002Fh3&gt;\n                    &lt;p&gt;${product.price}&lt;\u002Fp&gt;\n                &lt;\u002Fdiv&gt;\n            ))}\n        &lt;\u002Fdiv&gt;\n    );\n}\n\nPlease tell me:\n1. What are the problems and where are the bottlenecks\n2. Improved code with explanations\n3. How much better will it be\n4. What might break in the original code\n5. How to change safely\n6. Other approaches possible\n\nFocus on high-impact, low-risk improvements\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch2>Techniques for Using Templates Effectively\u003C\u002Fh2>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cfigure class=\"image image_resized\" style=\"width:75%;\">\u003Cimg style=\"aspect-ratio:6000\u002F6000;\" src=\"https:\u002F\u002Fimagedelivery.net\u002Fg5Z0xlCQah-oO61sLqaEUA\u002F80_11zon_ba3e4a7340\u002Ftwsme\" alt=\"Techniques for Using Templates Effectively\" width=\"6000\" height=\"6000\">\u003C\u002Ffigure>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch3>1. Customize for Your Project\u003C\u002Fh3>\u003Cp>Keep project information and include in templates:\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext\">Project uses: React 18 + TypeScript + Material-UI v5\nTarget: Modern browsers\nTeam: 5 people\nCoding Style: Airbnb ESLint\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>2. Follow Up After Getting Answers\u003C\u002Fh3>\u003Cul>\u003Cli>\"Explain line X in more detail\"\u003C\u002Fli>\u003Cli>\"What are the downsides of this approach?\"\u003C\u002Fli>\u003Cli>\"Will this work if the data gets much larger?\"\u003C\u002Fli>\u003Cli>\"Are there other ways to do this?\"\u003C\u002Fli>\u003C\u002Ful>\u003Ch3>3. Save Good Versions\u003C\u002Fh3>\u003Cp>When you modify a template and get good results, save it with notes:\u003C\u002Fp>\u003Cul>\u003Cli>Which project it was used for\u003C\u002Fli>\u003Cli>Date used\u003C\u002Fli>\u003Cli>What the results were like\u003C\u002Fli>\u003C\u002Ful>\u003Ch3>4. Break Large Tasks into Multiple Prompts\u003C\u002Fh3>\u003Cp>Large tasks should be divided into:\u003C\u002Fp>\u003Cul>\u003Cli>Problem analysis\u003C\u002Fli>\u003Cli>Solution design\u003C\u002Fli>\u003Cli>Writing code\u003C\u002Fli>\u003Cli>Writing tests\u003C\u002Fli>\u003Cli>Performance optimization\u003C\u002Fli>\u003C\u002Ful>\u003Cp>Tips for each template:\u003C\u002Fp>\u003Cul>\u003Cli>Template 4: Specify framework clearly for correct syntax, ask for test plan to know what to test, ask for mocking methods because you'll definitely need them\u003C\u002Fli>\u003Cli>Template 5: Describe problems clearly for targeted advice, set priority order for appropriate solutions, ask for safe change methods\u003C\u002Fli>\u003C\u002Ful>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch2>Ways to Store Templates\u003C\u002Fh2>\u003Ch3>Option 1: Text Snippets\u003C\u002Fh3>\u003Cul>\u003Cli>VS Code: Use User Snippets\u003C\u002Fli>\u003Cli>Notion: Create Template pages\u003C\u002Fli>\u003Cli>Note apps: Store in note taking apps\u003C\u002Fli>\u003C\u002Ful>\u003Ch3>Option 2: Browser Shortcuts\u003C\u002Fh3>\u003Cp>Create bookmarks that open templates in a textarea:\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-javascript\">javascript:(function(){\n    var template = \"Help me review this code...\";\n    var newWindow = window.open('', '', 'width=800,height=600');\n    newWindow.document.write('&lt;textarea style=\"width:100%;height:100%\"&gt;' + template + '&lt;\u002Ftextarea&gt;');\n})();\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>Option 3: CLI Tool\u003C\u002Fh3>\u003Cp>Create command line tools for opening templates\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Chr>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch3>Summary\u003C\u002Fh3>\u003Cp>These 5 Templates cover the main tasks of developers:\u003C\u002Fp>\u003Col>\u003Cli>Code Review and Bug Fixing - Solve code problems\u003C\u002Fli>\u003Cli>Learning New Technology - Learn new technologies\u003C\u002Fli>\u003Cli>Quick Feature Creation - Implement features rapidly\u003C\u002Fli>\u003Cli>Writing Tests - Handle testing\u003C\u002Fli>\u003Cli>Code Improvement - Refactor and optimize\u003C\u002Fli>\u003C\u002Fol>\u003Ch3>Key Points to Remember:\u003C\u002Fh3>\u003Cul>\u003Cli>Include lots of details for better answers\u003C\u002Fli>\u003Cli>Customize for your own project\u003C\u002Fli>\u003Cli>Save versions that work well\u003C\u002Fli>\u003Cli>Ask follow up questions when you need clarity\u003C\u002Fli>\u003C\u002Ful>\u003Cp>Templates are just the starting point. Customizing them for real work will give you the best results!\u003C\u002Fp>\u003Cp>\u003Cstrong>🔵 Facebook: \u003C\u002Fstrong>\u003Ca target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\u002F\u002Fwww.facebook.com\u002Fsuperdev.school.th\">\u003Cstrong>Superdev School &nbsp;(Superdev)\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Fp>\u003Cp>\u003Cstrong>📸 Instagram: \u003C\u002Fstrong>\u003Ca target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\u002F\u002Fwww.instagram.com\u002Fsuperdevschool\u002F\">\u003Cstrong>superdevschool\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Fp>\u003Cp>\u003Cstrong>🎬 TikTok: \u003C\u002Fstrong>\u003Ca target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\u002F\u002Fwww.tiktok.com\u002F@superdevschool\">\u003Cstrong>superdevschool\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Fp>\u003Cp class=\"\" data-start=\"5978\" data-end=\"6095\">\u003Cstrong>🌐 Website: \u003C\u002Fstrong>\u003Ca target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\u002F\u002Fwww.superdev.school\u002F\">\u003Cstrong>www.superdev.school\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Fp>","8_11zon_o0wdfloo27.webp","https:\u002F\u002Ftwsme-r2.tumwebsme.com\u002Fsclblg987654321\u002Fvde1yrfnwialcrq\u002F8_11zon_o0wdfloo27.webp","2026-03-04 08:47:39.105Z","",{"keywords":15,"locale":43,"school_blog":53},[16,23,28,33,38],{"collectionId":17,"collectionName":18,"created":19,"created_by":13,"id":20,"name":21,"updated":22,"updated_by":13},"sclkey987654321","school_keywords","2026-03-04 08:47:37.997Z","sw7fgsci7w6xhny","Prompt Templates","2026-04-10 16:13:31.905Z",{"collectionId":17,"collectionName":18,"created":24,"created_by":13,"id":25,"name":26,"updated":27,"updated_by":13},"2026-03-04 08:47:38.428Z","4ijgn2uqekufq5g","AI coding tools","2026-04-10 16:13:32.053Z",{"collectionId":17,"collectionName":18,"created":29,"created_by":13,"id":30,"name":31,"updated":32,"updated_by":13},"2026-03-04 08:45:16.585Z","h61ztnkgd0y3ooz","developer tools","2026-04-10 16:12:56.507Z",{"collectionId":17,"collectionName":18,"created":34,"created_by":13,"id":35,"name":36,"updated":37,"updated_by":13},"2026-03-04 08:47:19.476Z","w78r7qflj698r6y","Developer","2026-04-10 16:13:27.311Z",{"collectionId":17,"collectionName":18,"created":39,"created_by":13,"id":40,"name":41,"updated":42,"updated_by":13},"2026-03-04 08:47:38.695Z","q11m5xik12lu4ui","coding tips","2026-04-10 16:13:32.201Z",{"code":44,"collectionId":45,"collectionName":46,"created":47,"flag":48,"id":49,"is_default":50,"label":51,"updated":52},"en","pbc_1989393366","locales","2026-01-22 11:00:02.726Z","twemoji:flag-united-states","qv9c1llfov2d88z",false,"English","2026-04-10 15:42:46.825Z",{"category":54,"collectionId":55,"collectionName":56,"created":13,"expand":57,"id":71,"slug":72,"updated":73,"views":74},"spm4l1k5bgmhmmt","pbc_2105096300","school_blogs",{"category":58},{"blogIds":59,"collectionId":60,"collectionName":61,"created":62,"created_by":13,"id":54,"image":63,"image_alt":13,"image_path":64,"label":65,"name":66,"priority":67,"publish_at":68,"scheduled_at":13,"status":69,"updated":70,"updated_by":13},[],"sclcatblg987654321","school_category_blogs","2026-03-04 08:31:18.590Z","50hyjr6os45_ayazwr5gq7.png","https:\u002F\u002Ftwsme-r2.tumwebsme.com\u002Fsclcatblg987654321\u002Fspm4l1k5bgmhmmt\u002F50hyjr6os45_ayazwr5gq7.png",{"en":66,"th":66},"Knowledge",0,"2026-03-18 02:25:41.222Z","published","2026-04-25 02:32:14.497Z","dyte0oh3ph91buj","5-prompt-templates-developers-ai-productivity","2026-05-12 04:48:27.089Z",202,"vde1yrfnwialcrq",[20,25,30,35,40],"2025-08-06 02:00:53.950Z","5 must have Prompt Templates for developers covering debugging, learning new tech, rapid feature implementation, testing, and code refactoring. Tested 1,000+ times, save 2-3 hours daily. Perfect for programmers wanting to maximize AI productivity.","2026-04-25 02:48:17.045Z",1,{"th":72,"en":72}]