Hacker News new | ask | show | jobs
by mewpmewp2 1 day ago
I am not familiar with Rust, but are you saying the pattern there is too verbose or complicated? At the very least it does seem fairly readable for me who is not familiar with rust even if it is more boilerplatey than if else. It is expecting a specific combination of config for a specific queue drivers and is validating and returning errors for the user if it doesn't match. Could be more schema driven or? Or I mean I can quite quickly understand what it is doing without knowing Rust myself. Or it could be more registry driven to register driver and expected conf? Not sure if really worth over just just 4 or 5?
1 comments

I also don’t know Rust but I think what GP is saying is that the subject of the comment is actually inherent to developing in Rust, so it shouldn’t need to be there?

I have realised that these no-shit-Sherlock comment blocks are perhaps something that needs to be tolerated to some extent, simply because they provide contextual cues only at the point of reading the file.

If the LLM only gets things wrong with this aspect at this particular point (which is entirely possible) then as untidy or silly as it looks, this is probably the right place for that cue. If it can be removed and its presence annoys a human reader, a human reader should remove it.

This is especially useful if you’re using a local LLM with less deep training in a particular language/tool/concept.

I didn't mean the comments there, I was more so talking about the mentioned cursed queue.rs function there.