Go Profiling 101 — ดูว่าโค้ดเราช้าตรงไหน โดยไม่ต้องเดา
เริ่มจาก pprof ไปจนถึงวิธีอ่านผล เหมาะกับ dev ที่อยาก optimize แต่ไม่เคยใช้ profiling
บันทึกเรื่อง Code, AI และ Infrastructure สำหรับนักพัฒนาไทย
กำลังโหลดบทความ...
เริ่มจาก pprof ไปจนถึงวิธีอ่านผล เหมาะกับ dev ที่อยาก optimize แต่ไม่เคยใช้ profiling
"log หรือ return — อย่าทำทั้งคู่" — หลักการจัดการ error ที่เปลี่ยนวิธีเขียน Go
เขียน Go ด้วยสำเนียงภาษาอื่น — pattern ที่ควรเลิกทำ + วิธีเขียนแบบ Go way
ฟีเจอร์ใหม่ใน Go 1.27 — generic methods, encoding/json/v2, uuid stdlib, SIMD
Go nil vs Java null vs Python None — ดียังไง แปลกตรงไหน
7 เหตุผลทางวิศวกรรมที่ทำให้ Go compile เร็ว — พร้อมประวัติ Ken Thompson
%w, errors.Is, errors.As — ใช้ยังไง ต่างกันตรงไหน
รู้จัก QUERY method — safe, idempotent, มี body ได้ — ต่างจาก GET/POST ยังไง
4 ระดับการใช้ AI + มนุษย์ควร focus ที่อะไรเมื่อ AI เก่งขึ้น
ทำไมควรใช้ Aider ถ้าคุณเชื่อใน pair programming + atomic commit
AI reproduce bug ใน sandbox — แล้วรายงานกลับ — เราตัดสินใจเอง
3 งานวิจัยวิเคราะห์ — syntax ง่ายมีผลต่อ AI จริงไหม
4 persistence models, 30+ event hooks, skills, subagents, output styles
ใช้ AutoGen สร้าง agent แบบ multi-agent — coder, reviewer, tester คุยกัน
7 layers ที่เปลี่ยน LLM ธรรมดาให้กลายเป็น AI agent — ตั้งแต่ system prompt ถึง multi-agent
Token budget, context compaction, error recovery — วิศวกรรมที่แท้จริงของ AI agent
เมื่อไหร่ควรลงทุน ต้องแลกด้วยอะไร — พร้อมคำนวณ cost จริง
PII, structured logging, trace_id, error handling — checklist สำหรับ dev จริง
Sentinel, custom types, retryable, circuit breaker, error codes — ต่อจาก Double Report
No staging area, first-class undo, bookmark — jj ทำอะไรที่ git ทำไม่ได้
ทางเลือก Postman — เก็บ collection เป็น plain text ใน git
เล่า OAuth แบบนิทาน — ตั้งแต่ password → API Key → OAuth 2.1 พร้อม PKCE
QA ถูกแทนที่ด้วย AI หรือยัง — แล้ว QA ควรรอดยังไง