skysight-inc/HackerNews huggingface dataset:
SPAs are a good thing for Apps. Back-office, etc... all great things here.

SPA tech is a good thing for web sites that have little appy parts (like checkout processes, or maps). I'm not saying for the entire website, but just little focused parts. Can you imagine going back to (the old) Yahoo Maps now that Google Maps exists?

Are SPAs good for entire websites (like the new reddit?) Personally I like the new reddit over old reddit. But this is where your users are highly relevant. If you don't listen and choose SPA for millions of users of the public, you will probably get Feedback. You might be lucky and only 10% hate it, but it might explode in your face if that's a key 10% that encompasses influencers.
They can, as it is end-to-end encrypted; the ends are always the most likely points of leakage. In this case, it's the sender's end.

This is part of the beauty of e2e encryption because you have reasonable access to the "ends". For unencrypted traffic you have no access to the "in transit" part so no knowledge about potential compromise. Since you're relatively confident with e2e that the message can't be read in transit, you only need to check the parts of the transaction you have access to.

In this case, we can check the sender's end by looking at what external entities are accessed (network & API requests from the client). For WhatsApp, there's a total of three I'm aware of:

1. The OS keyboard API. This theoretically means Apple or Google can read everything you type (but not necessarily messages you receive).

2. The Giphy search API for retrieving a list of GIFs to choose from (notable as this means Giphy also gets metadata about your thought process in choosing a GIF, even if you never send one).

3. The HTTP request to Giphy to retrieve the chosen GIF (I'm not 100% sure if this is distinct from the above search request results, due to resolution differences, or if they're all one-in-the-same).
I used to run an all-remote engineering team and even though we had the right personnel in place, it still often ended up that for anything short of a new top-of-the-line device, it would be left with a departing employee as a gift because the cost of shipping and paying import duties to get it to the next most logical person in line to have possession of the device was often more than the value of the device itself.

