News for hackers. Stuff that matters.

har777

Re:Reflections on 1,000 Days of Math on Saturday September 26, 2026 @02:52PM (#49859396)
I disagree with this take though I've seen the same criticism online a lot before I signed up. I found myself understanding stuff the more I did it. And MathAcademy makes you do a lot of problems on repeat. I also used gpt for stuff MathAcademy didn't explain well.

But the platform does have its issues. I should probably do a writeup someday.

Re:Reflections on 1,000 Days of Math on Saturday September 26, 2026 @11:01AM (#49857244)
I have to shout out MathAcademy(the same platform the author is using). It's pretty darn good. I did like 2 hours a day for 90 days and went from Math Foundations I(70% completed) to Math Foundations III(74% completed). The pace of improvement was very fast.

Show HN: Chainkit - low level block explorer built for developers

https://chainkit.harishaji.com/

I started working on a block explorer for fun and thought this was a good v1 to release to the public.ChainKit is more low-level than other explorers like Etherscan and displays chain data fully.There are also some nice features like contract storage slot visualisation and contract call simulations. My blog post explains it better: https://harishaji.com/posts/introducing-chainkit/

( Read More... | no comments | 2 points | on HN )
Re:Vanilla JavaScript support for Tailwind Plus on Saturday July 26, 2025 @01:30AM (#44691597)
I like how tailwind provides scoping automatically. But in projects already having a build system I use css modules. Writing pure CSS is so much nicer but please don't make me manage class names myself.
Re:You Can Now Disable All AI Features in Zed on Wednesday July 23, 2025 @01:35PM (#44661816)
I moved to Zed last week and its been amazing so far! Something about using it feels a lot more crisp and fast compared to vscode. Their AI integration is pretty decent too. But I am very glad I can disable AI now. I find AI sometimes takes me out of the flow because I am constantly reviewing its code.
Re:Taking Notes with Joplin on Monday April 21, 2025 @06:55AM (#43750452)
I've been using Joplin for years. It was always a bit slow but I recently updated it and now the app takes over 30 seconds to load :|

It's sync feature is super seamless though!

Re:Claude 3 model family on Monday March 04, 2024 @09:30AM (#39590932)
Did some quick tests and Claude 3 Sonnet responses have been mostly wrong compared to Gemini :/ (was asking it to describe certain GitHub projects and Claude was making stuff up)
Re:Django 5.0 Is Released on Monday December 04, 2023 @03:29PM (#38522600)
It only adds like ~5ms. Unless you have `query_level_metrics_enabled` as True which takes more time. I didn't find that particularly useful on prod and instead just used it locally when fixing stuff. Depends on what data you need populated in your callback function on prod.

The header feature can also be useful. If you have a client on-call who's complaining about super slow page loads. Just check their network tab and see which response has a query count/time header which seems unnatural.

Re:Django 5.0 Is Released on Monday December 04, 2023 @02:15PM (#38521714)
Yeah the query count monitoring is the main focus as N+1 queries are super common in Django.

I don't really have a pitch but here is why this was made:

1. we had a production DRF app with ~1000 endpoints but the react app consuming it was dead slow because the api's had slowed down massively.

2. we knew N+1 was a big problem but the codebase was large and we didn't even know where to start.

3. we enabled this middleware on production and added a small callback function to write endpoint=>query_count, endpoint=>query_time metrics to datadog.

4. once this was done it was quite trivial to find the hot endpoints sorted by num of queries and total time spent on queries.

5. pick the most hot endpoint with large number of queries, enable debug mode locally, fix N+1 code, add assertNumQueries assertions to integration tests to make sure this doesn't happen again and push to prod.

6. monitor production metrics dashboard just to double check.

7. rinse and repeat.

For me this ability to continuously run on prod -> find issues and send to your monitoring stack -> alert -> fix locally workflow is the main selling point. Or of course you can just have it running locally on debug mode and check your console before pushing your changes but sometimes its just hard to expect that from every single engineer at your company. Then again your local data might not cause an issue so production N+1 monitoring is always nice.

Re:Django 5.0 Is Released on Monday December 04, 2023 @12:19PM (#38520046)
Simple middleware can warn you about lazy loading/N+1 queries. Most of the time people just forget it happens.

Try using: https://github.com/har777/pellet

Disclaimer: I built it :p

You can easily see N+1 queries on the console itself or write a callback function to track such issues on your monitoring stack of choice on production.

Re:Ban 1+N in Django on Tuesday March 28, 2023 @01:32AM (#35336318)
Yay! And thanks for the screenshot :D
Re:Ban 1+N in Django on Monday March 27, 2023 @01:37AM (#35323214)
Self plug: Checkout https://github.com/har777/pellet to easily find and fix django N+1 issues.

I usually add it to existing integration tests so that they raise exceptions on N+1. If test coverage is low then I would suggest sending the N+1 metrics to something like datadog. That way your users using the product will reveal all the N+1 issues on your monitoring solution.

I disagree. I thought it was hilarious :P
Re:Build Your Own Text Editor on Thursday April 06, 2017 @02:43AM (#14048451)
This is excellent. Having a lot of fun going through it. Always wanted to start writing some C.
Re:Ask HN: Which developers do you closely follow? on Saturday February 11, 2017 @12:23PM (#13623541)
Thank you for this !!
Re:Welcome, ACLU on Tuesday January 31, 2017 @12:39PM (#13532980)
True. But how much is too much ? If someone is say racist do you still not kick him out for the sake of inclusiveness ?
Re:Donald Trump is the president-elect of the U.S. on Wednesday November 09, 2016 @03:33AM (#12907855)
Was this a result of protest votes against Hillary or do people genuinely support a Trump presidency ? Would Bernie have fared better against Trump had he been the democratic nominee ?
Re:Hard Tech Startups on Friday September 30, 2016 @01:30AM (#12610664)
How is Palantir hard tech ?
Thanks a lot !
Re:Redis 3.2.0 is out on Friday May 06, 2016 @03:51PM (#11646312)
+1. Would be an extremely useful addition !
Re:Hard Tech is Back on Friday March 11, 2016 @02:25PM (#11268862)
Dont do the coursera one. Try this one instead: https://www.youtube.com/watch?v=UzxYlbK2c7E&list=PLA89DCFA6A...

Follow up with cs224/cs231 if interested.

Re:Show HN: CSS3 art book for babies on Wednesday March 09, 2016 @01:15AM (#11251257)
Niiiice. Very well done !! :)
Re:Attention and Memory in Deep Learning and NLP on Monday January 04, 2016 @03:44AM (#10834574)
I agree. People are really excited but it takes some knowledge to make a intelligent comment to this. I for one read a lot of NIPS paper's but don't understand most of them enough.
Re:Attention and Memory in Deep Learning and NLP on Monday January 04, 2016 @01:01AM (#10834248)
Why wouldn't they be excited ? It's an exciting field. I'm sure plenty of people are learning about ml in their free time.
Re:The Starfighter Low-Level Tech Tree on Monday December 07, 2015 @12:47AM (#10688119)
Excited. But also really intimidated :)
Re:Goodbye, Native Mobile Apps on Friday September 25, 2015 @02:34AM (#10276672)
One of their acquired companies Myntra is now app only. Only have a pc and the internet ? Sorry. You can only purchase from our apps.
Re:Redis Geo on Wednesday June 24, 2015 @01:24PM (#9773066)
Hell yeah ! I've been waiting for this to be integrated into Redis.

Older »