Readit News logoReadit News
sateesh commented on Ask HN: What projects do you donate to?    · Posted by u/xeonmc
sateesh · 4 months ago
- Internet Freedom Foundation (India) https://internetfreedom.in/
sateesh commented on Problems with Go channels (2016)   jtolio.com/2016/03/go-cha... · Posted by u/mpweiher
ajankovic · 5 months ago
I had time to spare so I toyed with the example exercise. Now I am not sure if I misunderstood something because solution is fairly simple using only channels: https://go.dev/play/p/tD8cWdKfkKW
sateesh · 5 months ago
Your example solution has only one player. Your solution won't work when there are multiple players.
sateesh commented on Problems with Go channels (2016)   jtolio.com/2016/03/go-cha... · Posted by u/mpweiher
politician · 5 months ago
My rule of thumb is that the goroutine that writes to a channel is responsible for closing it. In this case, a deferred call to close the channel in HandlePlayer is sufficient.

Still, this example has other issues (naked range over a channel?!) potentially contributing to the author’s confusion.

However, this post was also written almost a decade ago, so perhaps it’s a result of being new to the language? If I cared to look, I’d probably be able to find the corresponding HN thread from that year full of arguments about this, hah.

sateesh · 5 months ago
> In this case, a deferred call to close the channel in HandlePlayer is sufficient

It is not clear from the example, but I presume there would multiple players, i.e there will calls of the form:

  g.HandlePlayer(p1)
  g.HandlePlayer(p2)
  ..
in such a case one player closing the channel would affect rest of the producers too.

sateesh commented on Hoppscotch: Open source alternative to Postman / Insomnia   github.com/hoppscotch/hop... · Posted by u/the_arun
wiether · 7 months ago
I guess it really depends on your usecase.

If you're just _hacking_ a few simple calls, curl is the way to go.

But if you're working in a team, with multiple environments, with complex payloads, authentication, doing dozens of API calls everyday... Having a software able to manage libraries of endpoints, parameters, simple environment switching, included auth, sharing between team members... is a big time saver.

I personally prefer IntelliJ's HTTP Client[0] since I always have my IDE open, the files are not obfuscated in a gibberish format and can be versioned/shared through Git. But when I start working on an existing project, having a Postman collection to rely on is a huge time-saver, instead of having to go down in-existent API docs or trying to infer from the code itself.

[0]: https://www.jetbrains.com/help/idea/http-client-in-product-c...

sateesh · 7 months ago
This and also when you newly join a team it is more productive to start using the tooling what they are using and move to preferred tooling once familiar with the API endpoints.
sateesh commented on Sweden brings more books and handwriting practice back to its schools (2023)   apnews.com/article/sweden... · Posted by u/redbell
duckmysick · 8 months ago
I organize them by the color, either rainbow-style or from darker to brighter.

> it wouldn’t be organised properly, I would struggle to find anything.

Libraries solve this with the Dewey Decimal Classification. Most people don't have enough books for it make sense though.

For me, I don't have that many paper books and the ones I own I know by the side and the color. I keep the books that I reference often in a separate place. I noticed I don't need to find all of the books, all of the time. So organize most of your books to look pretty.

You can also group similar books together on a single shelf and then order them by color. For example I have a dozen of cookbooks and those go on a separate shelf, arranged in a rainbow. I also have a book series that goes neatly together, so I keep them it grouped too.

I also organize my clothes like that too. By general category first (t-shirts, pants, socks, jackets), and then by color.

I used to be extremely messy too (piles of clothes and documents, cardboard boxes, you know the deal). I turned it around after I read the Marie Kondo book "The life-changing Magic of Tidying up". Then after I got the mess under control I look at the pictures for inspiration how to make it aesthetically pleasing. I got a lot of ideas from Pinterest (I know, I know), but you can do an image search or check the organization subreddits too.

sateesh · 8 months ago
Organizing books by colour, couldn't resist the link to Two Ronnies :) https://youtu.be/AYxmPHLU9oA?si=n8OACTqPyZ12oWeA
sateesh commented on The Tsunami of Burnout Few See   charleshughsmith.blogspot... · Posted by u/dxs
dylan604 · 8 months ago
> My experience is that burnout tends not to come from the actual work, but all the politics and bullshit that come from office life

