HNHacker News
TopNewBestAskShowJobs

konaraddi

365 karma · joined March 19, 2020

Documenting anti-patterns in discussion forums @ https://odap.knrdd.com

Personal website @ konaraddi.com

submissionscomments
konaraddi··on Mozilla lays off 250 employees while it refocuses on commercial products
There's Mozilla Foundation and there's Mozilla Corporation (the corporation is a subsidiary of the foundation). For Mozilla Corporation:

> In CY 2018, Mozilla Corporation generated $435.702 million from royalties, subscriptions and advertising revenue compared to $542 million in CY 2017.

https://www.mozilla.org/en-US/foundation/annualreport/2018/ (I couldn't find a more up-to-date annual report)

For Mozilla Foundation:

> The Mozilla Foundation is funded by donations and 2% of annual net revenues from the Mozilla Corporation, amounting to over US$8.3 million in 2016.

https://en.wikipedia.org/wiki/Mozilla_Foundation#Financing

konaraddi··on Interviewing the “Passé” Way, For a Reason
> That's why my interviews are aimed to check how does the individual think (instead of verifying her/his memorization skills). How does (s)he approach problems, split them, classify them, explore possible solutions? When does (s)he abandon the path that doesn't look promising anymore? Is (s)he able to effectively share her/his thoughts (verbally, graphically, in code)? What about focus - does (s)he navigate in terms of a given goal or roam chaotically around?

This sounds a lot like system design or leetcode-esque interview questions, which is the trend among tech companies in the US.

> The problems candidates are facing at my interviews usually have NOTHING in common with the company's domain, BUT they have a super-low entry level (e.g. they are about common problems everyone encounters every day): building up the context takes seconds (literally), so the candidate can focus on tackling the problem, not understanding its basics.

Are they system-design questions? This post could use some examples of interview questions the author has asked.

konaraddi··on One hour of slow breathing changed my life
> I'm prone to anxiety, and find myself hyperventilating often. Is this what you mean by "harmful breathing patterns"?

I meant "practicing breathing exercises incorrectly" (and I see now that's what I should've written in the first place, thanks for pointing that out). Upadesa Sara doesn't expand upon what it means to practice breathing exercises incorrectly or mention what the side effects are. Much of Upadesa Sara is concise so much is left up to the reader to reason or learn about.

After I read your comment, I spent too much time thinking about how I breath (whether thru the belly or chest) and started breathing weird haha. After a few hours, I figured out that I mostly breathe through the belly. I think. Anyways, genuinely happy to hear you found something that works for you.

konaraddi··on One hour of slow breathing changed my life
This article is very relevant to what I've recently experienced. I haven't experienced the sweating but I've experienced the serenity that follows controlled breathing.

I'm reading an English translation of Ramana Maharshi's Upadesa Sara with commentary and verses 11-14 talk about controlling the breath (pranayama). A few relevant points made in those verses:

* Controlling your breath can help quieten the mind.

* There are such things as harmful breathing patterns so it's important to seek the guidance of experts to avoid them.

* The simplest breathing exercise that's easy to do right without an instructor is to observe the breath as it is.

I've made a conscious effort to observe the breath randomly throughout the day and it has a calming effect. These past few days have felt good. Observing the breath before sleep has made it easier to fall asleep.

FWIW, the verses also mention that, as far as being serene is concerned, pranayama is a short term solution to a long term problem (and the gist of Upadesa Sara is on the long term solution but I digress).

konaraddi··on Co-founder of Gokada found decapitated, dismembered inside New York condo
Ah I see. I just realized that being able to safely walk around my neighborhood is something I took for granted; I didn’t give much thought to safety til your comment. That’s something to be grateful for and I’ll keep that in mind on my next walk.

Thank you for sharing

konaraddi··on Show HN: Automatic cloud-free logins via Bluetooth connection with phone
Woah, this sounds very convenient! The idea of seamlessly logging seems to be where we're heading and I think it'd help with guarding against phishing attempts because of the auto-fill.

> While they’re a necessary measure we take keep valuable information safe online, passwords also act as “speed bumps” disrupting the flow of the online experience

Yeah this seems spot on

konaraddi··on Co-founder of Gokada found decapitated, dismembered inside New York condo
Hey I think you may have meant respond to another comment. In case you did mean to respond to the comment I put up: I totally agree that there are places that are "very different from the sheltered life of a developed country". I've been to India a few times and have seen a wide range of places in terms of both landscape and wealth.

The purpose of my previous comment is that, depending on how we define "developed" (which is very blurry! Think about the range of wealth within the US or India for example), it's not the case that you need to walk around with body armor everywhere in each country that's not "developed". The parent comment I responded to seemed to imply that "wear body armor and stay in window-less houses" == "life outside of developed countries".

See parent comments/thread for more context. If you see a mistake or if I misunderstood something, please feel free to point it out.

konaraddi··on Co-founder of Gokada found decapitated, dismembered inside New York condo
This sounds a bit extreme. Which ones are the “outside of developed countries” and how many of them require walking around in body armor everywhere?
konaraddi··on The stable marriage problem and modern dating
Absolutely! I agree. To be clear, I brought up the linear sum assignment problem because it’s relevant, I liked reading about it, and perhaps someone else here would like to read about it too. At work, we applied the linear sum assignment problem when comparing results from a tracking algorithm to the truth data.
konaraddi··on The stable marriage problem and modern dating
At work, we had a problem that's similar to the stable marriage problem. We ended up finding another combinatorial optimization problem called the "assignment problem" [0] that fit more closely with our problem. Here's a brief summary of the assignment problem:

