A Journal Through My Activities, Thoughts, and Notes
wow! devstral is awesome!
#ai
在一次对话中,我感慨的对#chatGPT 说“尽信书不如无书”。它开口就回:“没错,工具是用来辅助决策的,而不是让它替你思考。SonarQube 的规则是基于通用的代码质量准则,但它并不理解代码的具体上下文。真正的工程实践需要结合经验和判断,而不是盲目听从工具的建议。

就像《吕氏春秋》里说的:“用师不能无书,弃书而不用师,愚也;尽信书则不如无书,惑也。”——书(或工具)是参考,而不是绝对真理。😄

然而我知道它又在编了,因为我知道“尽信书不如无书”并非出自“吕氏春秋”。放Google去搜前半句 “用师不能无书,弃书而不用师,愚也”,果然零结果。然而我仍惊讶它能随口绉出“用师不能无书,弃书而不用师,愚也;尽信书则不如无书,惑也。”这样工整又内含深义的文字。虽然它瞎编引文该打,但这句话却实实在在是它的创作。毫无疑问,它读过了远超过任何一个人类一生能够读过的古书,它显然能够用文言文思考并说话。

如果能说服它让它扮演大教育家或者大思想家,说不定它也能洋洋洒洒写出它脑海里独一无二的经典。

#ai
关于ai能帮程序员多少忙,这个老兄说的我很赞成。

That's sort of my experience too. It's really good at some auto-complete (especially copying patterns already in your code). For example if you write some cross product function it will easily auto-complete the equations after seeing one. It's obviously not as good as intellisense where that works.
And it's really good for basic stuff in things you don't want to have to look up. E.g. "write me JavaScript to delete all DOM nodes with class 'foo'".

I reckon you're underestimating how much time that saves though. The auto-complete saves me a few seconds many times a day. Maybe 2-3 minutes a day. A whole day in one year.

The "write me some shitty script" stuff saves much more time. Sometimes maybe an hour. That's rarer but even one a month that's still a whole day in a year.
Maybe 2 days in a year doesn't seem significant but given the low cost of these AI tools I think any company is self-harming if they don't pay for them for everyone.

(Also I think the hallucination isn't that bad once you get used to it.)

<https://news.ycombinator.com/item?id=43302183>

#ai
 
 
Back to Top