skysight-inc/HackerNews huggingface dataset:
React State management made simple
GlassX

GlassX is a simple context based state management library for React and React Native. It provides simple hooks and classes to get you started right away. No need for initializing a context or any such thing. Just start writing and reading your state.

GlassX is based on Reactn by Charles Stover but is more tailored towards speed building from the ground up and polished with modern react. It has a ton of handy features with a minimal learning curve which makes it perfect for everyone.

https://github.com/mychidarko/glassx

Features
No boilerplate
Right after installation, you can call GlassX.set to add items to your global state or use the useStore hook. No setup, no initializations.

Based on react context
GlassX is based on context which makes it super fast and allows it to sit right in your app like a part of the react code itself.

TypeScript support
GlassX is 100% written in TypeScript which gives it amazing support with most editors and allows you to create and extend types on top of it. You no longer need to stick to state management tools with sub-par type support.

Supports advanced features
Unlike many other state management libraries out there, GlassX supports features like async reducers, hooks, plugins and modules which allow you to scope your state and reducers to particular portions of your app.

https://github.com/mychidarko/glassx
Split it into smaller files.
Based on this a median programmer is a 4x engineer
this aligns with the hypothesis that some people have that a handful of people do most of the work (and the others are the "worst" performers").

What this misses, is that in any highly functioning teams everyone is important and in order for the "rockstar" to be the "rockstar" they need people to help keep the machines running and to support them. This is usually why a team that has a mix of both veterans and newbies works so well. Everyone can operate at their own level while learning and growing. Is the veteran a 10x when compared to a newbie? If you make up some metrics, maybe, but the veteran cannot do meaningful work without the newbs (think rock concert without all the supporting crew. could any band do their own concerts without all the supporting crew?)
Web version was quite annoying by vs desktop. First year using web this year. Was "wonky" compared to desktop.
Playdate, Portland company’s video game system, begins shipping
From TFA: "For one thing, some believe Intel’s 486 will have trouble finding a home in the personal computer market."

Imagine a world dominated by 68040-derived (MacOS, A/UX, NeXTstep, Unix?) systems...
For humans in a hypothetical advanced society the most likely reason would be preemptive self defence.

I think it's a mistake to assume that aliens will be overly similar in their thought process.
Things like this are why I could never write consumer-facing software like this. To me, I think software is working well when it's fast and responsive. But clearly their market research shows that you need a lot of sleep statements between screens so it feels like it's "doing" your taxes. I can't wrap my head around this thought process. Just moving the Turbotax window around is many orders of magnitude more computations per frame than an entire tax return :)
The less technical answer is just that "the board runs the company and they can decide how to allocate new shares". This kind of trick is just one of many reasons why hostile takeovers virtually never work. And that's a good thing, precisely because it prevent disruptive attacks on companies competing in the market.

Remember Musk wasn't ever threatening a hostile takeover anyway. He knows it won't work. He was making an offer to the board to induce them to bless the sale. And the board responded with the poison pill, essentially as a way of saying "no". This is the way this kind of negotiation works.

And from the opposite perspective, arguments like "the board isn't performing its fiduciary duty by accepting Musk's offer" are likewise silly. The board is elected by the shareholders (the actual bureaucracy and process for this varies between corporations, I know nothing about Twitter). The level of oversight needed to ensure fiduciary fidelity is already there. No court is going to view a board trying to oppose a hostile takeover as a breach of fiduciary duty, that's ridiculous.
I found TaxHawk to be really good when I did my own taxes. Mainly I sought it out because it took in K-1's where TurboTax would need an upgrade.
We also literally have scientists studying ants. We even put ants on the ISS. It's not like there is nothing to learn from ants.
Twitter makes money based on ads and advertisers put pressure on services if they feel pressure from the public. For example Tucker Carlson is a very popular show but 24% of the ads are for Fox news or related [1] and many advertisers have have stopped because of controversial speech [2].

Elon musk has stated that free speech is important to him. Let's assume if he purchases Twitter he'll decrease the amount of censorship. I'll make the claim that the less censorship a service has the less money it can make from advertisers.

Some have suggested that, maybe Musk did himself?, that he'll start charging users for the service however a survey stated that 74% of people would prefer an ad based service, if they were forced to choose the numbers are closer depending on the age bracket [3]. I'll claim that people wouldn't pay in sufficient numbers and would flee the service. What other popular social media service requires a subscription?

Therefore Twitter's action is in the best interest of the shareholders.

[1] https://www.tvrev.com/news/whos-still-advertising-with-tucke...
[2] https://variety.com/2019/tv/news/tucker-carlson-fox-news-mob...
[3] https://www.socialmediatoday.com/news/would-people-pay-to-us...
That is hardly the same model. You are describing donations, not investments. Reliance on donations doesn't seem like a sustainable business model for running a huge worldwide enterprise. Eventually you run out of suckers with money to fall for the scam.
Or just use free form filler. Especially if all you have is a W-2 and maybe some stock sales there's no reason not to do it yourself.
My point is YMMV but the tech to run remote environments and connect to them using vscode on browser has been there for several years now. My main issue was the hardware (different keys and supported shortcuts in the browser). But I guess pointing someone’s real life experience merits HN downvotes
I've done my taxes on Turbotax for a few years, and didn't even check alternate options because I had the perception they were clunky.

I've tried for the first time FreeTaxUSA to prepare my mother's tax return. Guess what? It's even better than Turbotax in some aspects(the UI is similar, but doesn't waste your time with animations), and way cheaper. It only charges you to file state but, if you come from the Free File IRS website (and are under the income requirements), it doesn't even charge you that. There's one upsell for their tax consultants or whatever, but it's only done once.

