News for hackers. Stuff that matters.
Re:Ask HN: What small library or tool do you want that doesn... by dkarl on Monday May 02, 2022 @07:20AM (#31233705)
I would want something slightly different. I care a lot about how recently code has been changed. I usually don't care how much code is run in production, unless it isn't run at all, and then I care a lot. So:

Code that was changed within the last week: red

Code that was changed within the last month: yellow

Code that hasn't been changed in over a month: normal

Code that hasn't been touched in over a year: green

Dead code: blink tag, DOOM music plays

Re:Ask HN: What small library or tool do you want that doesn... by vidanay on Monday May 02, 2022 @08:17AM (#31234136)
I really like the idea of a "code heatmap". I actually think this could be easily implemented in one scenario: Visual Studio Code Lens already has that information. Massaging it into a background color probably wouldn't be too difficult.

https://docs.microsoft.com/en-us/visualstudio/ide/find-code-...

Re:Ask HN: What small library or tool do you want that doesn... by sidpatil on Monday May 02, 2022 @05:46PM (#31241354)
I believe TortoiseGit has this feature out-of-the-box: https://tortoisegit.org/docs/tortoisegit/tgit-dug-blame.html
Re:Ask HN: What small library or tool do you want that doesn... by ludovicianul on Monday May 02, 2022 @08:27AM (#31234241)
We've built an internal tool which does exactly this. Among a bunch of other correlations
Re:Ask HN: What small library or tool do you want that doesn... by eligro91 on Monday May 02, 2022 @09:37AM (#31234943)
ever thought on making this open-source?
Re:Ask HN: What small library or tool do you want that doesn... by ludovicianul on Tuesday May 03, 2022 @04:03AM (#31245863)
yes. sensitive topic though (for now)
Re:Ask HN: What small library or tool do you want that doesn... by mikewarot on Monday May 02, 2022 @09:16AM (#31234729)
It sounds like you want to combine git blame with performance data.