Even for high-value hardware that might have been financially worth reclaiming at the end of someone's employment, there was always a buyout clause in their hardware issuance agreement and we encouraged people to use it if they liked their laptop. We _really_ didn't want the gear back most of the time.
Even if that was true (it's difficult to prove either way since there is little data on black swan events), the fact that they provide liquidity during stable times can make up for not providing liquidity during black swans. The impact could still be net-positive.

Also, it's unclear what the alternative is. While HFT may not be needed, markets run by human traders were significantly more unfair than anything we have now. It's just that fewer people complained about it because nothing was transparent. Or do you believe human traders don't pull quotes?
most of the page is server rendered. The hairy bits (eg. complex forms, super interactive components) are react and they maintain their own state. There might be downsides but they're probably not worse than writing a bunch of jQuery.
I've actually run into a couple of people with six-digit SO scores that profess to not know about such concepts as polymorphism.

My jaw dropped. Maybe they were being a smartass, but that's just crazy talk.

Like all dogmatic stances, people just take a "My Way or the Wrong Way" approach.

Most of my engineering is a hybrid of classic (read: "old") techniques, and new, "cutting-edge" techniques.

I write about my outlook on that here: https://medium.com/chrismarshallny/concrete-galoshes-a5798a5...

(Scroll down to "It's Not An 'Either/Or' Choice").

One day, AIs might replace us poor coding schlubs. At that point, we can assume that everything will revert to Machine Code.

Until then, OO is a great way for humans to grok the complexity of software development.

I will always keep refering to this classic joke, when I encounter inflexible, dogmatic thinking: http://www.solipsys.co.uk/new/TheParableOfTheToaster.html
https://www.youtube.com/watch?v=B8C5sjjhsso
Data-hiding is a language feature but I do get your point. I'm not sure if I really need data-hiding.

In your example, would some of the values be private while others public? Like in ECS, they are either all private or all public which kinda makes sense.
I have to admit, even I'm not sure what a "hacker mindset" is. As one technical cofounder to another, I think the most important thing is for you to understand the business side. Most importantly, how interpersonal skills matter and how emotions play out in a business setting.

Beyond that, a solid understanding of scientific approaches to understanding is the second most important. Being able to tease apart correlation and causation, and being rigorous about what you accept as real knowledge vs mere opinion or anecdote. The business world, and the tech world, has a lot of "opinion" that masquerades as fact. E.g. "well I did X and I'm successful so clearly X must work!"
No, the pieces you downloaded can be reused for the new torrent download. The pieces will effectively have the same hash hence can be reused for the new digest: http://bittorrent.org/beps/bep_0038.html

This is also why sqlite is a good choice because it's highly optimized to do the least amount of changes to its "pieces" when an update occurs.

If you're implementing this behavior, trying to manage all kinds of different queries, building a querying engine on top of that, optimizing for efficiency and reliability, you're effectively rewriting a database. Sure you can do it, but why not take advantage of battle-tested off-the-shelf stuff for things like "databases" (sqlite) and/or "distributing data" (torrent)?
Show HN: Quick Playlist for YouTube. Make and download quick playlist of videos
Ideal If you find youtube addictive and just want to make a playlist of your school lectures.
Procedural code doesn't require global state, though it doesn't discourage it either. The mid-point between procedural global and OO encapsulated state is the use of structures/records to contain state, but without any associated (that is, no language enforced association) methods/functions. You instantiate a new state record, and pass that around.

This is a natural way to work on procedural code (in an iterative development fashion) to move from prototype/early code to stable, maintainable code. You create global variables, then encapsulate them in a record (perhaps keeping just one record globally), then you move to passing a record around (permitting multiple states to exist side-by-side). Ideally you'd start with passing the record around, but sometimes you just write code to get the concept implemented and refactor from there.
Foot operated elevator button to avoid button touching
Qatar makes wearing masks outside mandatory with violators fined up to $50k
Now is a great time to learn it, because there's nothing huge on the horizon that will make your life easier or harder.

I started learning just as the async/await and futures features started causing churn and confusion in the ecosystem - it was slightly irritating at the time, but in hindsight, I'm still glad I started learning then.
Request for comment: how to collaboratively make trustworthy AI a reality
Games like Stardew hit this note too. What many so-called "casual"[^1] gamers are after isn't less game but a game that is more focused on having an experience and experiencing things.

[^1]: The casual/hardcore gamer distinction is a really weird dichotomy that doesn't make any sense because there's probably a set of axis akin to Bartlet types that more accurately describes videogame consumption
these all sound interesting but the first result of laws of form on amazon shows an edition that claims the first ever proof of the riemann hypothesis, so now i am suspicious because that is obviously a falsehood. it's possible that someone has posthumously edited the original, but either way it shows that the book attracts cranks. any thoughts on this?

i see now that wikipedia states that spencer-brown claimed applications of his approach to big conjectures that never panned out, so now i am extra dubious. it makes sense now why people would go off and try that out.
It such a form, it doesn't replace undersea cables.
I've had it hit me twice over the years.
I've tried TST a handful of times and for whatever reason it never quite clicked for me.

Instead, I found the Panorama/Tab Groups feature (before FF removed it, now preserved via addons like https://addons.mozilla.org/en-US/firefox/addon/panorama-tab-...) to be a better immediate fit for my workflow.

The focus on groups and visible thumbnails makes it easy to pick out the tabs I want visually. I'm not sure how well it holds up once you get to 100s of tabs, but for my average of around 20-40 or so (spread over several windows) it works well, and does a good job of helping to maintain context separation.
Wp-Env: Simple Local Environments for WordPress
Starving to death is arguably torture depending on the culture you grow up in. I think I've read about Prayopavesa and I'm not sure if lighting yourself on fire is related but methods of that sort are not really acceptable for all types of people that would just want a drug making them fall asleep with eventually death following. Some people go their whole life without obtaining the discipline to put down the spoon. So I'm kind of wondering if some people just cannot do what you're suggesting.
I'm guessing the piano is in pretty bad shape?

Generally, people don't realise that pianos that don't get restored have something of an expiry date. I know that if it's 80 years old and has never been restored, then it's considered to be unusable. But I guess if you put in really hard work one can? Conversely, old pianos in good shape sound great. I think that's my issue with Yamaha grands. They sound soulless.

Steinway pianos for example have to be restored with Steinway parts to have resale value. I guess that's why you get such high prices for them.
I think many here (and maybe you too) would find the opposite valuable.

How to understand the business/sales/marketing/leadership/political mindset. Without cynicism.
The formalism and structure IS the critique. If the tools become about the rules they hinder instead of help.
Perhaps, but regarding the pandemic, I would assume the pandemic would cause people to read more digital news than before, simply because they have more time to do so.

For example, video game sales have had a really great last quarter.
These pedestrianization experiments seem to usually work, and I support them. Does anyone know where they've failed?
StickerApp Security Breach
I just had a look and sales must be around 2 million so far. Confidence interval 1-3 million.

It's easy to estimate roughly from the steam data that is publicly available.
Kevin David Making 4 Millons Dollars per Year Just on Amazon and Facebook
Can I ask where she finds these volunteer projects? I have that skill set and that day job and haven't found any volunteer places that make use of specifically the data science/ML/stats. I've looked unsuccessfully a few times.
The New York Times has a job link in the console (including a nice ASCII logo that doesn't render well in HN):

NYTimes.com: All the code that's fit to printf()
We're hiring: https://nytimes.wd5.myworkdayjobs.com/Tech
Programmer’s Job Dimensions
CERN posted build instructions for low-cost DIY particle detector
I don't find this article well thought out. One, the writer presents OOP and FP as opposing paradigma's. While object oriented programming is orthogonal to functional programming. You can have a purely functional programming language with objects.

Two:

100% pure functional programing doesn’t work. Even 98%
pure functional programming doesn’t work

Doesn't work for what?

I think pure functional programming has its place, it is not just for everything you want to do. But object oriented programming is also not meant for every domain. It is like saying scalpels are stupid, because you can't build a house with them.
I've used this before for counting. The way I've done it is based on what fingers are touching the desk, or my leg. Reason being, it's kind of awkward holding up/down some finger combinations in the air enough where it's distinct (eg only ring finger up).

So for me it doesn't work too well for communicating numbers, but counting works fine.
This was one of the reasons I didn’t like the book A Canticle for Leibowitz. (Minor spoilers) There’s one character that keeps reappearing throughout the hundreds of years spanned by the story, and you get the impression that this guy is going to be really important at the end. And then no payoff whatsoever. I’m sure that was deliberate as it fits in well with the overall theme of the book, but it was still infuriating.
Have you looked at pasting the links via a IRC client? Maybe your way is better; I'm just mentioning it.
Well, it's definitely out of date: the first edition predates even IPv6 (and the second edition is awful, don't buy it). Still, the way it's laid out is so well done that once you understand how TCP/IP worked in the mid-90's, you'll easily be able to work out the evolution of it since on your own. It's a shame there's no better up-to-date book, but Stevens was one-of-a-kind. The Comer book isn't bad (but it's not really good, either), and the Kurose & Ross book is less not bad (and more not good), but even though both are more modern, I'd still recommend TCP/IP Illustrated to really understand what's going on in the network stack.
My job is about 50% Rust, 40% Typescript, 10% Python with regards to language.

I would say Rust is the best day to day experience out of these 3 except for glitchy editor tooling and the long compile times. We have 1000 line services that take close to 10 minutes for a release build which is not ideal.

I would not necessarily suggest learning Rust to get a job though. We mostly stopped mentioning it in our job ads because we don’t want people applying for the “hip stack”. Usually, competent programmers with some basic understanding of how manual memory management works have no trouble picking it up as they go.
From visiting tons of different sites that have decided to "modernize", I can assure you there is no defense for how god-awful the "modern web" actually is.
Let's put it this way: China is a huge country, that has been very well governed in the past 30 years. Its people are proud, smart, ingenious, and they're working a lot for a lot less than their western counterparts. Given this, and given it lasts, it was inevitable for China to overtake the US in technology, economic power and importance on the world scene. Sooner or later, even playing by all the rules.

Was the US prepared to accept that? What do you think happens when the world's only technological, economic and military superpower is about to be overtaken by a competitor? Did you think the US was going to lose its supremacy without trying everything it could to prevent it? Of course not.

And then, what kind of actions do you think it would take to prevent it? For example, the US could start a very aggressive trade war with China. They could try to justify it in various ways, for example by saying that China is a risk to the world, that its technology is tainted by some issue (maybe it could be used for spying). They could try to isolate China, advising all its partners not to trade with it. And so on.

And this is exactly what we're seeing. It would have happened anyway, independently from China's behaviour. Because the only variable is how close they are to threatening the US's power. And they're close.
Ah I see, my apologies! For what it's worth, your English is so good that it didn't even cross my mind that you weren't a native speaker.

Yes the space shuttle was designed to be partially re-usable. The "plane" bit would come back down to Earth and land on a (very long) runway https://www.youtube.com/watch?v=YOxZsbyjSb8
https://nationalinterest.org/blog/buzz/china-likely-tested-m...

https://globalnews.ca/news/4810853/china-railgun-warship-wea...

https://www.nationaldefensemagazine.org/articles/2019/3/22/i...

https://news.usni.org/2019/03/05/report-u-s-carriers-need-ne...

https://www.businessinsider.com/the-us-apparently-gets-its-a...

Of course a lot of this is self-serving stuff designed to drum up more money to spend, but defence against missiles is fundamentally asymmetric. The defender need to get lucky every time, while the attacker only needs to be lucky once or twice. And MIRV is a big multiplier in favour of the attacker.

Carriers are great against countries or factions without anti-ship missile capability.
Lol I'll probably buy it and put on my bookshelf with all the others.
Should I Use Ruby/Python/PHP Node for My Startup?
Nailed it. When Excel users press tab, they mean "go to the next cell." Conveniently, this is also what the format means to the computer when it encounters the tab separator. It's not foolproof, but it's much better. The human interpretation of the character matches the machine interpretation.
Exactly. I'm not opposed to demanding things. I just don't see particularly disruptive protests as effective at realizing those demands. As you point out, these protests might even be counterproductive.

If all they're doing is blocking the road as is the case in the photo I was responding to, that's not likely to help. That's screaming into the ether. It might make them feel better but it's not likely to solve the root cause of their problems.

I think a lot of activism is more about making the activists feel better than actually changing the world.
Alternatively, they're tracking how many applications they get through that path.
I think if we called it "binding functions to data", instead of "objects" we would have a much different view of how important OOP is. There are certainly times that binding functions to data can be useful, but I think if you tried to tell someone "im making a language where all functions must be bound to data" they would think you're crazy. (Even though that's basically what Java is)

There are so many times you don't want to bind functions to the data they operate on, and languages that force OOP always make it painful

The other thing OOP gives you is type taxonomies, but frequently those are an anti-feature. Almost every experienced developer I know thinks inheritance is usually a bad idea.
Has anyone at all said otherwise?
> Watching fury road you will never feel lost in the action but always directed towards it.

Miller directed the movie off storyboards and not scripts, leading to a lot more difficulty and spontaneity. Good recent article [1] on the rivalry between Theron and Hardy during filming, they mention being frustrated at this switch in direction but your comment reminded me about how storyboards capture that visual leading like scripts rarely do.

[1] https://www.vanityfair.com/hollywood/2020/05/charlize-theron...
Ultrafeudoliberal with Chinese characteristics.

The article is way more optimistic, although it does contemplate the possibility of something like that:

“The ideology that was dominant these last 40 years is dying. What will replace it? Nobody knows for sure. It’s not hard to imagine this crisis might send us down an even darker path. That rulers will use it to seize more power, restrict their populations’ freedom, and stoke the flames of racism and hatred.”

It also notes how things didn’t actually change after the 2008 crisis, and I expect that movie to play again, but hope it will be different this time.

The political change that the article describes sounds to me like a reversal of the process described by Adam Curtis, where politicians gave up in their purpose to improve the world and, instead, subordinated themselves to “The Market”, becoming mere fear managers. I don’t see the forces that caused that transition disappearing because of this pandemic.
It was rewritten by a different author (the original author, Richard Stevens, died in a car accident in the late 90's). I guess the new guy tried his best, but he just doesn't have the writing skill that Stevens had.
The problem is these materials are typically composite materials that have not just the 'raw' carbon fiber bits, but also various resins and other binding materials. We actually have the same problem of not being able to recycle fiberglass already. The early wind turbines which are now at end of life are actually just being buried (landfilled) rather than recycled (https://www.bbc.com/news/business-51325101). There is potential to overcome this (https://www.compositesworld.com/blog/post/perhaps-were-getti...), and techniques for recycling other composite materials like SMC (https://www.proboat.com/2016/09/recycling-dead-boats/) could be adopted perhaps. But in the end it'll come down to the economics of it, and we really need to move to a world where repair and reuse is easier, rather than expecting a black box recycling process to solve our problems.
And the second half of the year is stacked too with CP2077, Valhalla, Godfall, and a Hollow Knight sequel at least. And there’s going to be more big titles announced at the E3 substitute events in the next month or so. And the next gen consoles will launch in the fall.
Where would people park in economic hubs of Boston, DC, Philadephia, San Francisco, Seattle, Miami, etc...

I couldn't find a parking spot in Palo Alto, CA... and that's not a densly populated area.
One of my favorite things with Rust is how other things are starting to use it. Just yesterday I started playing with Deno and was anticipating a severe lack of database bindings. Some people used the built-in Typescript->Rust message passing to make a tiny shim around the Rust bindings for things like MongoDB: https://github.com/manyuanrong/deno_mongo
No, but declining readership is a good mark.

10% cut before pandemic (Feb): https://variety.com/2019/digital/news/vice-media-layoffs-250...

Vice cancelled from HBO: https://www.businessinsider.com/hbo-canceled-vice-news-tonig...

More cuts (Nov): https://www.wsj.com/articles/vice-media-to-shrink-workforce-...

Many of the famous projects at vice, featuring war coverage, projects involving psychedelics and cutting edge mental health treatment among a few, are not nearly as prevalent now. Further many of the arguably top journalists to join in Vice’s history have gone (many, but not all)
You can also look at mobile games that got a desktop port, as that should hint at good quality games. On the top of my head, I recall the Anomaly (Warzone: Earth) series, and Kingdom Rush.
For your sample code Python xmltodict gives:

{
"bookstore": {
"book": [
{
"@category": "cooking",
"title": {
"@lang": "en",
"#text": "Everyday 1"
},
"author": "Giada De Laurentiis",
"year": "2005",
"price": "30.00"
},
{
"@category": "web",
"title": {
"@lang": "en",
"#text": "Learning XML"
},
"author": "Erik T. Ray",
"year": "2003",
"price": "39.95"
}
]
}
}

Your code gives:

[
{
"author" : "Giada De Laurentiis",
"title" : {
"lang" : "en",
"text" : "Everyday 1"
},
"year" : "2005",
"category" : "cooking",
"price" : "30.00"
},
{
"author" : "Erik T. Ray",
"title" : {
"lang" : "en",
"text" : "Learning XML"
},
"year" : "2003",
"category" : "web",
"price" : "39.95"
}
]

Which one's more accurate?!!
They mention nursing homes in this article. If this is the case, they should be adding these deaths to the numbers.

In New York City, for instance, people in nursing homes were forced to go back to the nursing home instead of to a hospital if found to have covid-19. This contributed to the spread early on and a high infection rate (and death rate) in nursing homes. We shouldn't allow a complete failure like this to happen in another s tate.