Better HN
topnewbestaskshowjobs
Log inSign up

sarthak-ag

46 karma · joined Aug 20, 2022 (4y ago) · 14 submissions

Submissions

comment 1w ago · link · parent

They could have put quotas or rate limits on the send email API to easily mitigate this. There is no rationale for why spam from an agent is unacceptable, but spam from an API is acceptable. I think there is something else at play here.

comment 1w ago · link · parent

I wrote a piece on what specific advantages jj brings over git, and what kind of development workflows deserve it. Give it a read if you are debating internally whether jj deserves a place in your toolbox: https://sarthakag.bearblog.dev/from-git-to-jj-jujutsu/

comment 4mo ago · link · parent

Yes, and in fact, JJ is much more than that. One of the other features I use quite heavily is that, in JJ, you can essentially check out multiple branches at the same time by just creating a local merge. JJ will keep your local merge updated as you rebase the branches it builds on. I have written about it here: https://sarthakag.bearblog.dev/from-git-to-jj-jujutsu/

comment 4mo ago · link · parent

If your workflow is rebase heavy, I strongly recommend ignoring this github feature and using jj instead. I have written about my experience here: https://sarthakag.bearblog.dev/from-git-to-jj-jujutsu/

comment 3y ago · link · parent

I think people who view entering into politics as just another job and only ever look at it from the lens of salary are never suited to be one in the first place. I can guarantee you they would never be able to become one even if they tried. The real hurdle is that elections are very taxing, and highly gated (if you are at all serious about winning). You almost always need to associate with a political party first, but then most political parties field candidates by seniority. No matter how much qualified you may well be, at the end it all boils down to how much you can convince people of your constituency, all of whom are irrational, and are looking out for their own personal gains rather than country's future as a whole. Majority is not interested in hearing your very technical argument on how you would solve their problems, and guess what majority is what you need to win the election.

comment 3y ago · link · parent

> You can easily verify correctness by running the code it outputs and testing it.

This is not always as easy for all types of questions. It's hard to come up with an example on the spot, but I tried a few queries I searched on SO in the last week, and found one to demonstrate. I was searching for "Where to store JWT in browser?". This is the SO answer [1] for reference. Now to prove my point, I ask the question to ChatGPT (3.5). Here's the chat [2].

On a first glance it looks like ChatGPT may have nailed it, though the information dump is HUGE. Among the 6 options it suggests, the last option "secure cookies" looks "correct". Indeed it is correct in what it says that this can prevent XSS attack. But it is not complete. Because it still does not prevent XSRF attack entirely. So I had to explicitly prompt it to think about XSRF and its response is weird. At first it incorrectly claims that XSRF attack is mitigated, but then in the response body it elaborates that we also need anti-XSRF tokens for complete protection. So I don't know what to make of it. Contrast this with the SO answer which is way more direct.

Honestly, ChatGPT's answer looks like that of a student who is trying to impress some examiner with their knowledge dump by beating around the bush rather than trying to precisely answer the actual question.

[1]: https://stackoverflow.com/questions/27067251/where-to-store-... [2]: https://chat.openai.com/share/c26fee93-5d3d-48e2-a820-297974...

comment 3y ago · link · parent

I have never understood why people have so much contempt for SO/SE network of websites. To me this network is on par with Wikipedia in terms of contribution to mankind. This is the internet itself. Granted I have only ever asked a handful of questions there, so all I have is anecdotes to share, but the community was very welcoming, and straight to the point. Maybe it has changed now? I haven't asked any questions since a couple of years. A few anecdotes -- I am not a native English speaker and english lang stackexchange was a godsend for me because sometimes the kind of questions I had, my teacher could not satisfy me and I don't even know how I could ever explain the problem to a machine (LLMs). I am not a biology student, but at time I was just curious about the functioning of human eye, so I tried my shot at biology SE and had a wonderful discussion. I have asked a few philosophical questions on Physics SE as well with similar experience.

In my programming job I consult SO multiple times, and I have never once felt the kind of hostile discussion environment that people try to potray. SO is very valuable to me especially for questions that have less to do with documentation but more about the essence of programming itself. It disgusts me that in future I will have to communicate with a brainless LLM instead where I have no recourse if its answer doesn't satisfy me, nor I have the confidence in the correctness of its word vomit.

comment 3y ago · link · parent

Wow this is awesome, thanks for sharing. I used to use visual mode for this edit in particular but this feels much more intuitive and faster

comment 3y ago · link · parent

Yet, given enough demand, and a explicit recommending nod from the spec, these will comply. It's not really as big as problem as everyone seems to think. And it's literally the same amount of work of adding a new verb.

comment 3y ago · link · parent

It's just an example, not a production use case.

comment 3y ago · link · parent

I am in agreement that colors by default, if used judiciously, are good. Disabling them by default seems like minority appeasement. If there are people who don't like colors, they should arrange for their own configurations to their terminal globally rather than have everyone else bend to their will.

Secondly, we don't need to respect this new flag for no color because most programs already disable their color output if they detect absence of a real tty by isatty(). So people who want to enforce no colors for all programs should either find a hack to put the running program under illusion, or just pipe output throught cat which will do it anyways. There is no point in having more unnecessary standards that will never realistically be complied with.

comment 4y ago · link · parent

Nil pointer panics happen. When a DB column that was supposed to be non-null is null and the code unexpectedly accesses it. Oh schema won't help because legacy. There are rare though and we fix such issues as they are discovered, but just pointing out a benign case when crashing the whole server on panic may be a wrong approach. Our approach is to always recover from panics so the server keeps chugging, but raise an alarm so someone is paged and fixes the issue right away.

comment 4y ago · link · parent

You are being too kind. There is absolutely no truth in the poster's statements, weirdly anecdotal and it is strongly racist. Yes, surely owing to a majority poor population an average indian is undernourished compared to their western counterparts (averages) which reflects in physical measures such as height, it is a long stretch to say they are _weak_. Poster is giving examples of moving to foreign lands as if the rest of world does it regularly, and mind you there is far more mobility in India because job market is much more concentrated to a select bunch of big cities to where all people from their small towns and cities flock to.

comment 4y ago · link · parent

Tab outliner is, imo, even better than FF's TST because outliner can also work as a persistent session/bookmark manager. It is really important to someone like me who doesn't like seeing a hundred tabs and yet want to keep them in tree. Outliner gives you the ability to close a tab without removing it from the tree so you can re-open it later. Some people use bookmarks for it, but to me this is a much more light weight and saner way of doing session management (essentially "temporary" bookmarks, if you will)