skysight-inc/HackerNews huggingface dataset:
I don’t understand why people think react hooks are meant to be ‘functional’.

They are highly, deliberately, emphatically procedural.

The order they are called matters! The time of when they are called matters! The number of times they are called matters! You get a different result from calling the same hook with the same arguments at different times! You get different results if the call site for them is in different places!

They do enable you to do some things in JavaScript that are more easily enabled with higher ordered function stuff in functional languages, but there is nothing ‘functional’ about how hooks work or how they are used.

And that’s okay! ‘Functional’ doesn’t automatically mean ‘better’ and ‘procedural’ doesn’t mean ‘worse’. For what they do, hooks (considered as the entire hooks ecosystem including linting extensions that help enforce the rules as if they were syntax errors) are a very clever extension within JavaScript syntax that let you pull off some very neat separation of concerns in a reactive code model.

‘Functionalness’ has very little to do with whether hooks are good or bad.
Same on Firefox on android
> So what the heck they are blaming me for being Russian and terminating the contract without any agreement?

This is how economic sanctions work. You hit the nation economically to put pressure on the politicians. In any case people are at least in part responsible for their governments. If you have an issue with it, join protests against Putin, do things to stop him from committing murder and war crimes. In the meantime, the sanctions here are not your fault, nor are they Namecheaps - they are Putin's fault.
I have not found any "good reasons" in the usual issues you'd find to be honest. Many of those harmful reasons are dealt with and tbh where does it differ that much from normal apps? NFC especially. Also: if there would be any issues then try find solutions for that?
Use `reselect`!
> a demonstration of what would happen to Western population centers

Because nobody has seen the photos from Hiroshima and Nagasaki?

Anyone claiming the need for such a "demonstration" is clearly irrational and needs to be dealt with accordingly.
China could easily tell Russia to knock it off.
Each situation is different.

I wouldn't support 75 years of isolation in Russia, but a country in free fall might lead to regime change in the not-too-distant-future. I want Putin out. I can see scenarios by which he's out in weeks, months, or a few years.

Even more, I want Lukashenko out before Belarus is a nuclear power. Right now, we could affect regime change without nuclear consequences. That option leaves the table soon.
>This whole situation is so surreal and disappointing. I grew up on Star Trek and somehow I just though we had (almost) arrived in a post-war, federation-like world. We know things should be solved with words because otherwise there are only losers. It’s how we raise our kids.

I too am a trekkie and we could still obtain this vision.

So far only world sanctions have been brought against Russia.

If the Russian people rise up and protest/overthrow their government. It would tell the world that such extreme sanctions are enough to crush a nuclear power and prevent war. That we are indeed post-war. That borders become less important. Instead of war, we take that money and invest in ourselves. We start building tall.

If the Russian people don't do this. It means we are not post-war. It means we haven't broken the cycle. It means in about 2100, the cycle hits again and we have another massive war.
I wish Amazon had released one in this size. This goes onto to show how bad monopoly of Amazon is for e-reader category.
Regarding Poe, specifically "The Bells", since many associate him solely with psychological horror or early mysteries and this is a departure from that:

https://poets.org/poem/bells
Depends on where you are. I think in Europe it is more important than in the US.

But I see anything above Bachelors as a personal preference (with a few exceptions). If you want to finish PhD, then go for it.
See if you can transfer to the data engineering team. They do a lot of coding and you DS background is a big bonus as DS is a client of DE.

I recently completed the transfer from BA to BI and then to a BI that does DE job.
An Introduction to the ViewComponent Gem
I have a Ph.D. and am not in academia. The higher degree opens up opportunities for challenging positions, but you will probably need to show basic SWE capabilities also
"go run" has almost replaced homebrew for me.

Some advantages:

* Works on every system with golang 1.17.x installed
* Supports "latest" and explicit version "pinning"
* Awesome for scripting, no install step necessary

For example, I like to use both yq 3.x and yq 4.x

go run github.com/mikefarah/yq/v3@latest

go run github.com/mikefarah/yq/v4@latest

