Better HN
topnewbestaskshowjobs
Log inSign up

nabeelms

42 karma · joined Jul 24, 2019 (7y ago) · 18 submissions

Submissions

comment 3y ago · link · parent

About String::leak:

> The caller has free choice over the returned lifetime, including 'static. Indeed, this function is ideally used for data that lives for the remainder of the program’s life, as dropping the returned reference will cause a memory leak.

I can see the use case of the function and from reading the commit discussion, it seems it was based on Vec::<u8>::leak() but I'm not able to understand why either of the functions are safe instead of unsafe.

2.

The Clean Architecture in Python (2014) [video](pyvideo.org ↗)

2 points · by nabeelms · 3y ago · discuss

3.

Best Resources to Learn X(bestresourcestolearnx.com ↗)

2 points · by nabeelms · 3y ago · discuss

4.

Don’t use your ORM entities for everything – embrace the SQL!(blackparrotlabs.io ↗)

3 points · by nabeelms · 3y ago · discuss

comment 3y ago · link · parent

If you're in it for the long haul (1-2 years), I'd recommend working through the recommendations in https://www.teachyourselfcs.com/. The Algorithms part, the Networks part and DDIA all have a very high return on time invested.

6.

The tragic tale of the deadlocking Python queue (2017)(codewithoutrules.com ↗)

2 points · by nabeelms · 4y ago · discuss

comment 4y ago · link · parent

My book recommendation for learning calculus would be Calculus Basic Concepts For High School by Tarasov.

comment 5y ago · link · parent

I'm not aware what exactly the German government has said in the past w.r.t mask usage. However, governments claiming mask usage was not required near the start of the pandemic followed by them later requiring people to use masks was actually an understandable decision on their part from what I've understood of the situation as it unveiled.

At the beginning of the pandemic, it was believed that the virus was using droplet transmission alone. In such a scenario, surgical masks, for the general public, would only be required in people who were sick to prevent transmission and N95 masks would primarily be required by health care workers. Considering the mask shortages faced in many countries at the time due to panic buying, the communications made by governments to the public w.r.t the benefits of masks make sense from a cost benefit perspective since it would guarantee that the people who needed the masks the most (medical workers and sick people) would receive them and reduce the spread of the virus.

Fast forward 2 months later, airborne transmission as well as asymptomatic transmission of the virus were both confirmed independently in several labs. This would mean that the prior strategy of only using surgical masks on sick people wouldn't really work well anymore. In the meanwhile, the availability of masks was much higher due to increased production. Hence, to reduce the risks of airborne and asymptomatic transmissions, governments released advisories asking all people to wear masks.

comment 5y ago · link · parent

Looks like they mentioned this here: https://support.mozilla.org/en-US/kb/sponsor-privacy

It's apparently being trialed to a limited subset of users.

comment 5y ago · link · parent

DDG has a No Javascript based search.

comment 5y ago · link · parent

My first thought when I saw the title was that it was due to Nagle's algo.

comment 6y ago · link · parent

Small nitpick here. For drugs, novel drugs in particular, 20 years is actually the required amount of time for the pharma companies to actually turn a profit. The patent applications are submitted as soon as a viable drug is discovered. After this, it requires 10-15 years of animal testing, clinical trials, etc with costs amounting to 100s of millions to billions of dollars before it can be brought to market.

https://www.healthaffairs.org/doi/abs/10.1377/hlthaff.25.2.4...

13.

Cat sitting on keyboard crashes lightdm(bugs.launchpad.net ↗)

2 points · by nabeelms · 6y ago · discuss

comment 6y ago · link · parent

That issue was fixed in the latest release of uBlock Origin. That's why it required the additional permissions for DNS.

comment 6y ago · link · parent

Lagunita appears to be retiring on March 26 2020. Are there any alternatives you'd suggest for the courses on Lagunita?

comment 6y ago · link · parent

I've never used a media server before. What advantages does a media server offer over just storing stuff on a set of folders?

comment 6y ago · link · parent

https://ferdychristant.com/amp-the-missing-controversy-3b424... is relevant to the discussion as well.

comment 7y ago · link · parent

Personally, I prefer the Kinesis Advantage 2 for most of my typing work. It's more pricy than many other keyboards but I've always found dev work pretty easy with it.