Suppose you had people in two groups A and B where each individual in group A wants to pair up with an individual in group B and visa versa. If you can assign a "compatibility score" to each possible pair, then the goal is to find the set of pairs, where a pair consists of an individual from A and an individual from B, that maximizes the sum of the compatibility scores. In other words, the assignment problem is about finding the best 1:1 mapping between groups A and B when given a compatibility score for every possible pair between the groups of individuals.

[0] https://en.wikipedia.org/wiki/Assignment_problem

konaraddi··on New Mac ransomware spreading through piracy
Looks like changes will need to be made for LuLu to work on Big Sur: https://github.com/objective-see/LuLu/issues/183
konaraddi··on Viewpoint: 'I feel like I was accidentally hired'
> specifically in the federal government...unfortunately that is not likely to be the source of the next great tech innovator

The federal government helps build and fund innovative research projects and private businesses. Notable examples include the Manhattan project, GPS, SpaceX, and the Internet. I’d bet the US government will continue to be a source, and assist other sources, of innovation.

Edit: The following happens to be on the front page at the time of this edit - “Why does DARPA work?” https://benjaminreinhardt.com/wddw

konaraddi··on How to Learn JavaScript
Eloquent JavaScript (https://eloquentjavascript.net/) is free, up-to-date and really good too
konaraddi··on Understand WebAssembly in 5 Minutes
> Would Figma's success have been the same if they had just foregone the hassle of building in WASM and went pure native desktop?

I think Figma’s success can be at least partially attributed to being a web app with good performance. Sharing designs with a URL is a lot quicker than sharing files and importing them into a native desktop app which all users would first need to install. Figma made collaborating on design easier and more accessible than ever.

konaraddi··on Ask HN: Why can't we solve the app store monopoly problem?
I don't know how shutting down one specific PWA would work but shutting down all PWAs could be done by removing relevant APIs from popular browser(s).

PWAs make use of in-browser APIs that enable native-app-like features. For example, a service worker (i.e. the Service Worker API [0]) enables us to build offline-first web apps. Other examples include the Payment Request [1], Web NFC [2], Notifications [3], Web Speech [4], Contact Picker proposal [5] and more. Google and Apple can choose what they support and could remove APIs from their popular browsers. I think removing APIs is rare because browsers generally care about backwards compatibility but one notable exception is the sunsetting of Flash.

I'm no expert but I think Google is betting on PWAs succeeding (or at least sees them as inevitable) and is trying to put themselves in the best position for when/if it succeeds. For example, ChromeOS supports PWAs and Chrome shipped APIs, that could be useful when building PWAs, that aren't supported in other browsers (e.g. the Web OTP API might be coming to Chrome soon [6] and makes inputting 2FA codes from SMS real quick). I'd be surprised if Google tried to "shutdown" PWAs. However, if PWAs were to succeed then we wouldn't rely on native app stores as much as we do today and that could mean the end of the Google/Apple duopoly on mobile operating systems. I wrote a short post about this on my personal website [7].

[0] https://developer.mozilla.org/en-US/docs/Web/API/Service_Wor...

[1] https://developer.mozilla.org/en-US/docs/Web/API/Payment_Req...

[2] https://developer.mozilla.org/en-US/docs/Web/API/Web_NFC_API

[3] https://developer.mozilla.org/en-US/docs/Web/API/Notificatio...

[4] https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_...

[5] https://wicg.github.io/contact-api/spec/

[6] https://blog.chromium.org/2020/05/chrome-84-beta-web-otp-web...

[7] https://konaraddi.com/writing/2019/2019-01-06-pwas-could-hel...

konaraddi··on AWS Ruins Own Attempt at Sabotage
> I’d be in favor of a model wherein if AWS chose to enforce the non-compete, they’d be required to pay the former employee their full compensation for the duration of the restriction. That’s how it works in Europe, for instance.

This seems fair

konaraddi··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
I think a correction needs to be made in Part 2 "How Does State Change"[0]. The author says "Long story short, don’t expect state to be updated right away" in the context of using `searchValue` right after calling `setSearchValue`. This gives the reader the impression that state is sometimes updated right away and sometimes not so we can't depend on it. However, it's impossible for a useState variable (e.g. `searchValue`) to be updated without a re-render [1]. Thus, using `searchValue` immediately after `setSearchValue` will always be outdated. So state is only updated after render.

[0] https://obedparla.com/code/a-visual-guide-to-react-mental-mo...

[1] The `setSearchValue` updates a value that's outside (and captured) by the closure, React will re-render the component since setSearchValue was called (idk how this works behind the scenes and i think rendering is async), during the re-render `searchValue` and `setSearchValue` are assigned values again, and thus `searchValue` will finally be the updated value.

konaraddi··on A 125-year-old delivery network that feeds Mumbai
From the article:

> A dabbawalas’ commitment to the job is partly because it pays well – roughly 12,000 rupees (£140) a month, a good salary in India for what is essentially unskilled labour. The fame of the dabbawalas also gives the job a certain prestige. This can lead to perks like discounted mobile phone subscriptions and scholarships for a dabbawala’s children funded by organisations keen to be associated with the respected network.

> According to Sangle, the healthy-eating craze in India is good for dabbawalas as food companies are turning to them for delivery. Profits from these newer ventures are bumping the dabbawalas’ salaries up from 12,000 to 20,000 rupees a month, he says.

The labor is cheap but the work pays relatively well. As Hans Rosling says in his book _Factfulness_: things can be both bad and better.

konaraddi··on Amazon VP Resigns, Calls Company ‘Chickenshit’ for Firing Protesting Workers
He was a co-author: https://en.wikipedia.org/wiki/Tim_Bray#XML
← PreviousPage 5 of 5