✍️(◔◡◔) 紀錄一下最近用 AI 最舒服的一次經歷

拜託AI做的事是:「清理註解掉、沒有用的CSS」


這件事情的緣由是我在幫前人寫的畫面重構。

因為要改的東西很多,所以很多 code 都是用「先註解掉」的方式處理,以便我可以和原本的畫面進行對照。


在經歷過各種波折,終於改完後,註解掉的不用的 code 也多如牛毛了……( ̄┰ ̄*)

這時拜託 AI 幫我把這些清理掉。

Stack Overflow 2025 年的問券調查報告觀後感

前幾天天看到 Stack Overflow 2025 年的問券調查報告。

還蠻有意思的,尤其是 AI 相關的部分。

這份調查和我自己的感受蠻接近的。

ಠ_ರೃ 答非所問的 AI

There's a new kind of coding I call "vibe coding".
(中略)
It's possible because the LLMs (e.g. Cursor Composer w Sonnet) are getting too good. Sometimes the LLMs can't fix a bug so I just work around it or ask for random changes until it goes away. It's not too bad for throwaway weekend projects, but still quite amusing.

—Andrej Karpathy, X(原 Twitter)

不要相信任何會自己思考,但你卻不知道它把腦袋藏在哪裡的東西。

——亞瑟.衛斯理,《哈利波特-消失的密室》第 18 章《多比的獎賞》

延續上一篇,繼續抱怨在開發上使用AI的狀況。

這次抱怨AI答非所問的狀況吧

✍️(◔◡◔) 實測 blogger 的 google 搜尋預覽功能

 久久沒來 blogger,最近居然又更新,新增 google 搜尋預覽功能了!



要用的話,位於編輯列的這裡



(눈_눈) 談談AI在開發中,生出來的程式碼

There's a new kind of coding I call "vibe coding".
(中略)
It's possible because the LLMs (e.g. Cursor Composer w Sonnet) are getting too good. Sometimes the LLMs can't fix a bug so I just work around it or ask for random changes until it goes away. It's not too bad for throwaway weekend projects, but still quite amusing.

—Andrej Karpathy, X(原 Twitter)

不要相信任何會自己思考,但你卻不知道它把腦袋藏在哪裡的東西。

——亞瑟.衛斯理,《哈利波特-消失的密室》第 18 章《多比的獎賞》

今年公司開始要求大家大量使用 AI

所以想寫一下自己這幾個月來,使用 AI 的感想

這次先來談談由與使用 AI 的人合作開發的狀況吧

✍️(◔◡◔) 看到 redit 的某篇留言有感而發

Comment
byu/Ambitious_Credit_591 from discussion
inlearnpython

看完這個留言很有感

雖然很多人在那裏說 AI 取代OO什麼的

但實際上,我自己用 AI 的感覺是:AI還是有所限的,你想用 AI 寫程式的話……算了吧,大師兄……

AI如果寫簡單的東西還行。

目前用起來,最好的是幫我把已知物件轉成 interface / struct

至於寫程式,別說複雜了,有時候連簡單程式都有問題

舉幾個自己遇到的例子

  1. 我今天有個 javafx 的 code,但他沒用 FXML,我請 AI 幫我將之轉換,經常會改完後就出現一堆 bug
  2. 我的 typescript 專案,請 AI 幫我根據要求的 API 建立 function,API會寫出一個包含一堆多餘 code 的 function。例如
    const response = await fetch("API URL", {
    	method: "POST",
    	headers: {
    		'Authorization': token,
    		'Content-Type': 'application/json',
    		'Accept': 'application/json',
    		'Cache-Control': 'no-cache',
    		'Pragma': 'no-cache'
    	},
    	body: JSON.stringify(params),
    	cache: 'no-store'
    })
    
    if (!response.ok) {
    	const errorText = await response.text();
    	console.error('無法取得資料', errorText);
    	throw new Error(`無法取得資料: ${response.status} - ${errorText}`);
    }
    
    const data = await response.json();
    
    // 檢查 data 類型
    if (Array.isArray(data)) {
    	/* 中略 */
    } else if (typeof data === 'object' && data !== null) {
    	/* 中略 */
    } else {
    	console.error('資料格式錯誤', data);
    	throw new Error('資料格式錯誤');
    	
    }
    

……等等


這種情況下,你要我怎麼相信 AI 啦

連幫我省時間都做不到,還增加我時間……