skysight-inc/HackerNews huggingface dataset:
Sure you can prefer OOP.

But note your style requires additions and edits and refactoring to existing code. It also requires more code than typically needed. If that code is complex enough it could make refactoring a huge undertaking.

The the non-oop style I illustrated there is no need for edits. All new features to code are basically plugins and additions no edits or refactoring needed. This is the ideal that modularity and re-usability strives for that typical OOP patterns fail to achieve.

That is a concrete benefit outside of opinion.

>I think you have a few misconceptions about the objectives of OOP.

The objective of OOP has nothing to do with the actual consequences of it. You can state an objective for modularity and fail to achieve it.

The simplicity of what I am saying is this. methods in OOP cannot be used outside of the context of an object. A function can be used everywhere. This is a concrete fact that methods are therefore less re-usable and less modular than pure functional combinators.

>It's a design choice. I feel that OOP, when used properly, allows me to manage complex abstractions more easily.

And my argument is that outside of your personal preference things are objectively worse as a result. There is logical proof that your choice is objectively less modular. Methods cannot be reused, unless you decide to take the entire jungle and inject it into another object just for the banana.

Additionally:

class Banana:
int banana

is objectively more complex than

int banana

It's redundant syntax when you encapsulate one entity under a class which is a concept designed to gorup multiple entities.

>Ok, if more classes have the same requirement maybe it's not a specific behavior, but another abstraction, which could potentially be extract into a new component, mixin or an utility class.

So you redesign your initial design. More edits and refactorings and assumptions until the code becomes so complex that one day you find you cannot do this.

If you leave everything outside of classes you will find new features are just new additions to modular plug and play code. With OOP new features can end up being complete redesigns simply because the banana has to lug around the entire jungle and people end up needing to refactor the system so it doesn't do that.

When a code base becomes large enough this is what most people end up doing refactoring logic that's tied up in a class so it can be used outside of the class. You can either make it a global function or tie it up into some other container like a mixin which leaves the problem of maybe one day a component of the mixin needs to be extracted....

They either do the above or they take on technical debt by replicating the logic elsewhere.
I was going to post the same advice. I haven't had trouble coming up with gift ideas for family/friends I see regularly since doing this.

Also, thanks for referencing BarkBox. I wasn't aware of it before.

Edit: As an additional benefit, if you start doing this people will shocked that you remembered some offhand comment they made so they think you're a much better listener than you actually are.
AWS auto partnership sends BlackBerry stock soaring 57%
I’ll second your recommendation for “How it's made". Great show.
That's nice in theory, but falls apart as Trump supporters seem blind to Trump's own shameless corruption. "Drain the swamp" and "fake news" are valid critiques for sure, but Trump has merely channeled these frustrations to gain support and cover for carrying out his own graft. You can't get more blatant than stealing PPE from hospitals to redistribute it through your own company while taking a healthy cut.

As a libertarian I had been intrigued by the meme that Trump hasn't started a new war, but this article puts that in the best context I've seen. He was happy to continue meddling in other countries and committing acts of war against Iran, just nothing strategic or long term. This fits with Trump being of low intelligence and used to simply waving his dick around to get what he wants, but that simply doesn't scale to the actions of a country. And so his pigheadedness is great for drawing attention to the workings of the corrupt system, but that's about it.

I do see where Trump supporters are coming from, at least starting out. But I don't see how there can be solidarity while they continue to go on the offensive against the grassroots of the other team (antifa bogeyman, all lives matter, etc). And at this point I would say that is most of the energy of the movement. And so it's ultimately just another round of the same divide and conquer the masses that's been going on for decades, only this time with disastrous pandemic response.
You can get most of the Pebble features you listed on the Amazfit Bip and Gadgetbridge.

It's not perfect, but it's the closest thing to what the Pebble used to be.

