Re:Coding agent in 94 lines of Ruby
by monooso on Saturday May 17, 2025 @08:20AM
(#44013750)
Given that this post is a response to an article about achieving the same in "N lines of Go" (also using a library), it seems like an appropriate title.
[ Parent
| on HN ]
Re:Coding agent in 94 lines of Ruby
by johnisgood on Saturday May 17, 2025 @08:44AM
(#44013890)
The original post uses "github.com/anthropics/anthropic-sdk-go", the Ruby uses a different library, does it not? If they are two different libraries, then the comparison does not make too much sense.
Re:Coding agent in 94 lines of Ruby
by radanskoric on Saturday May 17, 2025 @09:14AM
(#44014073)
I didn't put the number into the title to make it a competition. LoC is a poor metric. I put it to communicate to the reader that they won't have to spend a lot of time reading the article to get a full understanding.
I always put extra effort into trying to make my blog posts shorter without sacrificing the quality. I think good technical writing should transfer the knowledge while requesting the least amount of time possible from the reader.
Re:Coding agent in 94 lines of Ruby
by johnisgood on Saturday May 17, 2025 @09:17AM
(#44014109)
I know, I was only responding to the comment, I was not trying to claim that you are attempting to make it a competition, my bad if it came across as such.
Re:Coding agent in 94 lines of Ruby
by radanskoric on Saturday May 17, 2025 @09:58AM
(#44014385)
It's good that you commented. I see more than a few people are getting caught up on the number of lines so it's good that I clarify.
I simply meant that I don't consider the title misleading; it's in keeping with the format of the original title and both solutions use third-party libraries to communicate with the external service.
Re:Coding agent in 94 lines of Ruby
by johnisgood on Sunday May 18, 2025 @08:18AM
(#44020801)
Fair enough. :)