Hacker News new | ask | show | jobs
by mdaniel 562 days ago

  // Fetch stars when page loads
  fetchGitHubStars();
I do not understand why in the world so much of the code is related to poking the GH api to fetch the star count
2 comments

Probably generated by AI, prompted by no- or junior dev. This is my opinion, of course, but it looks like code generated by an LLM.
I know the code is not great, but contributions are very much welcome because there's a lot of low hanging fruits
But why did you code it to fetch stars at all? You would have had to go out of your way to do that. If AI has written most of this I suspect people will be less inclined to contribute.