See this thread from below here: https://news.ycombinator.com/item?id=25269500
What about BCH, where they're increased the block size so many smaller transaction fees can still build up to a large reward for miners?
You seem to assume that the attacker has control over the entire internet.
I haven't read the details but an earlier message said "70x revenue". It is hard to think of a reason not to sell at that multiple.
Earlier you could just stick with the version you had on your CD or floppy and not care what the C-suits was up to on the company that made the software you used. So I guess it wasn't as obvious back then?
It doesn't seem to have had a thought given to the possibility of repair. How would the center be lowered down for replacement? There doesn't seem to be a landing spot. One of the cables even had a catwalk, making it clear that there was no way to simply play out more cable to set down the center.

Next time, design for repair.
That put a huge smile on my face, I hope you find someone!
It's not clear whether the predictions were for the solution or solid phase. Can anyone speak to that?
It is fragile. But, the key can be fetched from their server. No root, no funky hacked app, judt one time effort. Bip is not perfect, but the translucent display and GPS, plus many weeks of life are great. You can even push it for BipOs and write your own apps.

Disclosure: I help with Gadgetbridge :)
Good to know. I have some Discord groups and contacts, but I don't spend a lot of time in it. I actually find the playful messages somewhat endearing, but I feel like they'd be better off launching an entirely separate client if they want to appeal to businesses.
What we do is have the idea of a present box. When we're out shopping (well in the days when you could go out shopping). If we saw something that would look like a good gift for person X or person Y we'd buy it and put it in the present box. It might be a book or a certain item of some kind.

Then when it comes to near a birthday or Christmas we'd check what's in the present box to see if we have anything suitable for them. If not we'd then go through the process of buying something. But the present box has saved us countless times as we'd often buy something thoughtful and put it in there in advance.
What would really open this up to new use cases now would be to drop the 15 minute timeout. I've got jobs I had planned to run in Fargate that would really be more appropriate for Lambda, but in some cases I need them to run as long as 90 minutes.
This reminds me of a video I recently watched comparing Sherlock Holmes to a software developer.

https://www.youtube.com/watch?v=OUZZKtypink

Holmes apparently kept detailed notes on every case but would otherwise forget the details until he needed to go back to them later.
thanks, from this aspiring idiot :)
Is this really the outcome you want?
Very high bandwidth usage for Cloudflare Workers workloads is not against ToS according to Cloudflare's CEO: https://news.ycombinator.com/item?id=20790857
chat.google.com ?
Pinetime maybe
https://www.pine64.org/pinetime/

Pebbles were very hackable, but you can't buy new ones as other threads have pointed out.
It reminded me the old DOS game: Blockout. https://en.m.wikipedia.org/wiki/Blockout
Ok I see. Follow up question, isn't that the same as Python then? Or at least compiled to .pyc Python code?

And, would implementing the Beam bytecode using Graal polyglot layer be a good idea then? Allowing it to leverage JVM JIT ?
> Buy them only weird sentimental things ... A small piece of artwork that comes with a note saying "This made me think of you" carries sentimental value

It is incredibly hard to do this without giving someone a burden. The recipient often feels an obligation to keep obviously sentimental gifts, even if they hate them (that piece of art your dear aunt gave you).

Or maybe worse when the receiver loves dust collectors, and has a horde of clutter that you have just added to.

Certainly you are inviting them to reciprocate with something sentimental, which now you can’t throw away even though you have no place to put it.

It can be done, but you have to be really in tune with their tastes or listened carefully to what they like (e.g. I love some artists, but can really hate some of an artists oeuvre or I might not have a suitable place for it, so it is hard to pick something for me).

> and will make the receiver think of giver every time they look at it

Sometimes that could be selfish (depends on relationship etcetera).
Sometimes I'll go 2 years without upgrading. Certainly the difference every 2 years is enough to warrant it. It seems there's a new sensor for measuring a new dimension at least every 2 years. But I also put these things through the wringer (lots of physical activity, including salt water ocean adventures).