Disadvantages:

* An index of "go runnable" cli programs would be helpful
* Doesn't work if go.mod contains replace directives
I would be happy to try Librem 5, but I looked at the specs a few days ago, and just...

It was mid-spec a half decade ago, and hasn't changed since. You're really paying a lot for that old hardware. This won't help adoption.
I want a work life balance, I don’t want to live in the shitty Bay Area, I don’t want to grind leetcode, I don’t want to work with the kind of people who post on blind or levels.io, and mostly I just don’t have to.
> Blindly distinguishing people by nationality is the first step to Nazism.

Come on now, that's not even factually correct. One of the first things the Nazis did was launch an unprovoked attack on an eastern european nation.
> But countries like Russia would be free to invade Ukraine and others because of the "don't interfere" and "don't take a side" policy.

The "don't interfere" policy would also apply to Russia. And if they still try, the others would be responsible not to let them interfere. In the same way as others would need to stop China, USA, and Zimbabwe when they attempt to interfere with another sovereign state on the lesser level of development.
Oligarchs don't have a ton of cash - the VAST majority of their assets are either in the Russian companies they own majority stakes in (which are down 50-90%) or overseas (which have been frozen and are actively being seized).

It's pretty hard to take all $80Bn from a foreigner. Especially without destroying a lot of value for other people.
Did they really just reinvent CGI and sell it as SaaSS?
I wish that some reputable, long-lived service (like the Internet Archive) would offer free subdomains that users could set DNS records for and point to anything. Alternately, one of the TLD could provide free, low-value domains, like 2039483953-Alice-Bobson.com. Domain names are cheap, but there are a lot of people (e.g. teenagers) out there who are averse to spending money on anything. They end up posting under *.blogspot.com or whatever, which permanently ties them to a particular host and content management system unless they break any links to their content.
Agreed. Speaking as someone who has hired hundreds of software engineers, I can tell you that having a degree at all tells me a lot about your work ethic. Sure, I'd prefer a comp sci background, but your degree is nearly as good. It's an indicator of how you think.

You know what other degree I see a LOT of in SWE? Music. I've hired countless music majors.
It's absolutely unusable on my iPhone with increased UI size.

https://imgur.com/a/Eroiblj
How does it become problematic? You just pass in dependencies as arguments to functions or components.
Yep. One of our most used products is a Django site and it’s been on a 2gb server with MySQL and celery since 2013. No problems at all. Also 0 downtime, literally. Sometimes you get lucky!
There's a bit of a history of this; notably, the Germans really did seem to have extremely unrealistic expectations of progress vs the Soviet Union in WW2. At least in that case there was a lot of drinking their own koolaid going on; the anti-Soviet propaganda was so intense that the leadership started believing it.
Yeah, pi-shaped is a definite improvement -- at least when written. When spoken, it might be heard as "pie-shaped", which would be confusing ;)
> how this distinction is important

It's not. At least not in the short term.
a soviet is not a russian

the modern russian has traits of a soviet but is a different person

plus the actions of a country’s leaders do not represent the entire will of the people
> Micro-USB (USB 2.0)

I love the idea of the phone but having micro-usb instead of usb type-c is IMO a substantial caveat. I do love the idea of a 'dumbed' down smartphone with a large battery capacity though...

EDIT Can it be true that the base model gets Bluetooth 5.0 but the range topping model C21 Plus only gets 4.2? Can someone enlighten my on the reasons for this?
The work may sometimes involves SQL, and that's very good knowledge. You can get lost in optimizing the queries, and it can even become it's own line of work. We used to call them DataBase Administrators, and I guess the job may still exist somewhere. However, you should be careful a lot of places in the industry are actually hiring for a position called Data Analyst which is sometimes confused for Data Scientist, or the reverse where an analyst is hired for DS role...

Finish your degree, obviously... you can pivot to other jobs if you like, but once you find a real DS role it may improve.
And government contractors. We got a questionnaire asking if we use any Huawei products at our company.
And what exactly is "money" and how is it "transfered" via messages?
I wouldn’t buy Huawei toilet paper let alone a tablet I might write something on.