Totally agree. It’s not the stress of doing something new and just trying to figure it all out that’s stressful. That’s actually fun. It’s the arbitrary adjusting of priorities and putting tasks in hold to start some harebrained idea that ultimately gets tossed or proves to not work out that becomes tiresome. Then shit rolls down hill and people want to know why the paused project isn’t completed and assigns blame to the dev rather than piss poor management.

No. I’m not bitter

sateesh · 8 months ago
Isn't politics any part of human activity where number of people involved is greater than a critical mass (of say 5) ? I think even the best run, successful orgs have their share of politics. I used to think politics as a bad thing, but now I have accepted that it is an inevitable part of work life and one needs to also learn how to navigate it atleast to the extent that doesn't affect one's well-being or doesn't make one feel that they are being shortchanged, not that I am always successful with it.
sateesh commented on Ask HN: Programmers who don't use autocomplete/LSP, how do you do it?    · Posted by u/zackoverflow
avalys · 9 months ago
When I'm coding, most of my time is spent thinking about the right structure, organization, or solution. Or, debugging something that isn't acting as expected (which, again, is mostly thinking).

I spend comparably little time actually writing the code.

If there is an IDE available that works well out of the box, I'll certainly use whatever automation is available. But often it is broken, incomplete, slow, inaccurate, etc. and rather than spend countless hours fine-tuning some automation / LSP workflow that is going to break when I move to a different project anyway, I just deal with whatever features are missing.

This also has the advantage that I can quickly move to other tools, other languages, other computers, other companies, etc. without requiring days of setup and re-accommodation.

I do have a pretty good memory, which is probably a large part of why this is effective for me.

sateesh · 9 months ago
>> If there is an IDE available that works well out of the box, I'll certainly use whatever automation is available. But often it is broken, incomplete, slow, inaccurate, etc. ...

I think you are unduly harsh here. As a longtime emacs user and who switched to IDE recently (ones that come from JetBrains) my experience hasn't been what you mention. Yes there is a bit of time (not huge) to get adjusted to the shortcuts and efficiently navigate the code, but post that the IDE ecosystem is not as broken as you allude to.

sateesh commented on What made Dostoevsky's work immortal   thoughts.wyounas.com/p/wh... · Posted by u/simplegeek
boothby · 10 months ago
It's interesting what people take from this passage. I was primed by alangau's statement that Dostoevsky predicted the death of absolute good, and the mass slaughter of millions, when I read

> There is not—there cannot be—a sin on earth that God will not forgive the truly repentant.

To me, this sends a horrifying message. A self-righteous individual can kill millions, wake up to the terrible reality of their act, repent, and be bathed in the joy of a loving god's forgiveness. They need suffer only a moment's guilt, before proceeding fearlessly back into the world.

And yet, according to alangau's sibling comment, the passage was deeply moving to him. Perhaps my horrified response is a deep motion of sorts, but that isn't a typical usage of the phrase "deeply moved."

sateesh · 10 months ago
* They need suffer only a moment's guilt, before proceeding fearlessly back into the world.

It is not a true repentance if one can wash off their guilt in a moment. True repentance is eternal burn.

sateesh commented on Every company should be owned by its employees   elysian.press/p/employee-... · Posted by u/ellegriffin
nox101 · a year ago
Zuckerberg doesn't get to do what he wants. He's in meetings constantly and rarely has a free moment
sateesh · a year ago
But that is the choice he has made. I guess he can very well afford to have a less hectic schedule or to not work too.
sateesh commented on Initial details about why CrowdStrike's CSAgent.sys crashed   twitter.com/patrickwardle... · Posted by u/pilfered
jrochkind1 · a year ago
Sure. And if someone showed up here with a story about how they got attacked and ransomwared enterprise-wide in the however many several hours that they were waiting for their turn to rollout, what do you think HN response would be?

Hmm, maybe you could have companies pay more to be in the first rollout group? That'd go over well too.

sateesh · a year ago
True, there will be comments blaming CS for not doing faster rollout. But there would be some comments empathizing with CS viewpoint and pointing out the conflicting compromise between velocity, and correctness. Even now I think the comments wouldn't have been unequivocally critical, of CS, if the hosts affected were a variant of windows (say issue was seen on version of windows 10 which was two update behind),there would have been some emphasizing the thorniness of the problem and sympathetic of CS.

u/sateesh

KarmaCake day466August 10, 2009View Original