It does not automatically import W2s though, but that saves you maybe 5 minutes per W2. Not sure about stock transactions import either, it seems they can't import from brokers. I will have to check next year. They do seem to have spreadsheet import, so maybe that's something we (as in, HN community) could fix until they have the feature.

The competition seems to have improved as well, although I don't have first hand knowledge (but watched some youtube reviews where they walk through the filing with every software).

It's time we ditch Intuit. If we can't have free IRS software, then we should at least bleed Intuit dry.

EDIT: it's particularly egregious that Intuit came up with the Free File program as a compromise so that IRS wouldn't have their own tax software, only to leave the program.
Classic essay.

> People who work on social software are closer in spirit to economists and political scientists than they are to people making compilers. They both look like programming, but when you're dealing with groups of people as one of your run-time phenomena, that is an incredibly different practice. In the political realm, we would call these kinds of crises a constitutional crisis. It's what happens when the tension between the individual and the group, and the rights and responsibilities of individuals and groups, gets so serious that something has to be done.

> And the worst crisis is the first crisis, because it's not just "We need to have some rules." It's also "We need to have some rules for making some rules." And this is what we see over and over again in large and long-lived social software systems. Constitutions are a necessary component of large, long-lived, heterogenous groups.
Yeah, an ex- of mine tried to make this argument many years ago (leaving aside any freedom of speech issues).

I said "Marshall Mathers (Eminem) could end up in a situation where he's sued for slander / defamation based on lyrics in his songs."

Her: "No, because he's not singing - that's Slim Shady, who is a character of his. You can't sue the character, because it doesn't exist."

Me: "That's not really going to fly in a court. Among other reasons, if he doesn't exist, where's his voice coming from?"
Sure, but which side here really has the burden of proof that they are best option? It really seems to come down to that. Is the incumbent system really spared from the same or parallel criticisms (corruption, inefficiency, accountability) precisely because its incumbent? "We don't want that because it has been shown to be bad" has less of a ring to it these days, when all the same problems are replicated in the existing, private, commodified system.

People are not saying "let's do twitter like the USSR would have done it." People are rightly saying: "let's try something different."

This place alone, and sometimes despite the crowd in the comments, has taught me more about the ills of ad-based private social networking than anywhere else.

It just doesn't seem rational to me to label any drastic changes as filthy communism and just.. Move on
> ...people with relatively simple tax situations are persuaded to use expensive filing services (H&R)...

And when you go to an H&R Block office, you're talking with someone who doesn't really know taxes at all. They are just filling out forms like you might do yourself.

When my ex-wife and I had separated but were still legally married, she went to an H&R Block office and the tax preparer told her that she could file single. (No, you can't. It's married filing jointly or married filing separately.)

She also said our adult daughter didn't need to file at all because her income was below the filing threshold. (Yes, she did need to file because at the time she was on an ACA/Obamacare health plan.)

It's bad when I know more about taxes than the "expert" at H&R Block.
Depends on your definition of human
Yes, for linking to the Post story or tweeting its content in one way or another. There was no ban on simply tweeting about Hunter Biden's laptop.
I agree that this work ethic is indeed healthier and with most of the list, but I want to make one caveat: a programmer working secretly after hours to deliver more is not really a 10x programmer, he's just someone doing unpaid overtime (and risking burnout). Truly 10x developers also only work 9-to-5, the same as 1x.

I also disagree that continuously improving is unnecessary. It absolutely should IMO. But it should happen between 9-to-5, in the workplace.
The Authy app is not exactly TOTP - it's a bastardized version that requires you to supply a phone number to use it because that is what they use as a seed. Since twilio is a spam company, I would advise against this.
Yeah I guess I should have added in the caveat that I've never owned a phone in 15 years that has lasted more than 2 years due to some kind of mishap. Usually a broken screen or water damage.