I made the awful mistake of buying one of their phones back when they partnered with Google for one of the nexus phones. Horrible device, and probably full of communism too.
Chewy: A High-Level Elasticsearch Framework
Read my above viewpoints as a UX professional about the 50 day sync "feature".
Ukraine’s Volunteer ‘IT Army’ Is Hacking in Uncharted Territory
As long as the feature doesn't exist, people have to make websites that work without it. As soon as it does, people will instead switch to obnoxious interstitial screens telling and/or insisting that you enable push notifications or whatever to continue using the thing.
Thanks, yeah, that works and I think I'll adopt it. :)
To be fair - birds have this problem too and even humans bump into closed balcony doors.

Its more about glass being transparent and all than intelligence I would imagine.
This is a good point but: (1) what happened was considered unthinkable by many, (2) the wold has changed which allowed those sanctions and (3) the idea was not to 'rock the boat' and saying if you do this we will do that could have allowed for the Russian side to plan better playing into their hands and might have encouraged them to start a war.

So this is easy to say now, but I don't think there would have been any takers for this three weeks ago when for instance Germany was still firmly in the mistaken mindset that all of this is so unlikely that they don't need to prepare for it at all.
I dislike bureaucracy, politics, HR
You may need to think about how you implement asynchronous side effects. Declaring them with useEffect quickly gets annoying. Look for things like thunks or saga. Or when not using Redux, at least think about using async functions.

In general I want to keep async logic out of my components as much as possible. I also don't want the component rendering to drive the async logic.
With such a small threshold of effect (able to do 30 minutes of lifting per week / not doing anything), are they able to distinguish correlation from causation here?
They are choosing to stop doing business with the country dropping bombs on their employees and their homes. I didn’t read any grandstanding into it, just an expression of moral obligation toward their employees.

That’s about as cut and dried as it gets.

I think people on this board get very much caught up in the business aspect and fail to see the human side that is driving these actions.
Don't use JWT: https://fly.io/blog/api-tokens-a-tedious-survey/ (by @tptacek)
There are many, many pictures of unexploded submunitions lying around and plenty of videos of their use.
The post you're replying to says they've read the docs many times.
It's an electronic notepad. I'm not paying a monthly subscription for what should be basic features and can be performed on-device. Sorry.

Enterprise features like integration with enterprise software, SSO, MFA etc? Totally different, and happy to pay.
iPads are not e-ink devices

which make them worse in almost every way to do the things an e-ink device is built for.
I simply ignore as much as I can. Some information(especially military) are not supposed to get out to public without tampering.
Soldering thru hole components is charged by the pin by the fabs. Header might be adding almost $1 to the BOM.
Agreed, but your original comment didn't really provide that context.
I see a lot of local effort in FinTech and in Health/MedTech. I think it's because both markets usually have a massive amount of local (i.e. national) legislation and bureaucratic red tape, making international solutions less applicable than solutions from the local market.

I actually expect to see the same happening with cloud services. Don't be surprised if Google, Amazon and Microsoft cloud services are driven out of the European market, because privacy laws make it illegal to host data on a Non-EU owned company (current rulings effectively already mean this, we are just short of really enforcing it. c.f. Schrems II).
What helped me a lot was moving everything from "X is..." to "Y claimed X is..." thinking. Then it's easier to spot groups, research them, assign them some mental trust level per-topic, adjust it later, etc. There's nothing wrong then with always keeping "but they may be wrong" in mind. But you'll find a reasonable consensus on reality with time.

Also backing out of stupid places quickly is great. I.e. don't confuse a post on Twitter from someone you trust with the responses to that post. It's going to be almost completely trash if the original poster is even semi-known. They exist in the same area, so need active mental separation.
I mean I hate JS as much as the next person. Also, for my blog I wanted to use as minimal JS as possible. But when it comes to a sidebar I don't think adding a few lines like this is soo bad.