I wear them 24/7, so it's literally the thing I use most in the world.
I think there is no amount of ceremony that will make a janitor feel like a king while he "captains" his mop around at the bottom of an enormous bureaucracy.
What I was saying is that on average real estate is not deflationary, it tracks inflation, and there’s data to back that. In specific instances of markets where it is deflationary it’s not due to intrinsic qualities of the asset class but rather externalities.
IRCCloud has had iOS and Android apps since 2016. :)
Another thing missing from the Mac is touch screens and pen input. If you've ever used a Surface, it just feels like there's something missing from your Mac.

It boggles my mind that Apple shows all these musicians, designers and artists in their ads, and pretends that a one-dimensional strip above their keyboard is allowing them to express themselves in a completely new way...
Well, the original meaning of casuistry is "the use of clever but unsound reasoning, especially in relation to moral questions; sophistry", which seems apt to this article.

We have another name for what the article is describing, vigilantism.

"Under casuistry, communities themselves deal with those accused of disturbing the community’s peace or of harming some of its members."

I can think of few things more terrifying than a community seeking to impose 'justice' emboldened by the absence of law.
Is there any reason Rocket.chat [1] never gets a look in, in these discussions?

It's open source and you can self host pretty easily.

We've been using it for 6 months and really couldn't be happier.

https://rocket.chat/
Immunant | Senior Software Engineer | REMOTE | Full-time | https://www.immunant.com

Do you want to get paid to use Rust? Do you know a thing or two about systems programming, compilers, and operating systems? Do you like research-y work where the best solution is rarely the most obvious one?

Immunant is helping its customers deploy Rust code alongside or in place of C/C++. We are looking for a fellow systems programming expert to help us harden components used by hundreds of millions of users each day. If you are self-motivated, have demonstrable experience with C/C++/Rust, and an eye for detail, we should talk.

We are located in Southern California but also consider strong remote candidates in the United States.

More details: https://www.immunant.com/jobs Code: https://www.github.com/immunant

Send questions and applications to team@immunant.com – please mention HN in subject line.

We look forward to hearing from you!
VictoriaMetrics CTO here. We were very happy to help Percona integrating VictoriaMetrics in PMM. Some interesting details:

* Prometheus has been completely replaced by VictoriaMetrics at PMM server. The end result is lower disk space usage and RAM usage.

* There is no need to convert Prometheus data to VictoriaMetrics format during PMM upgrade.

* PMM clients support both pull and push model for sending metrics data to the server.

* PMM clients transfer all the collected metrics to the server via encrypted https connections when push model is used. There is no need to open tcp ports at PMM client host for metrics' scraping.

* PMM clients do not lose collected metrics when they cannot connect to the server. The collected data is buffered on local disk until connection to the server is re-established.
Show HN: Namekrea, AI Domain Name Generator
Ha, then mark that problem solved :)
how is it that a chat app is worth $27B?
Enterprises don't want federation. They want an easily searchable information repository much more than they want strong E2EE. They also don't see open source as an advantage.

Matrix was focused on things that deter enterprise customers while Slack built a machine for locking them in.
Who uses it?
So that's the thing.

Switching to slack was brought up in our org and most people were at best noncommittal, because the option wasn't really "chime vs. slack", it was "chime vs. chime AND slack".

We'd still all need chime for meetings and interacting with any groups that hadn't switched.
And integrate business twitch streams please, with company email footers always reading ‘don’t forget to sub to my stream’. Let the twisted fantasy play out where the business world lives like esports streamers and wow raiding guilds.
> the only one with an open protocol seems to be Matrix, but it hasn't proven to be to their advantage

I guess it depends on what you mean by "their advantage". Designing and promulgating an actual open federated protocol is way harder/time-consuming than doing the same for a closed proprietary one. So taking this approach has only hurt their flexibility and speed-to-market for features.