On a side note, My favorite phone I've ever had was an LG Envy 3. It was about the size of the palm of my hand and, closed, had a 1.25" screen and a standard 9-key keypad. It could also flip open to reveal a full qwerty keyboard and a 3" screen with some respectable stereo speakers.
If this is true, can shareholders (if they wanted to) sue the Board for being deaf to shareholder interest? Or just fire the Board and elect a new one?

What I am trying to understand is that – do the shareholders want these people to have cultural power?
the number of lines you write is almost irrelevant. People need to put the equal sign between lines of code written and productivity. Some of the most awesome and productive people I've worked with actually removed more code than they wrote. Code is a liability. There is no code like no code. Focus on the problem not the number of lines of code
I assume you're referring to Çatalhöyük (https://en.wikipedia.org/wiki/%C3%87atalh%C3%B6y%C3%BCk)?
> Meta's platforms reach BILLIONS of people

Yes, but most of these are leafs on the (imaginary) unified global social graph.

Twitter's active users are much more likely to not be leafs, but multipliers, some able to reach even people completely out of reach of any social network (by transporting a story over to other media, like print or TV). And considering that even Facebook only has a minority of the world's population among its gigantic user base (and an even smaller minority among its active users), the ability to reach out to other media through Twitter is extremely valuable, in my opinion even more valuable than the ability to reach the giant Facebook user base directly.
I'm reasonably sure signed integer overflow is implementation defined to mean twos complement overflow on x86.

Of course, assuming two's complement is non-portable, and the compiler is free to add a flag that breaks or enforces my assumption.

It's much better to add some casts (that the compiler will compile away on most architectures). However, that doesn't solve the problem of legacy code that assumes it is on an x86.
I think that there is not enough wealth around to support all elders communities at reasonable levels. The demography is a bitch all around and there is too many people young and old that believe that they deserve american middle class level of life. Where they will find all required modern slaves to make it happen?
I agree with the latter part of what you're saying, but as for the former, you'd be surprised how many people I've met who really do think a lot of this surveillance and "our government does bad things" stuff is a recent development.

And yes, I have been, and remain, upset about it. No worries there.
I believe it handles all that. Now if you do a lot of stock trading, that's seems to be a problem. Not that it can't do it, but in the amount of data entry that has to be done.
Yes, this is a self-dealing transaction since it is detrimental to certain shareholders and not others without getting the adversely affected shareholder's consent. This is what Savrin sued Zuck over in the early Facebook days.
I am not denying honesty won't hurt, and probably would help you. But again, the interviewer is going to have to get a replacement question...you have a reduced chance of solving it correctly.
I agree, and I know you didn't mean it literally but s/ruthlessly/tirelessly/ ! He's the exact opposite of ruthless.
I had an idea to make a physical NFT picture frame that would only show things other people own, to contrast with the ones that only show ones you own, but I decided it was too absurd.
There are various reasons why integers are convenient to work with, it's not all about performance.
Exactly. I see more and more of this clickbait-style title applied to scientific articles. I instinctively no longer read them. The fact that this is ALSO a twitter thread is just icing on the cake.

It's about one step away from "We thought scientists knew how rockets worked. You won't believe what we uncovered next"
He has literally said both. He has accused specific parents of being liars and actors, and has revealed their contact information to the point where many of them received death threats from his followers.
Also, Congress retains the ability to use USPS profits at will for their own projects, versus a true corporate model where profits would be reinvested back into the "business".
Most of our lived-in systems have very little in the way of guardrails or oversight. We maintain our safety and happiness through a social contract, not absolute enforceability of law.

The "exploits" you're describing were possible 20 years ago through various other methods (unregulated banking, cash in briefcases, etc). The new thing is government and police having a much greater degree of control over monetary systems.

I think crypto is failing at most of its promises and it's still unclear whether it will ever live up to any of them. But rah-rah celebration of government being able to monitor and halt anything it wants to is not the way to go, either; it's actually a literal doomsday scenario (Vernor Vinge has written about this, among others).
information from the laptop was released...you just didn't see it because it was censored.
You’re using a couple of totalitarian states as an example, ignoring a whole bunch of nationalised companies in perfectly reasonable countries (like in western Europe), that work quite well. Britain is not turning into a communist hellhole because they nationalise some rail operators that failed to give a decent service.

To get a somewhat relevant example, I really haven’t seen a decent railway infrastructure manager that wasn’t nationalised. Private interests are too eager to cut corners.
how many of these decentralized protocols has the FBI fixed?
This is my reason for learning Spanish yes. It's just so useful in the world. Catalan is useless outside Catalonia.

If they do secede from Spain I will not learn Catalan, I will just leave. I'll probably have to anyway because I assume Spain will force them out of the EU and there's no way the multinational I work for will stay then.

It feels very similar to Ireland where they also use heavy handed methods to keep their language alive but in a globalized world it would hurt them a lot if it were actually needed to live there. So it has to stay this fringe thing. A lot of it is just to pacify the old people that still associate English with the British oppression (which was brutal to be fair)

I assume this will happen to Catalan too, the oppression is just a lot more recent to them. So it's more fresh and alive.

FWIW I'm Dutch and I wouldn't care if my country abolishes Dutch in favor of English. I view language as a means of communication, not cultural identity. And as such being able to communicate with as many people as possible makes a language more valuable.
it was required by regulators for them to sell it off in order for intuit to acquire credit karma
Why do you think Cornell invested so much money in this program?
It's right in the instructions for a 1040 that you must complete form 8949 if you have any capital gains or losses, and form 8949 says to list out each sale.
Federal judge voids mask mandate on planes, public transit
I think it is better to compare Flutter with Apache Cordova / Ionic Capacitor, as Flutter actually has a DOM tree behind the scenes, but instead of using a Web View to render the application Flutter renders the app directly to a GPU Accelerated surface using Skia.
The "assuming they weren't working" adds a major wrinkle because my default suggestion would be to get them into better jobs where professionalism and responsibility actually matter.

At least as far as teamwork (and possibly independent work) is concerned, sports or marching band are the first two summer opportunities to come to mind. However, that still leaves out customer service (and the effectiveness of that actually being picked up by most teenage employees is debatable, at best).
while labeling does not help, we can all agree that Musk is privileged, but he is certainly not on the right..

Maybe, 'alt-left' similar to the existing 'alt-right' label?
Medical tests are only part of the solution there. They would be worthless without the more important component: a trusted third-party tester. As we've seen with DMCA takedowns on YouTube, an automatic third-party arbiter ends up favoring one side. Usually the one who learns to game it.
Genuine question, how much evidence of agriculture would survive an ice age, being crushed under the weight of 2 mile thick ice sheets and then washed away or engulfed by bodies of water once they've melted?
Used to visit this site almost daily back in the 00s, but I thought it had fizzled out as an active site years ago?
If a 1 week vacation is like spring cleaning the house, 2 weeks is like cleaning the house and painting the living room.

Same building, same room, just fresher.
What are you ranting about?
Microsoft does not have this culture of secrecy but makes it practically impossible to report issues. I don’t see why Apple would do worse than them.
It's a five-year old meme at this point and yea they all get old almost immediately.
I would guess many Twitter users don’t care much about discoverability of their other work, if they have it in the first place.

If they have it, I think “self-hosted” isn’t a realistic option for the majority of Twitter users. Their other content will likely be distributed between Facebook, Instagram, etc.

Twitter users also can have some long term control over what they wrote: users that want that can regularly download a machine-readable copy of their feed. I doubt many use that kind of backup, though.
We really need to get rid of these things. Why play with fire?
How do you incentivize people to provide missing info if it will increase their tax bill?

The US system is intentionally designed so that you don't know what the IRS does or does not know. If you leave something off of your taxes that the IRS knows about then maybe they'll audit you and give you a big fine. So the optimal strategy is to report everything and pay the taxes you owe.

In Spain's system, it seems to me that the optimal strategy would be to either go with what the tax agency says or to report more information, depending in which gives you a lower tax bill.
If you tried to change the government to fix lobbying, every company would lobby against it. It wouldn't pass.

That's primarily because it would be unconstitutional to "fix" lobbying, at least they way detractors of the practice would likely consider adequate. It's right there in the First Amendment next to freedom of speech:

"Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances."
I think if you are going to be charitable, they aren’t just looking after their own bottom line. Intuit employs 14,000 people, so they are also doing as much as possible to keep their jobs.

Of course, that is still a drop in the bucket compared to how many people suffer because of their lobbying, but it isn’t about simply one person being greedy for themselves.
> I’d see it as a magical period between WW2 and today where the belief was in fairness and universal rule of law.

Even this, I would say, was manufactured, and not as widespread of a belief as the "winners write history" camp would have us believe.

It certainly wasn't true, or even thought true, in America (and other western countries too) if you weren't white and Christian.
Similarly, vaccination does not seem to control the symptoms after vaccination. Some people react asymptomatic, some are several weeks bedridden, and some get even stronger reactions. Some get many antibodies after vaccination, some only few, vanishing rapidly. It’s a much more fine-grained analysis that is necessary, in my opinion.
Then pirate. Call it "civil disobedience" if you're the type that enjoys flattering euphemisms.