Remix.run Logo
eleventen 4 hours ago

It's totally absurd to pretend like you aren't sure if this is AI. It has every single tell. Most of my slop code doesn't use react either and it looks just like this.

WatchDog 4 hours ago | parent [-]

I think it's absurd to pretend like you can know how a stranger thinks.

If I had to predict either way, I would guess that it is significantly AI generated, but that isn't the same thing as being sure.

Almost every link submitted to HN has a comment about the content being AI generated, many of which are not, I would rather talk about the "tells" rather than make confident assertions that I can't prove.

ghayes 3 hours ago | parent [-]

For example, https://mydetector.ai/ai-code-detector/ says 90% likely AI. Not that I trust the tools, but there are telltales to me in this function from the site:

     Object.values(zipBuckets).forEach(function(b) {
       var latest = b.reports.map(function(r){return r.date;}).sort().reverse()[0];
       // ...
       var popup =
         '<div style="font-family: Inter, sans-serif; min-width:220px; max-width:280px;">' +
         (noteLines ? '<ul style="font-size:12px; color:#3a4a2a; padding-left:16px; margin:0;">' + noteLines + '</ul>' : '') +
       // ...
     }
Certain ergonomics are hard to miss since a human who writes heavy FP would opt for a `(r) => r.date` lambda, where the computer has no problem writing out inline `function(r)`-style declarations. Similarly, the HTML mapping function could go either way, but mixing in large sets of text with hard constants would be really uncommon for humans to write.

JavaScript is always a mess, but it's a _different_ mess between humans and AI, and this function `loadCommunityReports` really reads AI-first to me.

eCa an hour ago | parent [-]

I’ve only seen this snippet (on phone so no source access), but var + no fat arrow could also indicate someone who learned js a long time ago and use as what they’re used to.