<script>
const button_close = document.querySelector('#menu-button-
close');
const button_open = document.querySelector('#menu-button-
open');
const menu = document.querySelector('#menu'); // Menu

button_close.addEventListener('click', () => {
menu.classList.toggle('hidden');
});
button_open.addEventListener('click', () => {
menu.classList.toggle('hidden');
});
</script>
Your code snippet assumes that your C compiler is just a high-level assembler. But it's not - it executes against a theoretical C virtual machine that doesn't know about about forking. It's allowed to generate some non-obvious code so long as it acts "as if" it has the same behaviour - but only from the point of view of that theoretic C VM.

For example, in theory _exit(1) could be implemented as longjmp(...) up to a point in some compiler-created top-level function that wraps up main(). Then that wrapper function could perform some steps to communicate the return code to the OS that trashes the stack before actually exiting. After all, if the process is about to exit anyway, what difference does it make if a bunch of memory is fiddled with? We know the answer to this but, from the point of view of the C virtual machine, it's irrelevant.

That particular scenario is unlikely but the point is that compiler implementations and optimisations are allowed to do very non-obvious things. You're only safe if you stick the rules of the C standard, which this 100% does not.
Lol, I also received this message. I've lived in Poland for the past 31 years and am also busy volunteering with help to Ukrainian refugees. I never voted for anything related to Russia, because I'm not a registered voter - I don't have a "propiska" (legal address in Russia) since 1995.
Very incompetent move, Mr. CEO of Namecheap. I understand you want to get likes on social media and get rich on this hype. Instead I'd recommend donating money to real causes, like help on the Ukrainian border, food, medicine, migration attorneys.
Your move is empty and stupid.
Match the response to the threat:

1) we don’t know how bad it is and we have nothing to counter it.
2) ok, it’s not terrible for some, some existing drugs counter what seems to be the fatal mechanism. Boy we miss grandma.
3) 10+ year research yields vaccines which is amazing. Fortunately they appeared before it turned worse.
4) lots of people didn’t take the vaccine and it turned worse. Damn.
5) the world rolled a 20 and with the help of another species or hiv-infected jump it turned mild. Well, mild for those vaccinated. Pity stupid loudmouths keep dying. And, it was infectious as hell which (hopefully) turns it endemic.

Men in Black said it best: A person is smart, people are dumb, panicky animals. Society, for the most part, moved to protect people in spite of themselves. The hated pharma business applied its 10-20+ years of expertise in antibody-based drugs. Public health used the lessons of SARS and MERS to quickly act vs cytokine storm. Policy whiplashed due to the lack of collaboration in politics - opposition merely gainsaid actions.

Before you pat yourself on the back or imagine all that was unnecessary (remember grandma?), imagine if covid turned out to be a contagious SARS that beat up people 30-50.
> Russia also worked with Nazi Germany before being invaded themselves in WW2.

So did Poland and other countries. It's not always easy to avoid the beast. India does have the most pro-West government it has seen till now and is already sending medical supplies to Ukraine. I am certain that they have taken a note of Russian atrocities and will take steps to gradually wean off Russia dependence. But it's not something you can do in a day or month.
I recently bought a $20 Firefox OS phone from CVS. It's one of the best phones I've ever owned: removable battery, hardware keyboard, absolutely no bloatware or spyware, fast and responsive UI, apps are all very tiny. There are options besides Android and iOS and you don't have to go full Pinephone either.
Try and remember that it’s not about you. People and their homes are being bombed out.

Their boss decided to align with them over a dollar. A rarity in the corporate world to be sure.

It’s inconvenient for some people, but that’s about all it is.
That is an utterly bizarre rejoinder. JSX has always been (and afaik still is) optional and extremely thin syntactic sugar. It’s little more than a convenience macro (so that views can look a little more like the markup equivalent).

