Hacker Newsnew | past | comments | ask | show | jobs | submit | xadoc's commentslogin

"The United Nations Population Division defines sub-replacement fertility as any rate below approximately 2.1 children born per woman of childbearing age, but the threshold can be as high as 3.4 in some developing countries because of higher mortality rates. Taken globally, the total fertility rate at replacement was 2.33 children per woman in 2003"

https://en.wikipedia.org/wiki/Sub-replacement_fertility


How do you get the audio from Youtube?


I use https://github.com/yt-dlp/yt-dlp

You can use -F to get the available formats and find out an audio-only stream then -f FORMAT to download the specified stream.


HN crowd might diss this product but if you consider all those execs and managers in medium/large corporations that rely on personal assistants to get their email and meetings sorted out this might be very successful.

Seems to be the perfect use case for them "It also syncs with your calendar and displays your upcoming meetings in a menu. (You can tap one to jump in.)"


If the code has tests, I would start by looking at those tests.

If it has no tests, then I would slowly try to build tests to document the functionality that I need. In your case being Angular that might be having simple html pages with the smallest module that you need.

How to find things? If you're on Windows try AstroGrep http://astrogrep.sourceforge.net/ to quickly search and jump around in the code or in any system I use VS Code for a similar functionality. Also learn to use command line find/grep.

The book "Working Effectively with Legacy Code" also helped me be more comfortable navigating and changing large code bases, in a long term view I recommend this book to every developer https://www.amazon.co.uk/Working-Effectively-Legacy-Michael-...

Lastly, I would raise this because the company might not be aware they are buying a low quality framework that maybe ticks all the boxes in the contract but is in effect impossible to use by their current developers (you), it might be there's other people with more experience in said niche that might be able to help. In the private community maybe some people would be able to accept a short contract to help train you.


Xadoc's advice above is good; unit tests. I work with poorly documented protocols that have been implemented "around the theme of the protocol" by hardware from a variety of suppliers, and this is how we work out its quirks.

A battery of unit tests, starting with the simplest functions it offers, and thence upwards into more complicated tests (i.e. chained calls of the presented functions) where we track what internal state we think the system should have at that point in the tests and interrogate it to discover what internal state it really does have.


These are exploratory tests rather than unit tests, but your point stands.


xadoc's last point is really important. The missing documentation is clearly impacting your productivity: you absolutely should raise this as in issue with more senior devs or management. There are a number of ways to respond, and they should be pleased that you have flagged the issue early.


This is good advice. I would also extend this and write out an FAQ / stackexchange for the next engineer at your company who has to go through the same learning curve.


The abstraction is there because in many static languages you will immediately have two implementations, the infrastructure one (database, API call, 3rd party) and the tests.


Don't Make Me Think (200 pages)

Grokking Algorithms An Illustrated Guide For Programmers and Other Curious People (235 pages)




Nice list, thanks for sharing

+ https://books.goalkicker.com


That is an amazing resource!


I'm putting together books on startups as well. You can check em out here https://www.startuplit.com


There is no proof immunity will happen, the UK Gov is thinking in economic terms and worried about GDP.

https://www.theguardian.com/education/2020/mar/13/coronaviru...


Exactly. We have huge debts and our "economy" runs on the assumption that, if very little goes wrong, we might be able to stay afloat.

The time for creating choice on the cornonavirus response was during the last 20 years. They chose rampant financialisation, leveraging future income.

The UK has no energy security. No food security. I feel the corner we have painted ourselves into makes a prolonged shutdown far, far harder.


Genuinely curious about where you read that the UK has no energy security? It's not something I've read about before, but is something I'm pretty invested in as a UK citizen.

The one source I could find was https://www.globalenergyinstitute.org/energy-security-risk-i... which placed the UK in the top 3 countries for energy security (many years running).

Do let me know if you have some data that would change my mind! (and ditto for food security)



I fear that when the PM said that his decisions are driven by science, he means economists, not virologists.


[flagged]


Stop it. This is bigger than Brexit.


Stop it because it is incorrect or stop it because it is insensitive?


"Stop it because it's unimaginable that the UK government is intentionally trying to kill off it's old folks no matter how much money that may save the NHS, in no small part because that would be akin to a genocide for profit"


Have you heard about the Windrush scandal?

It's (probably) not about the NHS but more about "we kicked out so many illegal immigrants last year, aren't we great?" (not that these people are illegal immigrants, but hey, let's make burden of proof tests that are hard for them to pass), but, incredible how seemingly easy it is for the Home Office to be heartless to the point of killing people via red tape.


The burden of proof was hard to pass because the Windrush landing cards were destroyed due to a decision made under a Labour government.


Never blame anything on maliciousness that can easily be explained by stupidity.


You don't study governments much, huh


I uh, ... what


> "Stop it. This is bigger than Brexit."

Well, Brexit won't kill anybody (hopefully).

But on the other hand, a year from now, the pandemic will be largely forgotten. Brexit will still be going on.


Given the damage this pandemic has already dealt to the world economy, it's going to be remembered for a long time. It'll join black death and the Spanish flu. Brexit, in comparison, will likely end up as a footnote.


The Spanish Flu (H1N1) killed between 3-6% of the entire world's population. Unlike most other flu pandemics, a large portion of the victims were young and healthy adults. You really think Covid-19 is going to be that bad?

The Black Death (Bubonic Plague) lasted for decades, killed more than 1/4 of the world's population and set human civilisation back by a century or more. It took more than 200 years for Europe's population to recover to where it was before the pandemic. Many regions never recovered economically, or only recovered centuries later. You really think Covid-19 is going to be that bad?


Yes, I think it'll be as bad as the Spanish flu, just with different age mortality profile.


Good god, making the choice of killing people for saving on pension borders on Nazi-level eugenics.


It seems the UK bureaucracy, 2019, is very capable of that...

https://en.wikipedia.org/wiki/Windrush_scandal


Yes. We have eugenist advisors to senior government: https://www.bbc.co.uk/news/uk-politics-51535367


"Have" is a strange word to use to describe someone who resigned before they ever started.


If immunity doesn’t occur, then a vaccine is also useless.


It's two different things


No it isn't. Vaccines create immunity, that's the point. Also, what diseases that don't kill you also don't result in immunity? "There's no evidence of immunity" seems an absurd statement, we can literally see the antibodies people create in response to the infection. That seems like just looking for an excuse to attack the UK.


do you ever heard of plague?


What's plague got to do with it? Plague vaccines exist that give up to a year of immunity:

https://contagions.wordpress.com/2012/02/25/generating-immun...


Flu vaccine has to be taken every year.


That's because flu isn't a single disease, it's a category of diseases, like cancer. People do build immunity to specific flu variants.


Dapper for C# made by StackOverflow team

https://github.com/StackExchange/Dapper


Is it still water resistant?


Yup:

>Apple Watch Series 5 and Apple Watch Series 3 have a water resistance rating of 50 meters under ISO standard 22810:2010. This means that they may be used for shallow-water activities like swimming in a pool or ocean. However, they should not be used for scuba diving, waterskiing, or other activities involving high-velocity water or submersion below shallow depth.

https://www.apple.com/watch/compare/?afid=p238%7CsR2VtjPIL-d...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: