Urgent.News

What's breaking now, across thousands of outlets.

AI

AI เขียน Go โบราณตลอด — JetBrains เลยทำ "กติกาการเขียน Go สมัยใหม่" ให้ agent แล้ว

📅 เขียนเมื่อ: สิงหาคม 2026 | ครอบคลุม Go 1.0–1.27 ⚠️ ข้อมูลอัปเดต ณ วันที่เขียน — เวอร์ชัน/ฟีเจอร์อาจเปลี่ยนตามรอบ release ของ Go ถ้าคุณเคยให้ AI coding agent เขียนโค้ด Go ให้ ลองสังเกตดูว่ามันเขียนออกมาเป็นยังไง ส่วนใหญ่แล้วมันจะเขียนแบบ "รุ่นพ่อ" ออกมา — ใช้ if a > b { return a } แทนที่จะใช้ max(a, b) , เขียน loop หา element ทีละตัวแทน slices.Contains , หรือประกาศตัวแปรชั่วคราวเพื่อเอา pointer…

In 2026, JetBrains has developed a solution to address the issue of AI-generated Go code that adheres to outdated idioms, as per the rules outlined in the go-modern-guidelines repository. This repository compiles 57 guidelines covering Go versions 1.0 to 1.27, with each guideline providing clear before/after examples and source code.

The guidelines are designed to be easily integrated into popular AI coding agents, such as Junie, Claude Code, Codex, Cursor, and others, through the use of a plugin or skill. By utilizing these guidelines, AI coding agents will be better equipped to generate idiomatic, modern Go code, ultimately reducing the need for manual fixes after AI code generation.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

How MCP Wastes 4-32x More Tokens Than CLI (and How to Fix It)

Here are two numbers that should ruin your morning coffee: 71,929 tokens versus 123 tokens . Same 255 tools. Same machine. Same day.

  • MCP uses 71,929 tokens to load 255 tools, compared to CLI's 123 tokens.
  • Sending the full tool catalog wastes 56% of a 128K context window.
  • Fix involves sending only tool names, fetching schemas only when needed.

Why SK AX and SAP Are Betting on Agentic AI to Reinvent Enterprise ERP

SK AX and SAP are betting that agentic AI can reshape how companies operate ERP systems spanning finance, human resources, procurement, inventory and sales — potentially moving enterprises closer to a…

  • SK AX and SAP collaborate on integrating agentic AI into enterprise ERP systems.
  • Partnership aims to create AI-native enterprises with AI agents embedded in daily operations.
  • SK AX's AI capabilities, like my Finance and EAR Studio, combine with SAP's technologies.

More from Wednesday 26 August →