HNHacker News
TopNewBestAskShowJobs

dheerajvs

343 karma · joined July 16, 2015

submissionscomments
dheerajvs··on The saga of the Closure compiler, and why TypeScript won
Under "Why TypeScript won", the article says:

> It's self-hosted (tsc is written in TypeScript)

Why would that matter? What if TypeScript was written in Rust? I would assume the better performance would have increased its adoption even more.

dheerajvs··on That's a Lot of YAML
Both JSON5 and JSONC have those features. There is a discussion[0] on the VS Code repo to use JSON5 format instead of JSONC for the settings file.

[0]: https://github.com/microsoft/vscode/issues/100688

dheerajvs··on Lodash just declared issue bankruptcy and closed every issue and open PR
I searched my monorepo and could find only two lodash functions installed: lodash.startcase and lodash.unescape.

It's nice to be able to install individual functions like these, which I don't prefer to write myself.

dheerajvs··on Lodash just declared issue bankruptcy and closed every issue and open PR
What's wrong with yarn 2+ (berry)?
dheerajvs··on Lessons From Linguistics: i18n Best Practices for Front-End Developers
With formatjs [0], you don't have to split the sentence for interpolation. The same example as in the article can be implemented as:

    const message = defineMessage({
      defaultMessage: 'Learn more about <a>supported images</a>.',
      description: 'Footer text containing a hyperlink',
    })
and the anchor element can be interpolated as:

    formatMessage(message, {
      a: (chunks: ReactNode) => <a href="#link">{chunks}</a>,
    })
[0]: https://formatjs.io
dheerajvs··on Microsoft's Software Is Malware
> I had to tell Windows that my internet connection was metered in order to get them to stop with the updates.

Nice tip. Any downsides to this?

dheerajvs··on Apple doesn’t want you developing hobby apps
Bluetooth for file transfer in 2023?

You can setup a local web server and access all files using a Web browser from any device on the network. I have been using Trebleshot[0] on Android for this. Sadly the source code is archived now.

[0]: https://f-droid.org/en/packages/com.genonbeta.TrebleShot/

dheerajvs··on Signal says it won’t compromise on encryption
> Some things are a bit Boolean, as Whittaker states above, but some things are simply binary.

Eh, what's the difference?

It's better to read the original article: https://www.theverge.com/23409716/signal-encryption-messagin...

dheerajvs··on My black body story (it's physics)
> I was being taught a way to understand the physics, which is fine, but not how the ideas came to life.

I've always felt that science should be taught in schools by a process of discovery or historical discoveries.

dheerajvs··on Physical buttons outperform touchscreens in new cars, test finds
Lol, don't give them ideas.
dheerajvs··on How I clean my glasses
My lenses have oleophobic coating. I find breathing on them and rubbing with microfiber cloth to be quite effective even when they are coated with grease.
dheerajvs··on Absurd Trolley Problems
> if you don't the trolley and it's passengers will go in circles for eternity

I interpret that as the passengers would live their natural life-span and then their rotting bodies would go in circles for eternity.

Replace the trolley with planet Earth and it's no different from regular life. (approximating eternity with life of the Sun).

dheerajvs··on Life is not short
> You should organize each day as if it were your last

We all do. Even if we choose to rearrange the deck chairs on the Titanic.

dheerajvs··on Internet Explorer 11 has retired and is officially out of support
I won't be able to celebrate for a long time to come. I have to support running an Outlook add-in in Outlook 2016 on Windows, which uses the IE11 rendering engine.
dheerajvs··on Fresh – Next-gen web framework
> it ships only the JS for select components

So, even if the page has a single React component, does it ship the entire react + react-dom bundle?

dheerajvs··on How to stop a robot vacuum from getting stuck on the laundry rack
Don't robot vacuums these days come with an app where you can specify no-go areas?
dheerajvs··on A man who uploaded 2M videos to YouTube [video]
Another example of auto-generated video is perhaps this channel[0] that has videos of only "Happy Birthday" songs with names. I visit it once a year :-)

[0]: https://www.youtube.com/c/HappyBirthdaySongwithNames/videos

dheerajvs··on RIP Good Times (2008)
Climate change has a definite impact on crop yield. The recent impact on wheat crop in India is a case in point:

https://phys.org/news/2022-04-india-wheat-crop-snags-export....

> An unusually early, record-shattering heat wave in India has reduced wheat yields [...] Climate change has made India's heat wave hotter, said Friederike Otto, a climate scientist at the Imperial College of London [...] "But now it is a much more common event—we can expect such high temperatures about once in every four years," she said.

> India's vulnerability to extreme heat increased 15% from 1990 to 2019, according to a 2021 report by the medical journal The Lancet.

dheerajvs··on CalyxOS releases test builds for Fairphone 4, OnePlus 8T, and OnePlus 9
Do these custom OSes preserve the native capabilities of the multiple cameras on the device? Can someone chime in with their experience?
dheerajvs··on uBlock Origin becomes top addon on Firefox
Defense in depth.

On my Android I have Netguard[0] configured with a hosts file, Firefox with uBlock Origin and NextDNS with comprehensive blocklists.

uBlock Origin protects only one app — the browser.

[0]: https://github.com/M66B/NetGuard/releases/

dheerajvs··on Drones used by farmers could be spying
The very popular Chinese state-owned Hikvision cameras are known to have backdoors:

https://ipvm.com/reports/hik-backdoor

It's puzzling why they are not yet banned in my country.

dheerajvs··on Climate activist arrested after ProtonMail provided his IP address
That's what warrant canaries[0] are for.

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

dheerajvs··on Samsung kills the cameras on the Galaxy Z Fold 3 if you unlock the bootloader
Huh? There's no such law. I have turned off the shutter sound option in every single phone I've purchased here in India so far.
dheerajvs··on Sony's new curved image sensors could shake up the whole camera industry
> 108MP sensors becoming increasingly common

Do millions of tiny binned pixels provide better image quality compared to much larger pixels with the same sensor area? How do they compare in low light?

dheerajvs··on EFF Browser Tracker Simulator
I had to reset it to False due to one annoying consequence: Since the time zone is set to UTC, all my workmates on Slack assumed I'm working from another country. And I had to mentally calculate time differences. It was the only major issue but was too much of a hassle.
dheerajvs··on WhatsApp will progressively kill features until users accept new privacy policy
Not me. I've NEVER installed any app owned by Facebook including WhatsApp. Never missed it, but then I'm not a social person. My stubbornness forced a few acquaintances to install Signal.
dheerajvs··on How I Spend My Attention
> I’m still looking for a bio-degradable solution to store wet-garbage for at-least 24-hours.

I'm using Shalimar compostable garbage bags available on Amazon.in. They claim to be CPCB Certified as per IS/ISO 17088:2008 [1].

[1]: https://cpcb.nic.in/openpdffile.php?id=UmVwb3J0RmlsZXMvTmV3S...

dheerajvs··on A Theory of Software Architecture
Another pet peeve of mine is variable names suffixed with "Data" and "Info".
dheerajvs··on Show HN: Which DNS servers are you pointing to?
> I think privacy should be on a different layer.

Can you elaborate which layer?

dheerajvs··on The physiological effects of slow breathing in the healthy human
I find it curious that breathing is one activity that can be both voluntary and autonomous. Are there any other activities that are so?
← PreviousPage 2 of 3Next →