News for hackers. Stuff that matters.
Re:Show HN: Using flamegraphs to read big HN threads by trungdq88 on Monday January 11, 2021 @06:14AM (#25727425)
So this blew up, I decided to give the page some small improvements. Changes:

- The bars are now ordered correctly based on votes

- Tooltip now shows comment.substring(0, 100)

- Show direct childs of the selected comment

- Added paddings and some small info notations

- New cached data for the default link (> 3500 comments now, it would take a good 15 mins if loaded manually from your browser)

It is still a crappy code, and there are many improvements can be made. Most importantly a proper navigation behavior with back button. I'll get back to this if I have more time!

The code is on my GitHub [1], feel free to send PR or just create your own page.

The old page is still available in [2] just in case someone don't want/agree with my improvements :)

[1] https://github.com/trungdq88/hn-big-threads

[2] https://trungdq88.github.io/hn-big-threads/old.html

Thanks!

Re:Show HN: Using flamegraphs to read big HN threads by bohrious on Monday January 11, 2021 @11:00AM (#25730669)
Beautiful work!!

I would use this every day as a browser extension for HN/reddit. the vertical minimap would probably be the ideal implementation.

Fly-to navigation for narrowing scope makes sense. IMO, a complete feature-set would still include something like ctrl-scroll for vertical expand and shift-scroll for horizontal expand.

Realistically, maybe, for minimap-on-focus: "a"+"scroll": zoom "s"+"scroll": expand-vertical "d"+"scroll": expand-horizontal

Re:Show HN: Using flamegraphs to read big HN threads by trungdq88 on Monday January 11, 2021 @11:17AM (#25730970)
For now, here is a bookmark that you can click when in a HN post. It will show the flame graph of the post.

javascript:location.href="https://trungdq88.github.io/hn-big-threads/#" + location.href.split('item?id=')[1]

Re:Show HN: Using flamegraphs to read big HN threads by dandare on Monday January 11, 2021 @08:31AM (#25728617)
Great idea. Bug report: Some of the tooltips - on the left side of the screen - are outside of the screen idea.
Re:Show HN: Using flamegraphs to read big HN threads by trungdq88 on Monday January 11, 2021 @11:00AM (#25730673)
Thanks, "fixed".