logoalt Hacker News

minimaxirlast Sunday at 9:38 PM2 repliesview on HN

And what are those hallmarks in this case? There is no heuristic that is applicable for every programming language.

Unfortunately, ratatui requires a lot of verbose code that may be indistinguishable from LLM generated code: https://ratatui.rs/examples/apps/demo/


Replies

joshkalast Sunday at 11:12 PM

https://ratatui.rs/examples/apps/demo/ is pretty much the oldest untouched remnant of code from tui-rs days (pre-ratatui fork in Feb 2023).

Ratatui itself has a lot of much nicer AI generated code in it since then ;)

We've also done a bunch of things to help drive down some of the boilerplate (not all of it mind you - as it's a library, not a framework like other TUI libs)

acedTrexlast Sunday at 9:49 PM

Easiest one is ridiculous comments, always a dead ringer for an LLM.

ESPECIALLY when its from a plan and comments '// STEP 2: ...'

Like here in this posts repo https://github.com/huseyinbabal/taws/blob/2ce4e24797f7f32a52...

This a dead ringer for LLM slop that someone didnt even care enough to go through and clean up.

Edit: Just to keep it going, you ever seen a human write dependencies like this for a small toy tui? https://github.com/huseyinbabal/taws/blob/2ce4e24797f7f32a52...

Edit2: Sure why not, lets reimplement randomly a custom jsonpath when serde_json_path exists https://github.com/huseyinbabal/taws/blob/2ce4e24797f7f32a52...

show 3 replies