It has no intrinsic semantics, and maps pretty much directly to actual javascript (which you can write directly or use an alternative helper for — hyperscript being a common one).
Can we take this offline for reasons that will become clear in a moment: jacques@modularcompany.com
Switching from DS to SWE will not be very hard for you I dont think. Additionally having the DS background can make you extra marketable, especially for smaller companies where a broader skillset is more valuable. If you wanna get some skills with SWE, I would build & deploy some project. Dont worry about the business side but building a rails or nodejs project from scratch and figuring out deployments etc will give you a lot of answers to interview questions.
Let's say these properties were seized/repatriated/otherwise off limits to Russian oligarchs. Would that move the value on them at all? If so, would it have any effect on more day to day real estate values?
> In React, your component can fit within a single file

Furthermore, a lambda local to a function can be a full-blown component (visible in DevTools etc.).

So if you need a component that is used in only one other component, you can neatly encapsulate it and make it invisible from the outside, which can be useful on occasion.
As an alternative, I am extremely satisfied with the A5X from Ratta Supernote.
The latency when writing is as good as the RM2.

[0]: https://supernote.com/
> , but I'll never have a clean conscious knowing my money is by extension financing terrorists

We should all stop buying American products as well, especially Apples'

https://www.theinformation.com/articles/facing-hostile-chine...

I very much prefer China to any American Corporation
> "glacable"?
The truckers caused disturbances for two weeks while Trudeau's lockdown measures caused disturbances for two years. Living in a country - Sweden - which followed a different path for a similar outcome in SARS2-related I can wholeheartedly say I would take the trucker's disturbance over Trudeau's any day.

Also, blocking bank accounts of people who donated to those truckers which was not in violation of any law whatsoever? Welcome to the new world. What little trust those people had in societal institutions will have been erased now.
My browser didn't remember the dark mode checkbox state after reloading.
Ask HN: VPS Providers in Russia
As internet access is getting further restricted in Russia, I think there are those among us who would be happy to try doing their part by helping people in Russia communicating both internally and externally while staying, evade censorship and maintaining privacy.

Examples:

https://github.com/signalapp/Signal-TLS-Proxy (is there something similar for TG?)
https://snowflake.torproject.org/

What are some places where one can acquire IP and/or compute in Russia?

People in Russia: Apart from Tor and Signal, what else do you feel needs to be bridged?
If there is a war anywhere, it effects everyone, globally.

I don't get why this is such a hard concept for people to understand.
Can only agree with this article! Details/summary, position sticky and the checked toggle are my favorites (position sticky needs some attention though).

It pays of to check for new HTML and CSS tags/functions once in a while. Have been a (web)developer for some years now, and it's only since recently that I found all these things. The amount of JS that I could ditch was astounding to me. Just liberating.
> If you can’t get 60fps on a midrange consumer device you are doing something wrong.

Show me how to reliably do 60 FPS on anything that causes re-layout. Example: animating an item added or removed from the list without hacks.

> WebGL / Canvas are web standards, no issue with using them.

1. Accessibility

2. These are basically native technologies. So, you're basically using native tech, with extra steps

3. Between WebGL, Canvas and upcoming WebGPU you have three incompatible technologies with a list of shortcomings longer than the equator
This. And because it uses phone numbers, more people I know are less reluctant to switch to it.
> Wars for redrawing borders have really become exceptionally rare

Since Yalta-Potsdam conferences world doesn't recognize the right of conquest.

Since Peace of Westphalia historical grounds for aggression were not valid.

In his speech Putin dived directly to Rus, denying centuries of political development.

That is the main reason Russia is dangerous to everyone: not because of an attack on Ukraine, but because of dismantling the current world order.

WW3 is not "Russia against the world". WW3 is every country seeing the possibility of quietly entering the fry and getting out in a better position.
First, as everyone here said: finish your degree, it will surely help with relocation and job search.

I have a very similar experience to yours (didn't like the analytics side of Data Science) and my advice would be to look into ML engineering roles. ML engineering is heavily SWE-oriented, sort of an intersection between Data Science and Software Engineering. I switched to ML engineer and I totally love it, you get to learn tons of cool SWE stuff (Docker, kubernetes, linux, cloud, ci/cd) and you're still close to newest ML research, which I love :)