<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Suriya Sonphu on Medium]]></title>
        <description><![CDATA[Stories by Suriya Sonphu on Medium]]></description>
        <link>https://medium.com/@suriyasonp?source=rss-2d2110fa047a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p4xJyZmatqXHywc9x3s5kA.jpeg</url>
            <title>Stories by Suriya Sonphu on Medium</title>
            <link>https://medium.com/@suriyasonp?source=rss-2d2110fa047a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 22:42:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@suriyasonp/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[สอง .NET Backends จะคุยกันอย่างไร? REST สำหรับ Request และ SignalR สำหรับ Realtime]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@suriyasonp/%E0%B8%AA%E0%B8%AD%E0%B8%87-net-backends-%E0%B8%88%E0%B8%B0%E0%B8%84%E0%B8%B8%E0%B8%A2%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3-rest-%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A-request-%E0%B9%81%E0%B8%A5%E0%B8%B0-signalr-%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A-realtime-0f09f46ded39?source=rss-2d2110fa047a------2"><img src="https://cdn-images-1.medium.com/max/1000/0*QL9gGG-RzTHufzsL.png" width="1000"></a></p><p class="medium-feed-snippet">Techology Software Development</p><p class="medium-feed-link"><a href="https://medium.com/@suriyasonp/%E0%B8%AA%E0%B8%AD%E0%B8%87-net-backends-%E0%B8%88%E0%B8%B0%E0%B8%84%E0%B8%B8%E0%B8%A2%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3-rest-%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A-request-%E0%B9%81%E0%B8%A5%E0%B8%B0-signalr-%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A-realtime-0f09f46ded39?source=rss-2d2110fa047a------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@suriyasonp/%E0%B8%AA%E0%B8%AD%E0%B8%87-net-backends-%E0%B8%88%E0%B8%B0%E0%B8%84%E0%B8%B8%E0%B8%A2%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3-rest-%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A-request-%E0%B9%81%E0%B8%A5%E0%B8%B0-signalr-%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A-realtime-0f09f46ded39?source=rss-2d2110fa047a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f09f46ded39</guid>
            <category><![CDATA[signalr]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Suriya Sonphu]]></dc:creator>
            <pubDate>Wed, 29 Jul 2026 00:00:27 GMT</pubDate>
            <atom:updated>2026-07-29T07:17:30.157Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[จิตกับธรรมชาติ เชื่อมโยงกันอย่างไร?]]></title>
            <link>https://medium.com/keep-reading/%E0%B8%88%E0%B8%B4%E0%B8%95%E0%B8%81%E0%B8%B1%E0%B8%9A%E0%B8%98%E0%B8%A3%E0%B8%A3%E0%B8%A1%E0%B8%8A%E0%B8%B2%E0%B8%95%E0%B8%B4-%E0%B9%80%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%A1%E0%B9%82%E0%B8%A2%E0%B8%87%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3-7d1175daf9b2?source=rss-2d2110fa047a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d1175daf9b2</guid>
            <category><![CDATA[จิตวิทยา]]></category>
            <category><![CDATA[จิตใจ]]></category>
            <category><![CDATA[ธรรมชาติ]]></category>
            <dc:creator><![CDATA[Suriya Sonphu]]></dc:creator>
            <pubDate>Sun, 25 May 2025 10:32:14 GMT</pubDate>
            <atom:updated>2025-05-25T10:32:14.340Z</atom:updated>
            <content:encoded><![CDATA[<p>คุณเคยรู้สึกไหมว่า ยามคุณรู้สึกสนุกสนาน คิดถึง เสียใจ ธรรมชาติมักตอบสนองเราไม่ว่าทางใดก็ทางหนึ่ง เช่น แดดยามเช้าทำให้รู้สึกวันนี้เป็นวันที่ดี เป็นต้น เราลองมาดศึกษาในเชิงจิตวิทยา จิตใจมนุษย์มีความเชื่อมโยงกับธรรมชาติอย่างไร</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vsMA6107DdZ8_Gfi" /><figcaption>Photo by <a href="https://unsplash.com/@pabloheimplatz?utm_source=medium&amp;utm_medium=referral">Pablo Heimplatz</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>เช้านี้แสดงอาทิตย์ค่อยๆ สาดเล็ดลอดจากเบื้องหลังของก้อนเมฆด้วยแสงสีส้มโทนอุ่น สาดส่องมากระทบที่ใบหน้าของเราและพื้นดินอย่างแผ่วเบา เสียงที่กระซิบดังขึ้นมาในหัวใจของฉันว่า “ไม่ว่าเมื่อวานจะเป็นเช่นไร <strong>วันนี้จะเป็นวันที่ดี</strong>” คุณเชื่อไหมครับว่าบางครั้ง…เรารู้สึกได้ว่าปาฏิหาริย์กำลังเกิดขึ้น แม้ยังไม่เห็นมันด้วยตา แต่กลับสัมผัสได้ด้วยใจ</p><p>มนุษย์มีความสามารถพิเศษในการรับรู้และเชื่อมโยงอารมณ์กับสภาพแวดล้อมธรรมชาติ ไม่ว่าจะเป็นฝน แสงแดด เมฆ หรือฤดูกาล ทั้งในระดับจิตสำนึกและจิตใต้สำนึก บางครั้งธรรมชาติก็ดูเหมือนตอบรับหรือสะท้อนอารมณ์ภายในอย่างลึกซึ้ง</p><p>ความรู้สึกเช่นนี้ดูจะเป็นเพียงอารมณ์ชั่วขณะ แต่อาจลึกซึ้งกว่านั้น มนุษย์หลายคน — including myself — เคยมีประสบการณ์ที่อธิบายไม่ได้ เช่น ฝนตกในช่วงเวลาสำคัญของชีวิต หรือท้องฟ้าที่แจ่มใสในวันที่ใจต้องการกำลังใจอย่างแรงกล้า เหตุการณ์เหล่านี้คล้ายกับว่าธรรมชาติกำลังสื่อสารกับเรา หรืออย่างน้อย…ก็สะท้อนสิ่งที่อยู่ภายใน</p><p>ในจิตวิทยา ปรากฏการณ์นี้มีชื่อเรียกว่า ธรรมชาติสะท้อนอารมณ์ (<em>Synchronicity)</em> ซึ่งเป็นแนวคิดของ Carl Jung นักจิตวิเคราะห์ผู้เสนอว่า <strong>เหตุการณ์ที่เกิดขึ้นพร้อมกันโดยไม่มีความสัมพันธ์ทางกายภาพ อาจมี “นัยยะทางจิตใจ” ร่วมกัน</strong>¹ ตัวอย่างเช่น วันที่ต้องบอกลาคนสำคัญ ฝนกลับตกลงมาแบบไม่ทันตั้งตัว — ไม่ใช่เพราะลมฟ้าอากาศเปลี่ยน แต่เพราะโลกเหมือนจะร่วมแสดงความอาลัยไปกับเรา</p><p>แนวคิดนี้ได้รับการเสริมด้วยงานวิจัยทางวิทยาศาสตร์หลายชิ้น เช่น Keller et al. (2005) พบว่า<strong>แสงแดดมีผลบวกต่ออารมณ์ของมนุษย์มากที่สุด โดยช่วยให้คนรู้สึกสดชื่นและมีพลัง</strong>² ในขณะเดียวกัน การศึกษาด้วย fMRI โดย Noah et al. (2014) แสดงให้เห็นว่า<strong>สภาพอากาศมีผลกระทบโดยตรงต่อการทำงานของสมองในส่วนที่เกี่ยวข้องกับอารมณ์และความเครียด</strong>³</p><p>เมื่อรวมกับหลักจิตวิทยาด้านการรับรู้ (perception) แล้ว จะพบว่า<strong>มนุษย์เรามีแนวโน้มที่จะรับรู้สิ่งรอบตัวตามอารมณ์ที่เรากำลังรู้สึกอยู่ </strong>— นี่คือแนวคิด <em>Selective Perception</em> ซึ่งระบุว่า หากเราเศร้า เราอาจรู้สึกว่าแม้ท้องฟ้าจะสว่าง แต่กลับดูเงียบเหงา⁴ และในทางกลับกัน แสงจากดวงอาทิตย์อาจดูเหมือน “ปาฏิหาริย์เล็ก ๆ” หากใจเรากำลังค้นหาความหวัง</p><p>ความรู้สึกเชื่อมโยงกับธรรมชาตินี้มีความหมายมากกว่าความโรแมนติกทางอารมณ์ Capaldi et al. (2014) พบว่า <strong>ผู้ที่รู้สึกเป็นหนึ่งเดียวกับธรรมชาติมักมีความสุขมากกว่าคนทั่วไป</strong>⁵ และรายงานจาก Mental Health Foundation ยังระบุว่า <strong>การได้อยู่ใกล้ชิดธรรมชาติช่วยลดภาวะซึมเศร้าและความเครียดได้อย่างมีนัยสำคัญ</strong>⁶</p><blockquote>บางที…ธรรมชาติไม่ได้เพียงอยู่รายล้อมเรา แต่อาจเป็นเพื่อนที่รับฟังโดยไม่พูด ร่วมทุกข์ร่วมสุขกับเราโดยไม่ตัดสิน เมื่อเรามองขึ้นฟ้า อาจไม่ใช่แค่การมองเมฆหรือแสงอาทิตย์ — แต่มันคือการมองเห็นหัวใจของตัวเองสะท้อนกลับมา</blockquote><h4>อ้างอิง</h4><ol><li>Carl Jung. (1952). <em>Synchronicity: An Acausal Connecting Principle</em>. Princeton University Press.</li><li>Keller, M.C., Fredrickson, B.L., Ybarra, O., et al. (2005). A warm heart and a clear head: The contingent effects of weather on mood and cognition. <em>Psychological Science</em>, 16(9), 724–731.</li><li>Noah, J.A., et al. (2014). Neural correlates of weather-induced mood changes. <em>Frontiers in Human Neuroscience</em>, 8, 736.</li><li>Eysenck, M. (2004). <em>Principles of Cognitive Psychology</em>. Psychology Press.</li><li>Capaldi, C.A., Dopko, R.L., &amp; Zelenski, J.M. (2014). The relationship between nature connectedness and happiness: A meta-analysis. <em>Journal of Environmental Psychology</em>, 40, 300–308.</li><li>Mental Health Foundation. (2021). <em>Nature and mental health</em>. <a href="https://www.mentalhealth.org.uk/">https://www.mentalhealth.org.uk</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d1175daf9b2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/keep-reading/%E0%B8%88%E0%B8%B4%E0%B8%95%E0%B8%81%E0%B8%B1%E0%B8%9A%E0%B8%98%E0%B8%A3%E0%B8%A3%E0%B8%A1%E0%B8%8A%E0%B8%B2%E0%B8%95%E0%B8%B4-%E0%B9%80%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%A1%E0%B9%82%E0%B8%A2%E0%B8%87%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3-7d1175daf9b2">จิตกับธรรมชาติ เชื่อมโยงกันอย่างไร?</a> was originally published in <a href="https://medium.com/keep-reading">Stay Reading</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Not to Prompt in AI Chat — You Might Lose Control Over It Forever]]></title>
            <link>https://medium.com/smile-programming/what-not-to-prompt-in-ai-chat-you-might-lose-control-over-it-forever-038fa5c42ccd?source=rss-2d2110fa047a------2</link>
            <guid isPermaLink="false">https://medium.com/p/038fa5c42ccd</guid>
            <category><![CDATA[prompting-technique]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Suriya Sonphu]]></dc:creator>
            <pubDate>Mon, 21 Apr 2025 14:22:21 GMT</pubDate>
            <atom:updated>2025-04-21T14:22:21.441Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What <em>Not</em> to Prompt in AI Chat — You Might Lose Control Over It Forever</strong></h3><p>Before you hit “Enter” on your next prompt, pause and ask yourself: “If someone else saw this, would it be a problem?” AI is a powerful tool — but once you share data, you may not be able to control where it goes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lUlIvkv-avVE6b0z85bNmQ.png" /></figure><p>As Generative AI tools like ChatGPT, Gemini, and Claude become essential for professionals across industries, using AI to brainstorm, create content, or even discuss sensitive issues is now part of daily workflows.</p><p>However, many may not realize: once you type something into an AI chat window, it may no longer be “private.”</p><p><strong>Why You Should Be Careful</strong> When you submit information to a Generative AI system, it may be logged or used to improve the model — depending on the provider’s policy. This poses serious risks if you:</p><ul><li>Share client data (e.g., names, phone numbers, emails, transaction records, or service histories)</li><li>Disclose business plans or strategies (e.g., market expansion goals, product launch timelines, or competitive strategies)</li><li>Input internal or trade-secret information (e.g., unpublished financials, M&amp;A plans, proprietary formulas or technologies)</li><li>Submit Personally Identifiable Information (PII), such as full name, contact details, email, ID numbers — anything that could identify someone</li></ul><p><strong>What AI Providers Are Saying</strong></p><ul><li><strong>OpenAI</strong> says in its <a href="https://openai.com/enterprise-privacy">Data Usage FAQ</a> that prompts from free users may be used to train models — unless chat history is turned off.</li><li><strong>Google</strong> advises on its <a href="https://support.google.com/gemini/answer/13594961?hl=en&amp;ref_topic=13278591&amp;sjid=18181662459976164877-NC">Gemini Apps Privacy Hub</a> that you should avoid entering sensitive or personal information, as it may be used to improve services.</li><li><strong>Microsoft</strong> emphasizes in its <a href="https://learn.microsoft.com/en-us/legal/cognitive-services/openai/data-privacy">Responsible AI guidelines</a> that sensitive or confidential data should not be shared with AI systems.</li></ul><p><strong>A Thought for Professionals:</strong> Before you hit “Enter” on your next prompt, pause and ask yourself: “If someone else saw this, would it be a problem?” AI is a powerful tool — but once you share data, you may not be able to control where it goes.</p><p>Use AI with confidence — and with care. 🙂</p><p><strong>#AI #DataPrivacy #PromptResponsibly #GenerativeAI</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=038fa5c42ccd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smile-programming/what-not-to-prompt-in-ai-chat-you-might-lose-control-over-it-forever-038fa5c42ccd">What Not to Prompt in AI Chat — You Might Lose Control Over It Forever</a> was originally published in <a href="https://medium.com/smile-programming">TECHFOR</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swagger UI หายไปจาก .NET9 ต้องทำอย่างไร?]]></title>
            <link>https://medium.com/smile-programming/swagger-ui-%E0%B8%AB%E0%B8%B2%E0%B8%A2%E0%B9%84%E0%B8%9B%E0%B8%88%E0%B8%B2%E0%B8%81-net9-%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B8%97%E0%B8%B3%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3-d9dda9d0826d?source=rss-2d2110fa047a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9dda9d0826d</guid>
            <category><![CDATA[api-documentation]]></category>
            <category><![CDATA[dotnet-development]]></category>
            <category><![CDATA[dotnet-core]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[api-development]]></category>
            <dc:creator><![CDATA[Suriya Sonphu]]></dc:creator>
            <pubDate>Sun, 20 Apr 2025 07:43:15 GMT</pubDate>
            <atom:updated>2025-04-20T07:43:15.998Z</atom:updated>
            <content:encoded><![CDATA[<h3>Swagger UI หายไปจาก .NET9 ต้องทำอย่างไร?</h3><p>ถ้าคุณเพิ่งสร้าง Web API ด้วย .NET 9 อาจสังเกตุว่า Swagger UI ที่เคยใช้ทดสอบ API หายไป! นี่คือการเปลี่ยนแปลงครั้งใหญ่ที่ Microsoft ตั้งใจออกแบบมาเพื่อลดการพึ่งพา Library ภายนอก และนำเสนอระบบ Open API ที่ทันสมัยกว่า</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RkjZqX_TwUUj3q3aJegWCg.png" /></figure><h4>เหตุผลที่ Swagger UI ถูกลบออกจาก .NET 9</h4><ol><li>ปัญหาการบำรุงรักษา Swashbuckle: ไลบรารี Swashbuckle ที่ใช้สร้าง Swagger UI ไม่ได้รับการอัปเดตอย่างต่อเนื่องจากผู้พัฒนาหลักถอนตัว</li><li>ลดความซับซ้อน: เทมเพลตโปรเจกต์ใหม่ใน .NET 9 ถูกออกแบบให้ Light weightโดยตัดส่วนที่ไม่จำเป็นออก</li><li>OpenAPI ในตัว: .NET 9 มีระบบสร้างเอกสาร OpenAPI แบบ Built-in ผ่าน Microsoft.AspNetCore.OpenApi ที่ทำงานได้ทันทีโดยไม่ต้องติดตั้งแพ็กเกจเพิ่ม</li></ol><p><em>อ้างอิง: <br>- </em><a href="https://www.roundthecode.com/dotnet-blog/swagger-dropped-dotnet-9-what-are-alternatives"><em>Swagger dropped from .NET 9: What are the alternatives?</em></a><em><br>- </em><a href="https://steven-giesel.com/blogPost/777776a2-a13c-46bb-bf6b-89316d88508c"><em>Swagger Replacement in ASP.NET 9</em></a><em><br>- </em><a href="https://www.reddit.com/r/dotnet/comments/1gqzwwy/builtin_openapi_document_with_net_9_bye_swagger/?rdt=40731"><em>Built-in OpenAPI Document with .NET 9 — Bye Swagger : r/dotnet</em></a></p><h4><strong>OpenAPI คืออะไร?</strong></h4><p><em>OpenAPI Specification (OAS) คือมาตรฐานในการสร้างและจัดการ HTTP API ที่ไม่ขึ้นกับภาษาโปรแกรม โดยช่วยให้ทั้งมนุษย์และคอมพิวเตอร์สามารถเข้าใจความสามารถของ API โดยไม่ต้องเข้าถึงซอร์สโค้ด เอกสาร หรือการตรวจสอบเครือข่ายโดยละเอียด</em></p><p><em>เมื่อนิยาม API ด้วย OAS อย่างถูกต้อง ผู้ใช้สามารถเข้าใจและใช้ API ได้โดยต้องเขียนโค้ดเพิ่มเติมน้อยที่สุด นอกจากนี้ OpenAPI Description ยังสามารถนำไปใช้ในหลายกรณี เช่น: การสร้างเอกสาร: สร้างเอกสาร API โดยอัตโนมัติ, การสร้างโค้ด: สร้างโค้ดสำหรับเซิร์ฟเวอร์และไคลเอนต์ในภาษาต่าง ๆ, การทดสอบ: อำนวยความสะดวกในการตรวจสอบการทำงานของ API, การเพิ่มความสามารถ: ทำให้ API สามารถใช้งานร่วมกับระบบอื่นได้อย่างมีประสิทธิภาพ</em></p><p><em>อ้างอิง </em><a href="https://spec.openapis.org/oas/latest.html"><em>OpenAPI Specification v3.1.1</em></a></p><h4>สิ่งที่เปลี่ยนไปใน .NET 9</h4><ol><li>เพิ่ม Open API เพื่อสร้าง API Document</li><li>ไม่มี UI ให้ทดสอบ API แบบ default</li><li>ระบบ OpenAPI จะสร้างเฉพาะไฟล์ JSON/YAML ที่ https://&lt;local-ip&gt;:&lt;port&gt;/openapi/v1.json</li><li>ต้องเพิ่ม Interactive UI สำหรับทดสอบ API เอง</li></ol><p><em>อ้างอิง </em><a href="https://www.reddit.com/r/dotnet/comments/1gqzwwy/builtin_openapi_document_with_net_9_bye_swagger/?rdt=40731"><em>Built-in OpenAPI Document with .NET 9 — Bye Swagger : r/dotnet</em></a></p><h3>ทางเลือกใหม่ที่น่าสนใจสำหรับ interactive API documentation</h3><p>Scalar เป็นเครื่องมือโอเพ่นซอร์สที่ช่วยในการสร้างเอกสารแบบโต้ตอบสำหรับ OpenAPI โดยมีหน้าที่เป็นอินเทอร์เฟซให้ผู้ใช้งานสามารถเห็นและใช้งาน API ได้ในรูปแบบที่เข้าใจง่ายและมีประสิทธิภาพ</p><p>Scalar สามารถทำงานร่วมกับ ASP.NET Core โดยการติดตั้งแพ็คเกจ Scalar.AspNetCore</p><p>เมื่อคุณติดตั้งแพ็คเกจนี้ คุณสามารถกำหนดค่าให้ Scalar เชื่อมต่อกับ OpenAPI endpoint และเปิดใช้งาน UI แบบโต้ตอบของ Scalar ระหว่างการพัฒนา นักพัฒนาสามารถเข้าถึง UI ของ Scalar ได้โดยไปยัง URL เช่น <a href="https://localhost/">https://localhost</a>:&lt;port&gt;/scalar/v1</p><pre>using Microsoft.AspNetCore.Builder;<br>using Microsoft.AspNetCore.OpenApi;<br>using Microsoft.Extensions.DependencyInjection;<br>using Microsoft.OpenApi.Models;<br>using Scalar.AspNetCore;<br><br>var builder = WebApplication.CreateBuilder();<br><br>builder.Services.AddOpenApi();<br><br>var app = builder.Build();<br><br>if (app.Environment.IsDevelopment())<br>{<br>    app.MapOpenApi();<br>    app.MapScalarApiReference();<br>}<br><br>app.MapGet(&quot;/&quot;, () =&gt; &quot;Hello world!&quot;);<br><br>app.Run();</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uAyk_WjKzvxyRTR9RYVTcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*guC_wNcqLnE18I5KWvFXdw.png" /></figure><p>อ้างอิง<br>- <a href="https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/using-openapi-documents?view=aspnetcore-9.0#use-scalar-for-interactive-api-documentation">https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/using-openapi-documents?view=aspnetcore-9.0#use-scalar-for-interactive-api-documentation</a><br>- <a href="https://guides.scalar.com/scalar/scalar-api-references/net-integration">.NET Integration | Scalar</a></p><p>หรือหากต้องการกลับไปใช้ Swagger ก็ยังสามารถใช้ได้โดยการติดตั้ง package และแก้ไขโค้ด สามารถศึกษาเพิ่มเติมได้ที่ <a href="https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/using-openapi-documents?view=aspnetcore-9.0#use-swagger-ui-for-local-ad-hoc-testing">https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/using-openapi-documents?view=aspnetcore-9.0#use-swagger-ui-for-local-ad-hoc-testing</a></p><h4>ตกแต่งหน้าตา Interactive API document</h4><p>สามารถแก้ไข Theme ของหน้า Interactive API document ได้ง่ายๆ ด้วยการเพิ่ม Options.WithTheme(&lt;theme&gt;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/125/1*jiNfq18PfQPkJrTKYWW_kQ.png" /><figcaption>Theme ให้เลือกมากมาย</figcaption></figure><pre>app.MapScalarApiReference(options =&gt;<br>{<br>    options.WithTitle(&quot;Minimart Application API&quot;);<br>    options.WithTheme(ScalarTheme.Mars);<br>});</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jQFdKZ_W5R0mhgJiTmFldQ.png" /></figure><h4>สรุป</h4><p>โดยส่วนตัวผู้เขึยนมองว่าการที่ .NET 9 นำ Swagger ออกจากค่า default เมื่อสร้างโปรเจ็คใหม่ เป็นโอกาสที่นักพัฒนาสามารถเลือกใช้เครื่องมือที่เหมาะกับทีม เช่น Scalar สำหรับ UI สวยๆ หรือกรณีที่ไม่ต้องการ Interactive API Document ก็สามารถใช้เพียงไฟล์ openapi/v1.json ในการ import กับ API client tool เช่น postman ได้เลย หรือสามารถใช้ไฟล์ .http ใน Visual studio ทดสอบ API ได้โดยตรง ไม่ต้องพึ่ง UI เลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L6sWASiEZdptB2PMQwxzMQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9dda9d0826d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smile-programming/swagger-ui-%E0%B8%AB%E0%B8%B2%E0%B8%A2%E0%B9%84%E0%B8%9B%E0%B8%88%E0%B8%B2%E0%B8%81-net9-%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B8%97%E0%B8%B3%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3-d9dda9d0826d">Swagger UI หายไปจาก .NET9 ต้องทำอย่างไร?</a> was originally published in <a href="https://medium.com/smile-programming">TECHFOR</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test concept Minimal API + Docker]]></title>
            <link>https://medium.com/smile-programming/test-concept-minimal-api-docker-7b00c5948c2b?source=rss-2d2110fa047a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b00c5948c2b</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[api-development]]></category>
            <dc:creator><![CDATA[Suriya Sonphu]]></dc:creator>
            <pubDate>Mon, 14 Apr 2025 17:18:25 GMT</pubDate>
            <atom:updated>2025-04-14T17:46:27.334Z</atom:updated>
            <content:encoded><![CDATA[<p>ฝึกฝีมือกันหน่อย เนื่องด้วยผู้เขียนยังไม่เคยได้ใช้งาน Docker อย่างจริงจัง แน่นอนว่ายุคนี้ถ้าอัพโหลดแอพพลิเคชั่นบนคลาวด์ ถ้าเลือก Environment Linux จะประหยัดค่าใช้จ่ายกว่า</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LwSOkOwFN6Ys_1iLFpl8hQ.png" /></figure><h4><strong>Architecture ที่จะทดลองไอเดีย</strong></h4><p>สร้าง Minimal API อย่างง่าย จากนั้น Build เป็น Docker image นำไป deploy บน Ubuntu server ที่เตรียมไว้บน Virtual machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xpLi3-8R_iV1t3_gro0VHA.jpeg" /></figure><p><strong>Repository </strong><a href="https://github.com/suriyasonp/poc_minimal_api_docker/tree/main">https://github.com/suriyasonp/poc_minimal_api_docker/tree/main</a></p><h4>Tech stacks</h4><p><strong>Local Machine</strong></p><ol><li>.NET 9 SDK<br><a href="https://dotnet.microsoft.com/en-us/download/dotnet/9.0">https://dotnet.microsoft.com/en-us/download/dotnet/9.0</a></li><li>Docker Desktop for Windows<br><a href="https://www.docker.com/products/docker-desktop/">https://www.docker.com/products/docker-desktop/</a></li><li>Visual Studio Code หรือ Visual Studio เพื่อในการสร้าง .net application แต่ในเคสนี้ผู้เขียนใช้ Command line และ notepad ในการแก้ไขโค้ด เนื่องจากเป็นอย่างง่าย</li><li>PowerShell <br><a href="https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.5">https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.5</a></li><li>VMware Workstation Pro (Personal use)<br><a href="https://www.vmware.com/products/desktop-hypervisor/workstation-and-fusion">https://www.vmware.com/products/desktop-hypervisor/workstation-and-fusion</a> <br>หรือสามารถใช้ Hyper-V ได้เช่นกัน</li><li>Ubuntu Server ISO<br><a href="https://ubuntu.com/server">https://ubuntu.com/server</a></li></ol><p><strong>Virtual Machine</strong></p><p>เตรียม Virtual Machine Ubuntu server พร้อมติดตั้ง Docker, และ OpenSSH สามารถศึกษาวิธีการติดตั้งและ setup ได้ที่ <a href="https://documentation.ubuntu.com/server/tutorial/basic-installation/">https://documentation.ubuntu.com/server/tutorial/basic-installation/</a></p><h3>เตรียมโปรเจ็ค Minimal API</h3><p>ติดตั้ง Docker และ .NET SDK 9 บน Local machine ให้พร้อม</p><ol><li>ตรวจสอบว่า dotnet SDK 9 พร้อมใช้งาน พิมพ์คำสั่ง dotnet — version ใน powershell</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*YE_6G73Bm4DMRFg6dJhCcQ.png" /></figure><p>2. ตรวจสอบว่า docker พร้อมใช้งาน พิมพ์คำสั่ง docker — versionและ docker run hello-world จะได้ผลดังรูป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*7fNIjeujVxBmjY_bijjYHQ.png" /></figure><p>3. เอาล่ะ! ถัดไปเรามาสร้างโปรเจ็ค Minimal API กันเถอะ<br>ใช้ powershell cdไปยัง directory ที่คุณต้องการ จากนั้นพิมพ์คำสั่งสร้างโปรเจ็ค</p><pre>dotnet new web -o MinimalApiDemo --no-https<br>cd MinimalApiDemo</pre><p>จากนั้นให้แก้ไขโค้ดที่ไฟล์ Program.cs</p><pre>var app = WebApplication.Create();<br><br>app.MapGet(&quot;/&quot;, () =&gt; &quot;Hello from Dockerized Minimal API!&quot;);<br><br>app.Run();</pre><p>สร้างไฟล์ Dockerfile ที่โฟล์เดอร์ของโปรเจ็ค</p><pre># Use the .NET 9 ASP.NET Core runtime as the base image<br>FROM mcr.microsoft.com/dotnet/nightly/aspnet:9.0 AS base<br>WORKDIR /app<br>EXPOSE 80<br><br># Use the .NET 9 SDK for building the app<br>FROM mcr.microsoft.com/dotnet/nightly/sdk:9.0 AS build<br>WORKDIR /src<br><br># Copy everything and publish<br>COPY . .<br>RUN dotnet publish -c Release -o /app/publish<br><br># Final runtime image<br>FROM base AS final<br>WORKDIR /app<br>COPY --from=build /app/publish .<br>ENTRYPOINT [&quot;dotnet&quot;, &quot;MinimalApiDemo.dll&quot;]</pre><p>จากนั้นทำการ Build Docker image</p><p>ด้วยคำสั่ง docker build -t minimal-api .</p><p>จากนั้นคุณจะเห็นผลลัพธ์การ build</p><pre>[+] Building 16.0s (14/14) FINISHED                                                                docker:desktop-linux<br> =&gt; [internal] load build definition from Dockerfile                                                               0.0s<br> =&gt; =&gt; transferring dockerfile: 522B                                                                               0.0s<br> =&gt; [internal] load metadata for mcr.microsoft.com/dotnet/nightly/aspnet:9.0                                       0.5s<br> =&gt; [internal] load metadata for mcr.microsoft.com/dotnet/nightly/sdk:9.0                                          0.6s<br> =&gt; [internal] load .dockerignore                                                                                  0.0s<br> =&gt; =&gt; transferring context: 2B                                                                                    0.0s<br> =&gt; [build 1/4] FROM mcr.microsoft.com/dotnet/nightly/sdk:9.0@sha256:8c4ddfaaf08f6eb54d47123f61f4ec30752214c1850d  0.0s<br> =&gt; [internal] load build context                                                                                  7.9s<br> =&gt; =&gt; transferring context: 227.52MB                                                                              7.9s<br> =&gt; [base 1/2] FROM mcr.microsoft.com/dotnet/nightly/aspnet:9.0@sha256:48380bc11a2281e49996c9d132b90425e6152395d6  0.0s<br> =&gt; CACHED [build 2/4] WORKDIR /src                                                                                0.0s<br> =&gt; [build 3/4] COPY . .                                                                                           0.9s<br> =&gt; [build 4/4] RUN dotnet publish -c Release -o /app/publish                                                      6.5s<br> =&gt; CACHED [base 2/2] WORKDIR /app                                                                                 0.0s<br> =&gt; CACHED [final 1/2] WORKDIR /app                                                                                0.0s<br> =&gt; CACHED [final 2/2] COPY --from=build /app/publish .                                                            0.0s<br> =&gt; exporting to image                                                                                             0.0s<br> =&gt; =&gt; exporting layers                                                                                            0.0s<br> =&gt; =&gt; writing image sha256:698b21c8140776358a5b45946cd35174939a07aa6730b550d3e02d720e618195                       0.0s<br> =&gt; =&gt; naming to docker.io/library/minimal-api                                                                     0.0s<br><br>View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/qicxpa5k3xq96iz8mnc2mg26d<br><br>What&#39;s next:<br>    View a summary of image vulnerabilities and recommendations → docker scout quickview</pre><p>พิมพ์คำสั่ง docker images เพื่อตรวจสอบว่า image ได้ถูกสร้างสำเร็จ</p><pre>REPOSITORY    TAG       IMAGE ID       CREATED             SIZE<br>minimal-api   latest    698b21c81407   56 minutes ago      224MB<br>&lt;none&gt;        &lt;none&gt;    8fdbd0596e8f   About an hour ago   224MB<br>hello-world   latest    74cc54e27dc4   2 months ago        10.1kB</pre><p>จากนั้นลองรัน docker image ที่ได้สร้างขึ้นด้วยคำสั่ง docker run -d -p 5000:80 — name minimal-api-container minimal-api และ docker ps เพื่อดูสถานะ</p><pre>PS C:\Projects\poc_minimal_api_docker\MinimalApiDemo&gt; docker run -d -p 5000:80 --name minimal-api-container minimal-api<br>9322165cd378fc5e509f3a9c4058831332f24a70cc13cdf081da17d578858c39<br>PS C:\Projects\poc_minimal_api_docker\MinimalApiDemo&gt; docker ps<br>CONTAINER ID   IMAGE         COMMAND                  CREATED         STATUS         PORTS                  NAMES<br>9322165cd378   minimal-api   &quot;dotnet MinimalApiDe…&quot;   6 seconds ago   Up 5 seconds   0.0.0.0:5000-&gt;80/tcp   minimal-api-container</pre><p>จากนั้นลองเรียก API ดูด้วยคำสั่ง curl <a href="http://localhost:5000/">http://localhost:5000</a> จะได้ผลลัพธ์ดังด่านล่าง</p><pre>StatusCode        : 200<br>StatusDescription : OK<br>Content           : Hello from Dockerized Minimal API!<br>RawContent        : HTTP/1.1 200 OK<br>                    Transfer-Encoding: chunked<br>                    Content-Type: text/plain; charset=utf-8<br>                    Date: Mon, 14 Apr 2025 17:02:31 GMT<br>                    Server: Kestrel<br><br>                    Hello from Dockerized Minimal API!<br>Forms             : {}<br>Headers           : {[Transfer-Encoding, chunked], [Content-Type, text/plain; charset=utf-8], [Date, Mon, 14 Apr 2025<br>                    17:02:31 GMT], [Server, Kestrel]}<br>Images            : {}<br>InputFields       : {}<br>Links             : {}<br>ParsedHtml        : System.__ComObject<br>RawContentLength  : 34</pre><h3>Deploy</h3><p>บันทึก Docker Image ในรูปแบบไฟล์ .tar</p><p>ใช้คำสั่ง docker save -o minimal-api.tar minimal-api</p><p>จากนั้นลองใช้คำสั่ง ls จะได้ไฟล์ดังผลลัพธ์ด้านล่าง</p><pre>Directory: C:\Projects\poc_minimal_api_docker\MinimalApiDemo<br><br>Mode                 LastWriteTime         Length Name<br>----                 -------------         ------ ----<br>d-----         4/14/2025  10:29 PM                bin<br>d-----         4/14/2025  10:29 PM                obj<br>d-----         4/14/2025  10:29 PM                Properties<br>-a----         4/14/2025  10:29 PM            127 appsettings.Development.json<br>-a----         4/14/2025  10:29 PM            151 appsettings.json<br>-a----         4/14/2025  10:34 PM            483 Dockerfile<br>-a----         4/14/2025  11:07 PM      227458560 minimal-api.tar<br>-a----         4/14/2025  10:29 PM            219 MinimalApiDemo.csproj<br>-a----         4/14/2025  11:00 PM            176 Program.cs</pre><p>ขั้นตอนถัดไปเราจะทำการโอนไฟล์ไปยัง Ubuntu server</p><p>เปิดเครื่อง Ubuntu server และตั้งค่า network แบบ NAT บน VMware</p><p>ที่ powershell ให้พิมพ์คำสั่ง scp minimal-api.tar youruser@your-vm-ip:/home/youruser/</p><p>โดย youruser คือ username บน ubuntu server และ your-vm-ip คือ ip address ของ ubuntu server</p><ol><li>จากนั้นให้ SSH ไปยัง Ubuntu server ด้วย powershell ssh youruser@your-vm-ip</li><li>โหลด docker image docker load -i minimal-api.tar</li><li>หลังจากโหลด docker image สำเร็จแล้ว สามารถใช้คำสั่ง docker images เพื่อตรวจสอบว่า image ได้โหลดสำเร็จแล้วเหมือนที่ทำบน local machine</li><li>รัน docker docker run -d -p 5000:80 — name minimal-api-container minimal-api</li><li>จากนั้นให้ลอง curl http://your-vm-ip:5000 ผ่าน powershell ที่ local machine จะได้ผลลัพธ์ดังด้านล่างนี้</li></ol><pre>PS C:\&gt; curl http://192.168.65.128:5000/<br><br><br>StatusCode        : 200<br>StatusDescription : OK<br>Content           : Hello from Dockerized Minimal API!<br>RawContent        : HTTP/1.1 200 OK<br>                    Transfer-Encoding: chunked<br>                    Content-Type: text/plain; charset=utf-8<br>                    Date: Mon, 14 Apr 2025 17:11:14 GMT<br>                    Server: Kestrel<br><br>                    Hello from Dockerized Minimal API!<br>Forms             : {}<br>Headers           : {[Transfer-Encoding, chunked], [Content-Type, text/plain; charset=utf-8], [Date, Mon, 14 Apr 2025<br>                    17:11:14 GMT], [Server, Kestrel]}<br>Images            : {}<br>InputFields       : {}<br>Links             : {}<br>ParsedHtml        : System.__ComObject<br>RawContentLength  : 34</pre><p>จากนั้นให้ลบไฟล์ .tar ออกผ่าน SSH ด้วยคำสั่ง rm minimal-api.tar</p><p>เป็นไงบ้างครับ ง่ายใช่ไหมล่ะ อันนี้เป็นเพียงพื้นฐานในการ deploy API ผ่านใช้ docker image ไปรันบน Ubuntu server</p><p>หวังว่าจะเป็นประโยชน์แก่ผู้ที่กำลังศึกษา Approach นี้เช่นกันนะครับ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b00c5948c2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smile-programming/test-concept-minimal-api-docker-7b00c5948c2b">Test concept Minimal API + Docker</a> was originally published in <a href="https://medium.com/smile-programming">TECHFOR</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to be a Good Leader? from Real Experience]]></title>
            <link>https://medium.com/smile-programming/how-to-be-a-good-leader-from-real-experience-5e6d92860ca7?source=rss-2d2110fa047a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e6d92860ca7</guid>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[team-management]]></category>
            <category><![CDATA[manager-development]]></category>
            <category><![CDATA[leaders]]></category>
            <dc:creator><![CDATA[Suriya Sonphu]]></dc:creator>
            <pubDate>Thu, 04 Apr 2024 02:58:43 GMT</pubDate>
            <atom:updated>2024-04-04T02:58:43.265Z</atom:updated>
            <content:encoded><![CDATA[<p><em>For over four years, I have had the privilege of leading the software development team in a division of a top-tier German company, which is located in Thailand. Throughout this journey, I have been fortunate to receive invaluable guidance from expert coaches and learn from the knowledge and experience of both Thai and international executives. Additionally, the unwavering support of my team members has been instrumental in driving successful team management and growth.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DyjJocp-ipuVBHae" /><figcaption>Photo by <a href="https://unsplash.com/@austindistel?utm_source=medium&amp;utm_medium=referral">Austin Distel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This is a summary of my experience over the past 4 years, highlighting my growth as a leader.</p><p>1.<strong>Making Team Members Acceptance</strong>: To make team members accept us as a “new leader,” we need to have a clear vision. Our understanding of the team’s work must be vivid, even though we can’t predict situations with 100% accuracy. We should think collaboratively with knowledgeable team members and involve them.</p><p>2. <strong>The Higher, the Colder”</strong>: In the deeper sense, while Thailand says, “The higher, the hotter 🥵” in our understanding, it means the point where we stand, our responsibilities, and the work we do. We must be attentive, considerate, and take responsibility for team members. We manage behind the scenes to improve things. When facing pressure, whether vertical or horizontal, we communicate with colleagues as we did when working at the operational level, avoiding drastic actions because the consequences are more significant than the benefits.</p><p>3. <strong>Managing Our “Heart”</strong>: We learn how to manage our stress. If we can’t manage it, we become an unreliable leader with low emotional intelligence. It’s essential to have a balanced heart, be fair, and remain unbiased.</p><p>4. <strong>Seeing Blind Spots Unseen by the Team</strong>: Whether external or internal factors, we find opportunities for the team. We address issues before they escalate. Our goal is to empower team members rather than making them dependent on us.</p><p>5. <strong>Taking Care of Team Members’ Mental Health</strong>: Based on our shared humanity, everyone experiences love, greed, anger, and delusion. When team members have good mental health, they face fewer difficulties, and overall performance improves.</p><p>6. <strong>Working with Everyone as Partners</strong>: We approach everyone as a partner. This philosophy extends to our interactions with clients, executives, colleagues, and team members alike. By approaching everyone as a partner, we recognize and respect the unique contributions each individual brings to the table, regardless of their position or title. Working as partners promotes a culture of open communication and collaboration. This leads to better decision-making, improved problem-solving, and ultimately, more successful outcomes for everyone involved.</p><p>7. <strong>Leadership Isn’t About Owning Anyone’s Life</strong>: We avoid getting involved in personal matters unless someone seeks advice related to organizational responsibilities.</p><p>8. <strong>Don’t Forget Your Own Happiness</strong>: Smile often! 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e6d92860ca7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smile-programming/how-to-be-a-good-leader-from-real-experience-5e6d92860ca7">How to be a Good Leader? from Real Experience</a> was originally published in <a href="https://medium.com/smile-programming">TECHFOR</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[อู้วววว!! Backend รอดตาย! เมื่อ API ขึ้นไม่ทัน Frontend แก้เกมโดย Mock API ด้วย Fake REST API]]></title>
            <link>https://medium.com/smile-programming/%E0%B8%AD%E0%B8%B9%E0%B9%89%E0%B8%A7%E0%B8%A7%E0%B8%A7%E0%B8%A7-backend-%E0%B8%A3%E0%B8%AD%E0%B8%94%E0%B8%95%E0%B8%B2%E0%B8%A2-%E0%B9%80%E0%B8%A1%E0%B8%B7%E0%B9%88%E0%B8%AD-api-%E0%B8%82%E0%B8%B6%E0%B9%89%E0%B8%99%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%97%E0%B8%B1%E0%B8%99-frontend-%E0%B9%81%E0%B8%81%E0%B9%89%E0%B9%80%E0%B8%81%E0%B8%A1%E0%B9%82%E0%B8%94%E0%B8%A2-mock-api-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-fake-rest-api-ef0e226790ac?source=rss-2d2110fa047a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef0e226790ac</guid>
            <category><![CDATA[mock-api]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[json-server-api]]></category>
            <category><![CDATA[json-server]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Suriya Sonphu]]></dc:creator>
            <pubDate>Sat, 24 Feb 2024 14:19:25 GMT</pubDate>
            <atom:updated>2024-02-24T14:19:25.502Z</atom:updated>
            <content:encoded><![CDATA[<p>อันนี้อาจจะไม่ใช่เรื่องใหม่อะไร เนื่องด้วยผู้เขียนเพิ่งจะมีโอกาส transform Product ของบริษัทจาก Windows application based สู่ Web application basedโดยแบ่งทีมทำ Backend และ Frontend</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9AlK0FXueGntvSho" /><figcaption>Photo by <a href="https://unsplash.com/@clark_fransa?utm_source=medium&amp;utm_medium=referral">Arnold Francisca</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>เนื่องด้วยทีมเราเป็นทีมเล็กและกำลังเติบโต เราจึงกำลัง ทำ unlearn-relearn- reskills for team ซึ่ง learning curve ใช้เวลาพอสมควร แต่ด้วยพลังของทีมที่มีความมุ่งมั่นทำให้เราเริ่มก้าวเข้าสู่ Web application ได้อย่างเต็มรูปแบบ</p><p>เกริ่นมาเยอะ เข้าเรื่องกันดีกว่า ผู้เขียนยังขึ้น Backend ไม่ทัน ที่จะให้น้อง Frontend ขึ้น front และสามารถทดสอบ API Connectivity ได้ บทความนี้จึงขออนุญาตแชร์การ Mock API ให้น้อง Frontend ทำงานล่วงหน้าไปก่อน</p><p>พระเอกของงานนี้คือ json-server ซึ่ง json-server นี้คือ Fake REST API ซึ่งสามารถนำมาใช้ในกระบวนการ Testing และ Prototyping โดยข้อมูลจะเก็บเป็นฐานข้อมูลในรูปแบบไฟล์ JSON นั่นเอง</p><ul><li><a href="https://jsonplaceholder.typicode.com/">JSONPlaceholder</a></li><li><a href="https://github.com/typicode/json-server">GitHub - typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously)</a></li></ul><p>มาลองเล่นกันเลย!</p><h4>ติดตั้ง JSON Server</h4><p>ก่อนอื่น สร้าง Folder เปล่าๆ ในโปรเจ็คของเราก็ได้ครับ แล้วรันคำสั่งใน Terminal</p><pre>npm install json-server</pre><h4>สร้าง Database ด้วยไฟล์ json</h4><p>จากนั้นให้สร้างไฟล์ db.json ขึ้นมา</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJVT47XN6eivrzxba-h0Tw.png" /></figure><p>เปิดไฟล์ db.json แล้วใส่ข้อมูล ผู้เขียนขอยกตัวอย่างดังโค้ดด้านล่าง</p><pre>{<br>    &quot;products&quot;: [<br>        {<br>            &quot;id&quot;: &quot;1&quot;,<br>            &quot;title&quot;: &quot;Apple&quot;,<br>            &quot;price&quot;: 59<br>        },<br>        {<br>            &quot;id&quot;: &quot;2&quot;,<br>            &quot;title&quot;: &quot;Banana&quot;,<br>            &quot;price&quot;: 19<br>        }<br>    ],<br>    &quot;members&quot;: [<br>        {<br>            &quot;id&quot;: &quot;1&quot;,<br>            &quot;fullname&quot;: &quot;Robert Frankfurt&quot;,<br>            &quot;joineddate&quot;: &quot;2024-02-14&quot;<br>        },<br>        {<br>            &quot;id&quot;: &quot;2&quot;,<br>            &quot;fullname&quot;: &quot;John Loveyou&quot;,<br>            &quot;joineddate&quot;: &quot;2024-02-14&quot;<br>        }<br>    ]<br>}</pre><h4>รัน Server</h4><p>จากนั้นรันคำสั่งที่ terminal</p><pre>$ npx json-server db.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*-WjrF7dgF1IvoluR9Zg-dg.png" /></figure><h3>ลองใช้งาน</h3><p>ยิง GET API ผ่าน command curl</p><pre>curl http://localhost:3000/products</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QHd5s5D397FoGvZybZ00nA.png" /></figure><p>ยิง GET ผ่าน Thunder Client</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3pVHAw7_AMaL5qUgLsgrzg.png" /></figure><p>อีกทั้งยังสามารถ filter ข้อมูลได้อีกด้วย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9C90wZGs1hg1_xTlZu42fw.png" /></figure><p>อ๊ะ ลอง POST ข้อมูลดูบ้าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PNvAtJaFMZ01ewRh5XZhuQ.png" /></figure><h4>การทำ Paginate</h4><ul><li>page</li><li>per_page (default = 10)</li></ul><pre>GET /posts?_page=1&amp;_per_page=25</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lFx0cVULEpfZOYcVC4n74g.png" /></figure><h3>สรุป</h3><p>จะเห็นได้ว่า JSON Server นี้สามารถช่วยการ Mock API ได้อย่างง่าย เป้าหมายเพื่อการทดสอบหรือทำ Prototype โดยรองรับ CRUD, Filter ข้อมูล, Paginate, และการ Sort อีกด้วย</p><p>ยิ่งไปกว่านั้นหากต้องการทดสอบแบบออนไลน์ ทาง Typicode ยังมี Service ที่เข้ามาอ่านไฟล์ db.json ของเราจาก github และยิง API ด้วย URL ของทาง My JSON Server ได้อีกด้วย</p><p><a href="https://my-json-server.typicode.com/">My JSON Server</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef0e226790ac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smile-programming/%E0%B8%AD%E0%B8%B9%E0%B9%89%E0%B8%A7%E0%B8%A7%E0%B8%A7%E0%B8%A7-backend-%E0%B8%A3%E0%B8%AD%E0%B8%94%E0%B8%95%E0%B8%B2%E0%B8%A2-%E0%B9%80%E0%B8%A1%E0%B8%B7%E0%B9%88%E0%B8%AD-api-%E0%B8%82%E0%B8%B6%E0%B9%89%E0%B8%99%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%97%E0%B8%B1%E0%B8%99-frontend-%E0%B9%81%E0%B8%81%E0%B9%89%E0%B9%80%E0%B8%81%E0%B8%A1%E0%B9%82%E0%B8%94%E0%B8%A2-mock-api-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-fake-rest-api-ef0e226790ac">อู้วววว!! Backend รอดตาย! เมื่อ API ขึ้นไม่ทัน Frontend แก้เกมโดย Mock API ด้วย Fake REST API</a> was originally published in <a href="https://medium.com/smile-programming">TECHFOR</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[รีวิว Google Data Analytics — Career Certificate ฉนับนอนน้อยแต่นอนนะ]]></title>
            <link>https://medium.com/smile-programming/%E0%B8%A3%E0%B8%B5%E0%B8%A7%E0%B8%B4%E0%B8%A7-google-data-analytics-career-certificate-%E0%B8%89%E0%B8%99%E0%B8%B1%E0%B8%9A%E0%B8%99%E0%B8%AD%E0%B8%99%E0%B8%99%E0%B9%89%E0%B8%AD%E0%B8%A2%E0%B9%81%E0%B8%95%E0%B9%88%E0%B8%99%E0%B8%AD%E0%B8%99%E0%B8%99%E0%B8%B0-6326ed920d14?source=rss-2d2110fa047a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6326ed920d14</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[data-analytics-courses]]></category>
            <category><![CDATA[google-data-analytics]]></category>
            <category><![CDATA[data-aggregation]]></category>
            <dc:creator><![CDATA[Suriya Sonphu]]></dc:creator>
            <pubDate>Sun, 23 Apr 2023 16:08:04 GMT</pubDate>
            <atom:updated>2023-04-23T16:08:04.194Z</atom:updated>
            <content:encoded><![CDATA[<h3>รีวิว Google Data Analytics — Career Certificate ฉนับนอนน้อยแต่นอนนะ</h3><p>เนื่องด้วยยุคปัจจุบัน Data สามารถสร้างประโยชน์ให้กับภาคอุตสาหกรรมต่างๆ และเป็นเรื่องใกล้ตัวกับทุกคน จนอาจกลายเป็นทักษะพื้นฐานที่ทุกคนควรมีติดตัวไว้</p><blockquote>ก่อนอื่นขอขอบคุณผู้สนับหลัก <a href="https://medium.com/u/b0b9a429d0da">True Digital Academy</a> ร่วมกับโครงการ Samart Skills Google โดยเปิดโอกาสให้บุคคลทั่วไปได้รับทุนการศึกษาเข้าถึงการอบรมและรับรองทักษะในหลักสูตร “ใบรับรองทักษะอาชีพของโครงการ Samart Skills” บนแพลตฟอร์ม Coursera แบบไม่มีค่าใช้จ่าย<br>Ref. <a href="https://www.truedigitalacademy.com/course/samartskills">https://www.truedigitalacademy.com/course/samartskills</a></blockquote><p>หลักสูตรนี้มีคอร์สย่อยทั้งหมด 8 คอร์ส โดยคอร์สนี้เป็นคอร์สปูพื้นฐานที่จะก้าวไปสู่สายงาน Data Analytics (DA) ดังนั้นคอร์สนี้ไม่จำเป็นต้องมีพื้นฐานทาง DA เลย แต่ขอให้มีความรู้พื้นฐานด้านคอมพิวเตอร์ และที่สำคัญคือภาษาอังกฤษ เนื่องจากตลอดคอร์สบรรยาย เนื้อหาสำหรับอ่าน รวมถึงแบบทดสอบเป็นภาษาอังกฤษทั้งหมด</p><p>คอร์สนี้ออกแบบใช้เวลาเรียนโดยประมาณ 6 เดือน สำหรับคนที่อยู่ในสายงาน Developer, IT ที่เกี่ยวข้องอาจจะใช้เวลาเรียนน้อยกว่านั้น เนื่องจากเป็นคอร์สพื้นฐานทำให้เราสามารถข้ามเนื้อหาบางส่วนไปทำแบบทดสอบได้เลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*m-0WFj-43MjwJ4B15ocxYA.png" /><figcaption>Google Data Analytics Certificate</figcaption></figure><p>เนื้อหาของคอร์สจะเริ่มตั้งแต่ปูพื้นฐานเรื่อง Data คืออะไร เราจะได้ Data จากแหล่งใดบ้าง ตลอดถึงสอนถึงกระบวนการคิดแบบ DA โดยเนื้อหาเป็นคลิปวิดีโอสั้นๆ อธิบายแต่ละหัวข้อ รวมถึงมีบทความให้อ่าน โดยเนื้อหาทั้งหมดมีความจำเป็นอย่างยิ่ง แต่ละหัวข้อจะมี Quiz ให้ตอบสั้นๆ 4–5 ข้อ กรณีที่เป็นภาคปฎิบัติก็จะออกแนวเหมือนเป็นใบงานเวลาเราเรียนวิชาคอมพิวเตอร์ ให้ทำตามแต่ละ step จนได้ผลลัพธ์ สุดท้ายจะมี Quiz แบบ Multiple choices ให้ตอบคำถามตามผลที่เราทำ (อย่าตกใจไป ไม่ยากเลย)</p><h3>มาดูกันว่าแต่ละคอร์สย่อยมีอะไรบ้าง</h3><p>Course 1: <strong>Foundation: Data, Data, Everywhere</strong> <em>อธิบายปูพื้นฐานตั้งแต่ว่า Data คืออะไร บทบาทของนักวิเคราะห์ กระบวนการวิเคราะห์ข้อมูล โดยเน้นกระบวนตลอดหลักสูตร คือ Ask, Prepare, Process, Analyze, Share, Act รวมถึงบทบาทการใช้ Spreadsheets, query languages, และ data visualization tools ใน data analytics</em></p><p>Course 2: <strong>Ask Question to Make Data-Driven Decisions</strong> <em>อธิบายถึงขั้นตอนการแก้ไขปัญหาในบทบาทของการวิเคราะห์ข้อมูล การเลือกใช้ข้อมูลเพื่อกระบวนการตัดสินใจ แสดงตัวอย่างการใช้ Spreadsheets เพื่อจัดการข้อมูลในขั้นพื้นฐาน จนนำไปสู่กระบวนการ organizing data</em></p><p>Course 3: <strong>Prepare Data for Exploration</strong> <em>อธิบายถึงปัจจัยที่ใช้ในการพิจารณาเมื่อต้องตัดสินใจเกี่ยวข้อง Data collection ความแตกต่างระหว่าง Biased &amp; Unbiased data และเป็น best practice ในการ organizing data</em></p><p>Course 4: <strong>Process Data from Dirty to Clean</strong> <em>อธิบายกระบวนการ Clean data ความถูกต้องของข้อมูล ความเสี่ยงหากข้อมูลไม่มีความถูกต้อง ในคอร์สย่อยนี้จะสอนถึงเรื่องการใช้ SQL Query บน Database</em></p><p>Course 5: <strong>Analyze data to Answer Questions</strong> <em>อธิบายความสำคัญของการ organizing data เช่น การเรียงลำดับ (sort) หรือการกรอง (filter) ก่อนที่จะนำไปสู่กระบวนการวิเคราะห์ รวมถึงการเข้าใจกระบวนการที่เกี่ยวข้องกับการจัดรูปแบบของข้อมูล (formatting of data) ในคอร์สย่อยนี้มีแสดงการใช้ function ต่างๆ ใน SQL queries เพื่อที่จะ combining data จากข้อมูลหลายตาราง (join tables)</em></p><p>Course 6: <strong>Share Data Through the Art of Visualization </strong><em>สอนถึงการใช้ data visualization อธิบายผลลัพธ์ของการวิเคราะห์ข้อมูล โดยใช้ Tableau เป็นเครื่องมือทำ data visualization</em></p><p>Course 7: <strong>Data Analysis with R Programming </strong><em>สอนความรู้พื้นฐานที่เกี่ยวข้องกับการเขียนโปรแกรมด้วยภาษา R ในการวิเคราะห์ข้อมูล เช่น การเรียกใช้ฟังก์ชั่น, การใช้ตัวแปร, การสร้าง vectors และสร้าง visualization ด้วยภาษา R</em></p><p>Course 8: <strong>Google Data Analytics Capstone: Complete a Case Study </strong><em>ในคอร์สย่อยสุดท้ายจะมี case study ให้อ่านและทดลองวิเคราะห์ข้อมูล รวมถึงสอนถึงการสร้าง Porfolio บน GitHub, Kaggle เทคนิคการเตรียมสัมภาษณ์งานตำแหน่ง Data Analytics อีกด้วย</em></p><p>เกณฑ์การสอบผ่านแต่ละคอร์ส จะต้องทำแบบทดสอบได้คะแนนมากกว่า 80% ขึ้นไป หากไม่ผ่านไม่ต้องกังวลใจไป เรายังมีโอกาสสอบได้จนกว่าจะผ่าน ถ้าไม่ผ่านเกิน 3 ครั้งต้องรอ 24 ชม. (ขึ้นอยู่กับคอร์ส) เพื่อกลับมาสอบใหม่ โดยส่วนใหญ่แล้วแบบทดสอบแต่ละคอร์สจะเป็นการยก Real-world case study มาให้เราตอบ ซึ่งถ้าเราตั้งใจเรียนในคลิปวิดีโอและอ่านบทความ ยังไงสามารถสอบผ่านได้สบายๆ (ย้ำว่า ไม่ยากจนต้องกังวลใจ)</p><h3>เมื่อสอบผ่าน</h3><p>แต่ละคอร์สย่อยเราจะได้รับใบ Certification ของคอร์สย่อยรวมทั้งหมด 8 ใบ</p><p>และเมื่อผ่านครบ 8 คอร์สย่อแล้ว เราจะผ่านหลักสูตรและได้รับใบ Certificate Google Data Analytics พร้อม Badge เอาไว้ประดับโปรไฟล์บน Linkedin อีกด้วย</p><h3>โดยส่วนตัวคิดว่า</h3><ul><li>คอร์สนี้ถือเป็นคอร์สที่ดีเลยในการปูพื้นฐานในสายงาน Data Analytics ซึ่งคอร์สเหมาะสำหรับผู้ที่ต้องการเริ่มต้นจริงๆ ไม่ยากจนเกินไป</li><li>ไม่ต้องใช้พื้นฐานคณิตศาสตร์ใดๆ คิดว่าหลังจากจบหลักสูตรนี้ ควรเรียนเสริมการวิเคราะห์ข้อมูล ซึ่งคิดว่า Google จะมีภาคต่อของคอร์สนี้</li><li>ได้ทดลองใช้เครื่องมือการวิเคราะห์ข้อมูล อาทิ Google BigQuery, Tableau, RStudio</li><li>บวกกับในคอร์สได้เพิ่มเติมเนื้อหา Softskill สำหรับการเป็น Data Analytics อีกด้วย</li></ul><p>หากท่านใดสนใจเรียนหลักสูตรนี้สามารถ enroll course ได้ที่ <a href="https://www.coursera.org/professional-certificates/google-data-analytics">https://www.coursera.org/professional-certificates/google-data-analytics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6326ed920d14" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smile-programming/%E0%B8%A3%E0%B8%B5%E0%B8%A7%E0%B8%B4%E0%B8%A7-google-data-analytics-career-certificate-%E0%B8%89%E0%B8%99%E0%B8%B1%E0%B8%9A%E0%B8%99%E0%B8%AD%E0%B8%99%E0%B8%99%E0%B9%89%E0%B8%AD%E0%B8%A2%E0%B9%81%E0%B8%95%E0%B9%88%E0%B8%99%E0%B8%AD%E0%B8%99%E0%B8%99%E0%B8%B0-6326ed920d14">รีวิว Google Data Analytics — Career Certificate ฉนับนอนน้อยแต่นอนนะ</a> was originally published in <a href="https://medium.com/smile-programming">TECHFOR</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[เก่งลึกด้านเดียว ไม่พอ! ยุคนี้ต้องเก่งกว้าง [ตอนที่ 2]]]></title>
            <link>https://medium.com/keep-reading/%E0%B9%80%E0%B8%81%E0%B9%88%E0%B8%87%E0%B8%A5%E0%B8%B6%E0%B8%81%E0%B8%94%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7-%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%9E%E0%B8%AD-%E0%B8%A2%E0%B8%B8%E0%B8%84%E0%B8%99%E0%B8%B5%E0%B9%89%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%81%E0%B9%88%E0%B8%87%E0%B8%81%E0%B8%A7%E0%B9%89%E0%B8%B2%E0%B8%87-%E0%B8%95%E0%B8%AD%E0%B8%99%E0%B8%97%E0%B8%B5%E0%B9%88-2-a394ac0773da?source=rss-2d2110fa047a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a394ac0773da</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[book-recommendations]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[specialist]]></category>
            <category><![CDATA[psychology]]></category>
            <dc:creator><![CDATA[Suriya Sonphu]]></dc:creator>
            <pubDate>Fri, 17 Dec 2021 14:28:17 GMT</pubDate>
            <atom:updated>2021-12-17T14:28:17.023Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>It was like a sandwich: even if all the ingredients aren’t amazing themselves, they still taste pretty good when mushed together. — Pat Flynn</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n0XyoLo5EnTPnFC7" /><figcaption>Photo by <a href="https://unsplash.com/@apollofotografie?utm_source=medium&amp;utm_medium=referral">Giorgi Iremadze</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>การเรียนรู้ทักษะหลายๆ ด้าน จึงเป็นเหมือนแซนวิช ถึงส่วนผสมจะไม่ได้พิเศษอะไร แต่เมื่อนำส่วนผสมทุกอย่างมารวมกันรสชาติก็อร่อยขึ้น — แพท ฟลิน</blockquote><p>หลังจากที่เราได้ทราบถึงว่า การที่เราจะเป็นคนเก่งกว้างหรือเก่งแบบเป็ด (Generalist) นั้น มีความน่าสนใจไม่น้อยเลย ลองมาดูกันครับว่า การเป็นคนเก่งกว้างตามฉบับของนักเขียนแพท ฟลิน เค้าแนะนำไว้ว่าอย่างไรกันบ้าง</p><p>กฎการเป็นคนเก่งกว้าง (เก่งแบบเป็ด) มี 5 ข้อ</p><ol><li><strong>เก่งกว้างดีกว่าเก่งลึก (Skill Stacking &gt; Specialization)</strong><br>การผสมผสานทักษะจะทรงพลังและมีประสิทธิภาพมากกว่าการชำนาญทักษะเพียงด้านเดียว ถึงแม้ว่าทักษะนั้นจะยังพัฒนาไม่เต็มที่ก็ตาม แต่ต้องเรียนรู้ที่จะผสมผสานทักษะเหล่านั้น</li><li><strong>เก่งลึกในระยะสั้น (Short-Term Specialization)<br></strong>การเป็นคนเก่งกว้างไม่จำเป็นต้องพัฒนาทุกด้านในครั้งเดียว การเป็นคนเก่งกว้างที่ดีมักจะมุ่งพัฒนาทักษะให้เก่งลึกโดยโฟกัสเพียง 1–2 ด้านในเวลานั้นๆ และจะพัฒนาทักษะนั้นเพียง 80% ก็เพียงพอ และเอาเวลาไปพัฒนาทักษะด้านอื่นๆ ต่อ</li><li><strong>กฎของ 80% (The Rule of 80 Percent)<br></strong>กฎของ 80% ได้กล่าวไว้ว่า ถ้าคุณเก่งทักษะด้านใด 100% นั่นหมายความว่าคุณคือคนที่เก่งที่สุดในโลก ดังนั้นพัฒนาทักษะแต่ละด้านเพียง 80% ก็พอ ไม่ต้องมานั่งคิดมากว่า เก่งระดับนี้แล้วทำไมยังไม่สำเร็จ ไม่ใช่ปัญหาของคุณ แต่ถึงเวลาที่คุณต้องไปพัฒนาทักษะด้านอื่นต่อ</li><li><strong>มุ่งพัฒนาทักษะแต่ที่จำเป็นตามเป้าหมายที่ตั้งไว้ (Integration &gt; Isolation)<br></strong>หลักการของข้อนี้ คุณควรฝึกฝนพัฒนาทักษะเฉพาะสิ่งที่คุณต้องทำได้ให้สอดคล้องกับงานหรือเป้าหมายที่คุณตั้งไว้ อย่าเสียเวลาพัฒนาทักษะที่ไม่เกี่ยวข้องเลย ยกตัวอย่างเช่น คุณต้องการเป็นมือกีตาร์และอยากเล่นเพลงของวง AC/DC คุณไม่จำเป็นต้องเรียนคอร์ดบีแฟลท 13 เลยเพราะวงนี้ไม่ได้ใช้คอร์ดนี้เลย คุณควรฝึกเฉพาะคอร์ดที่อยู่ในเพลงนั้น การฝึกฝนแบบเจาะจงทำให้คุณได้ผลลัพธ์ที่เฉพาะเจาะจงเช่นกัน ดังนั้นควรฝึกฝนทักษะต่างๆ ตามผลลัพธ์ที่คุณคาดหวังไว้เท่านั้น</li><li><strong>ฝึกฝนและเพิ่มระดับความยาก (Repetition and Resistance)<br></strong>หากคุณต้องการที่จะเก่งอะไรสักอย่าง ไม่เพียงแต่ฝึกฝนเท่านั้น แต่คุณต้องเพิ่มระดับความยากขึ้นด้วย ถ้าคุณฝึกฝนสิ่งที่ยากไม่พอ ทักษะของคุณอาจจะไม่เพียงพอ</li></ol><blockquote>It’s not enough to simply do something; you also need to make that something difficult for yourself.</blockquote><p>จากกฎของการเป็นคนเก่งกว้างของนักเขียนแพท ฟลิน นี่น่าสนใจมากเลยนะครับ ซึ่งในยุคนี้การที่เราจะทำงานชิ้นใดก็ตาม เราจำเป็นต้องมีทักษะรอบด้านเพื่อทำให้งานหรือสิ่งที่เรารับผิดชอบนั้นประสบความสำเร็จ ไม่จำเป็นต้องเก่งที่สุด แต่ให้สิ่งที่เราทำนั้นได้ผสมผสานทักษะรอบด้านที่เรามีอย่างมีประสิทธิและคุณภาพเท่านั้นก็เพียงพอ และที่สำคัญสิ่งที่ทำนั้นได้สร้างคุณค่าสู่ตัวเราและผู้อื่นได้อย่างไร</p><p>พัฒนาทักษะรอบด้านเพื่อเป็นคนเก่งกว้างกันนะครับ :)</p><p>อ้างอิง: Pat Flynn. (2019). How to be better at (almost) everything.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a394ac0773da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/keep-reading/%E0%B9%80%E0%B8%81%E0%B9%88%E0%B8%87%E0%B8%A5%E0%B8%B6%E0%B8%81%E0%B8%94%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7-%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%9E%E0%B8%AD-%E0%B8%A2%E0%B8%B8%E0%B8%84%E0%B8%99%E0%B8%B5%E0%B9%89%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%81%E0%B9%88%E0%B8%87%E0%B8%81%E0%B8%A7%E0%B9%89%E0%B8%B2%E0%B8%87-%E0%B8%95%E0%B8%AD%E0%B8%99%E0%B8%97%E0%B8%B5%E0%B9%88-2-a394ac0773da">เก่งลึกด้านเดียว ไม่พอ! ยุคนี้ต้องเก่งกว้าง [ตอนที่ 2]</a> was originally published in <a href="https://medium.com/keep-reading">Stay Reading</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[เก่งลึกด้านเดียว ไม่พอ! ยุคนี้ต้องเก่งกว้าง [ตอนที่ 1]]]></title>
            <link>https://medium.com/keep-reading/%E0%B9%80%E0%B8%81%E0%B9%88%E0%B8%87%E0%B8%A5%E0%B8%B6%E0%B8%81%E0%B8%94%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7-%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%9E%E0%B8%AD-%E0%B8%A2%E0%B8%B8%E0%B8%84%E0%B8%99%E0%B8%B5%E0%B9%89%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%81%E0%B9%88%E0%B8%87%E0%B8%81%E0%B8%A7%E0%B9%89%E0%B8%B2%E0%B8%87-ef700bd38804?source=rss-2d2110fa047a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef700bd38804</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[readers]]></category>
            <category><![CDATA[self-development]]></category>
            <category><![CDATA[book-recommendations]]></category>
            <dc:creator><![CDATA[Suriya Sonphu]]></dc:creator>
            <pubDate>Thu, 16 Dec 2021 13:43:22 GMT</pubDate>
            <atom:updated>2021-12-17T14:32:50.638Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>You don’t have to be the best in the world to get ahead.<br>You don’t need to be number one to see the limelight, strike it rich, <br>or find meaning in life. <br>You only need to be good or great or at least fairly competent<br>at a few things and then combine those things to foster that uttermost <br>creative quality within yourself.¹ — Pat Flynn</blockquote><p>คุณไม่ต้องเก่งที่สุดในโลกเพื่อประสบความสำเร็จ คุณไม่จำเป็นต้องเป็นที่หนึ่งเพื่อสร้างชื่อเสียงและฐานะ หรือเพื่อตามหาความหมายของชีวิต คุณแค่ต้อง “เก่งพอใช้” หรือ “เก่งให้มากพอ” ในหลายทักษะ แล้วค่อยนำทักษะที่มีมาใช้ร่วมกัน เพื่อสร้างความสำเร็จให้กับคุณ — เขียนโดย แพท ฟลิน เป็นทั้งนักคิด นักเขียน มือกีตาร์ นักธุรกิจ นักเทควันโด และนักอื่นๆ ด้วย จากหนังสือ How to be better at (almost) everything.</p><p>ในยุคนี้ เราจะทำสิ่งใดสิ่งหนึ่ง จำเป็นต้องใช้ทักษะที่หลากหลายกว่าสมัยก่อนมาก เช่น การจะเป็น Youtuber ต้องมีทักษะทั้งการกล้าแสดงออก การสื่อสาร การถ่ายภาพหรือวิดีโอ การตัดต่อ รวมถึงการนำวิดีโออัพโหลดขึ้นบนช่อง youtube อีกทั้งยังต้องรู้ถึง Digital marketing ด้วย เพื่อทำให้ช่อง youtube ได้ engagement จากผู้ชมเพื่อสร้างรายได้</p><p>จากหนังสือ How to be better at (almost) everything ได้นำเสนอว่า <em>ทำไมการเก่งหลายด้าน จึงดีกว่า การเก่งด้านเดียวจนสุดทาง</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J5TZHrnZe3sJ-Jxa" /><figcaption>Photo by <a href="https://unsplash.com/@timothycdykes?utm_source=medium&amp;utm_medium=referral">Timothy Dykes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>การเก่งหลายด้าน คนไทยมักเรียกว่า “ทำงานเป็นเป็ด” เพราะเป็ดมีปีกแต่บินไม่ได้ มีความสามารถลอยน้ำได้ แต่ก็ดำน้ำได้ไม่เหมือนปลา จึงเปรียบเปรยว่า คนที่มีทักษะหลายด้านเสมือนเป็ดนั่นเอง</p><p>แต่การเก่งแบบเป็ดก็ไม่ได้แย่ เพราะการเป็นเป็ดน่าสนุกออก</p><ol><li><em>คนเก่งแบบเป็ดจะไม่น่าเบื่อ </em>พอมีทักษะหลายอย่าง ก็จะทำอะไรได้หลายอย่าง เห็นไหม ไม่น่าเบื่อเลย</li><li><em>คนเก่งแบบเป็ดไปทำธุรกิจจะยิ่งส่งผลดี</em> เพราะการมีความสามารถรอบด้านกว่าคนเก่งเพียงด้านเดียว เนื่องจากการทำธุรกิจ ต้องรู้ความต้องการของลูกค้า การตลาด การเงิน การบัญชี ไหนจะเรื่องภาษีอีก แต่คุณไม่จำเป็นต้องชำนาญทั้งหมด คุณสามาถหาคนที่ชำนาญมาช่วยธุรกิจคุณได้ แต่คุณจำเป็นต้องรู้บ้าง เพื่อที่จะได้บริหารธุรกิจได้โดยไม่ถูกหลอก อีกทั้งยังสามารถประยุกต์ใช้ทักษะต่างๆ ร่วมกันเพื่อสร้างประโยชน์ให้แก่ผู้อื่นได้อีกด้วย</li><li><em>คนเก่งแบบเป็ดจะมีความสุข</em> แต่จริงๆ ความสุขสร้างได้ด้วยใจของเราเอง แต่เราไม่ได้ความสุขจากสิ่งที่เราได้รับหรอกนะ แต่เราได้ความสุขจากการได้เพลิดเพลินกับการทำสิ่งต่างๆ ด้วยความพยายามของเรา ซึ่งเป็นสิ่งที่ดี และมันจะนำพาสิ่งดีๆ มาให้เรา</li></ol><blockquote>การนำทักษะหลายๆ ด้านมาผสมผสานกันแล้วนำมาประยุกต์เพื่อสร้างชีวิตที่ดี</blockquote><p>[1] Pat Flynn. (2019). How to be better at (almost) everything.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef700bd38804" width="1" height="1" alt=""><hr><p><a href="https://medium.com/keep-reading/%E0%B9%80%E0%B8%81%E0%B9%88%E0%B8%87%E0%B8%A5%E0%B8%B6%E0%B8%81%E0%B8%94%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7-%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%9E%E0%B8%AD-%E0%B8%A2%E0%B8%B8%E0%B8%84%E0%B8%99%E0%B8%B5%E0%B9%89%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%81%E0%B9%88%E0%B8%87%E0%B8%81%E0%B8%A7%E0%B9%89%E0%B8%B2%E0%B8%87-ef700bd38804">เก่งลึกด้านเดียว ไม่พอ! ยุคนี้ต้องเก่งกว้าง [ตอนที่ 1]</a> was originally published in <a href="https://medium.com/keep-reading">Stay Reading</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>