Better HN
topnewbestaskshowjobs
Log inSign up

har777

58 karma · joined Aug 21, 2014 (12y ago) · 35 submissions

https://harishaji.com/
Submissions

comment 1mo ago · link · parent

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.

comment 1mo ago · link · parent

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.

3.

Show HN: Chainkit - low level block explorer built for developers(chainkit.harishaji.com ↗)

2 points · by har777 · 1y ago · discuss

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

6.

Some Interesting Ethereum Stats(harishaji.com ↗)

5 points · by har777 · 1y ago · discuss

comment 1y ago · link · parent

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!

comment 2y ago · link · parent

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)

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 3y ago · link · parent

Yay! And thanks for the screenshot :D

comment 3y ago · link · parent

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.

EDIT: I should add a screenshot to the README lol but the middleware will print each api being called with a nice table showing each query and the number of times it was called for the api.

14.

Why People Quit Their Jobs(hbr.org ↗)

3 points · by har777 · 5y ago · discuss

comment 6y ago · link · parent

I disagree. I thought it was hilarious :P

16.

Mantis(by Netflix): platform for realtime stream processing applications(github.com ↗)

25 points · by har777 · 7y ago · discuss

comment 9y ago · link · parent

This is excellent. Having a lot of fun going through it. Always wanted to start writing some C.

comment 9y ago · link · parent

Thank you for this !!

comment 9y ago · link · parent

True. But how much is too much ? If someone is say racist do you still not kick him out for the sake of inclusiveness ?

comment 10y ago · link · parent

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 ?

comment 10y ago · link · parent

How is Palantir hard tech ?

comment 10y ago · link · parent

Thanks a lot !

comment 10y ago · link · parent

+1. Would be an extremely useful addition !

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

Niiiice. Very well done !! :)

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

Excited. But also really intimidated :)
12