However, if done right, an open protocol can be way more advantageous to the global community as a whole! IMHO Matrix started out as just another crazy moonshot. "Let's make something like email and xmpp only better." But, fast-forward to now and they have built a very usable chat ecosystem with multiple server implementations and many clients.

My hope is that things like this Slack acquisition (and the inevitable cooperate shenanigan that will follow) will continue to push individuals and companies to invest in open federate-able alternatives.
Just use Metamask!
Salesforces Buys Slack for 27.7bn
I think you have to be willfully blind to make your parent statement, and ignore the very real risks of being a foreigner in Iran. I'm pretty confident say, Jason Rezaian, would agree...feel free to chat with Behdad Esfahbod too.
>I see. Thanks. Before you pointing out that you have high confidence the person should be "Dennis Montgomery" I cannot see the relation. If so, those links are indeed related :)

Some additional information regarding the affadavit you referenced. It's a blog post[0] from the developer of the tool used in documenting the "evidence" contained therein.

Just to clarify, I didn't go looking for this. I ran across it while perusing the "new" submissions here on HN (https://news.ycombinator.com/submitted?id=smicallef).

[0] https://medium.com/@micallst/misusing-osint-to-claim-electio...
https://apnews.com/article/election-2020-joe-biden-donald-tr...
I started using it when it was riot.im but it didn't work any better when they renamed it element and it made it just a bit harder to find while it was not really that popular already... I think they just tried to cash in a bit instead of a lot (or shot themselves in the foot)
Ironic, since the layout looks to have been selected exactly for being one of the easiest to make responsive
Stagefright was ~5 years ago now, though. I remember it, because the company I worked for at the time flipped out and banned all Android phones from their network for over a year.

It was fantastic; I got a whole year of not being able to see work emails after I went home, and then they let us opt out of the invasive MDM software that they wanted to put on Android phones to let them access corporate email. All for a bug that my phone wasn't even vulnerable to.

By the time I left, I had gone 4 years without ever responding to unexpected evening emails. And now that I know it's possible, I'm never going back! :)
I ctrl + f and saw no mention of rocket chat, is it no longer trendy? Have been using for a while on prems and it sort of just works.

Good on Slack I guess! A very nice exit.
Ask HN: Is there a service that provides US “non-VoIP” phone numbers online?
I have a bank account in the US, but they won't allow me to make certain purchases until they unblock my debit card, and they won't do that until I receive a confirmation SMS sent to a US phone number. I don't live in the US. I used to have an US phone number when I travelled there, but I don't anymore. I tried setting up a Twilio phone number but they told me that won't do.

I've been trying to find a service that allows me to rent a "non-voip" phone number but all I find are shady websites, and this website https://dtmf.io/ which seems to provide exactly the service that I need except it's for UK numbers and they're out of numbers anyway. I don't know if I will just have to resign to write a lot of angry messages to my bank until I get tired or they happen to find a magic switch that allows me to receive messages to my local phone number or to my jmp.chat number
Worse than getting a million notifications about something you're not interested in yet don't want to mute the channel?
This is a disaster
Congrats on finishing the book. I hope it will turn out to be a good investment of your time :)
The research would've been much shorter if Apple would actually provide researchers with debug symbols. Or you know, if Apple open sourced their security-critical software.

> One of the most time-consuming tasks of this whole project was the painstaking process of reverse engineering the types and meanings of a huge number of the fields in these objects. Each IO80211AWDLPeer object is almost 6KB; that's a lot of potential fields. Having structure layout information would probably have saved months.

> Six years ago I had hoped Project Zero would be able to get legitimate access to data sources like this. Six years later and I am still spending months reversing structure layouts and naming variables.
I worry about this statement:

"To conclude from this that the tank’s days are numbered, however, is a serious error. From the videos in Nagorno-Karabakh it is evident that unarmoured vehicles and dismounted infantry are faring no better, even those dug into positions with camouflage screens. Indeed, the lack of protection means they will likely fare worse since there are more kinds of munitions that are lighter and easier to employ that can kill them."

It is possible, that the inability to hide, and thus the increased ability to quickly inflict losses with concentrated fire, means that the balance has shifted decisively to the offense. Whoever attacks first, is able to disable enough of the enemy firepower to win.

A situation in which the balance of power shifts to the defense, is not great; as WW1 showed, it can favor war of attrition. But a shift to offense, favors attacking first, and that seems even worse.
> Certainly just wearing a FitBit has zero effect on health if you don't do anything based on the collected data.

Surprisingly, even this I disagree with. Simply buying one nudges the healthcare world to a more data driven place, and simply wearing one provides data and feedback to the ecosystem that will have a positive value.

That being said, yeah you should look at the data if you personally want to benefit.
You have made an error somewhere. 1500 fusion reactions per second is maybe 10^10 eV per second, which would be around a nanowatt.
It was sad then, too.
It's worth noting that you're comparing the dynamics of a particular pandemic in a particular year - we don't know for sure how the Spanish Flu would have behaved in a different time. There are reasonable theories that the Spanish Flu had been spreading for years prior to 1918 - perhaps as early as 1915, with few noteworthy "pandemic" level deaths before going nuclear in 1918. Even the cities that were hit by the first wave in 1918 tended to do much better, before the more deadly strains began to spread - contrary to pandemic evolution and driven largely by the dynamics of war. 1918 was a perfect shitstorm - malnourishment was rampant at a global level from the prolonged war, young active soldiers carried the infections worldwide, the sickest soldiers (ie, the most deadly viral mutations) were transported to crowded field hospitals, infected soldiers passed on the virus to soldiers recovering from poison gas attacks, the pathogen was not identified for the longest time and bacterial agents were focused on instead, the refusal of national governments to recognize the pandemic, and so on. It's a fair assumption that those conditions would have greatly exacerbated a 1918 COVID pandemic as well. Yes, COVID deaths have been highest in the elderly - but co-morbidity is important as well. A 1918 population would have fared poorly with SARS-CoV-2.

I'm not trying to imply that Spanish Flu was not a killer - my home country of India suffered ~ 13 millions deaths. Yet the policies of the Colonial Administration also made a bad situation much worse. My suspicion is that given those circumstances, COVID would be just as bad, if not worse. At this point we can only speculate.
Not OP... but one big difference between PoW and PoS is that:

when a PoW block is mined, there's no way to know how much hidden equipment is out there mining a parallel chain, which could suddenly appear and take over with more accumulated work. You hope the malicious actor doesn't have 51%, but there's no way to actually prove that they aren't out there.

with PoS on the other hand, the set of validators who are voting on a block is known many blocks in advance. so say a malicious validator has X% of the voting power on a given block: he can't refuse to relay the other votes, because it will be obvious to all other nodes that he only speaks for X%, and what he's broadcasting lacks quorum, because the other (100-X)% votes are missing.

Whereas the other (100-X)% group will be actively broadcasting that they're slashing his stake; and if (100-X) has quorum, those votes will be accepted as valid by all the nodes on the network, regardless of what the malicious actor decides to broadcast.

TLDR: under PoW, silence is assumed to be absence of dissent, since number of miners out there is unknown. Whereas under PoS, silence still allows proving lack of quorum (since the voters are known well in advance), so censorship doesn't let a malicious validator legitimize their vote.
How? how does this work? Tesla sells a fraction of the cars that other do yet their value is absolutely insane.

So in essence you could build a company that produces a marginal product but over hype it to a point where your stock price is high enough that you can just aquire your competitor?
I have had good support retail side (granted, I'm not expecting much on my $20 item). On AWS I've had very good support.

Also paying user of google products and GSuite - support not great on the gsuite side, but retail order for Google Wifi etc pretty OK.
Sure, nobody said this doesn't work out well for the founders. Just the product, and its userbase, and future business.