Please don't commit the genetic fallacy here of all places.
HN user
lj3
hn@lj3.me
I do not imply the use of Context. useState() hooks into the local state of whatever component runs it. For example, if you have the following hook:
function useMagicNumber(default) {
const [magicNumber, setMagicNumber] = useState(default)
return [magicNumber, setMagicNumber]
}
And the following two components that use said hook: function ExampleA({}) => {
const [magicNumber, setMagicNumber] = useMagicNumber(1)
console.log(magicNumber) // 1
}
function ExampleB({}) => {
const [magicNumber, setMagicNumber] = useMagicNumber(2)
console.log(magicNumber) // 2
}
ExampleA and ExampleB share the same code that's run in the hook useMagicNumber, but the state reflected is unique to the component.I expected a deeper dive into the complexities of these arguments.
Public intellectuals are attempting to appeal to the public at large, the majority of which don't change their minds based on new information. They change their minds based on how that information makes them feel. Trying to convince most people to change their minds with a complex argument is a lot like trying to convince most people to change their minds by talking in Italian instead of English.
Maybe something similar to what we have now, but exposes much lower level aspects of the browser and gives you more fine grained control over it. WASM is a good starting point in that it lets you use whatever language you want. Now, we need a browser API that will let us draw directly to the window if we want to. I think a lot could be accomplished by creating the UI portions of a site programatically then dumping the content into a "renderMarkdown()" function.
That's just my idea, though. Hopefully, the current sad state of the web and the coming browser monoculture will spur others to experiment too. I know some gaming companies have experimented with the distributing and executing of x64 binary executables using the browser. I know others are looking into ways to chop up and do progressive loading on binary executables.
as multiple independent components might want to share state or listen to shared events, etc.
If you recall, I said...
Hooks are great because it keeps the state local, but it can be re-used across components if we need to.
The use case you just defined is exactly why hooks were created.
am simply using redux to manage all state
This only works in small apps. I work on a medium sized app at work and we started that way too. It becomes a huge, sloppy mess in short order. Putting everything in Redux is akin to a desktop application that uses nothing but global state. Hooks are great because it keeps the state local, but it can be re-used across components if we need to.
UI has typically been considered one of the areas where OOP is well suited for
Without any evidence to support it. It's one of those phrases that gets repeated without critical thought.
This could be a huge opportunity. We have a web monoculture now. It's only going to get increasingly so over the next few years. Google will let the platform stagnate, as it has little to no reason to compete. It's time to come up with something better. Something designed for both documents and applications.
I wonder if we'll see a resurgence of "real work" ui for desktops and laptops now that most of the "everyone else"/"the mainstream" has shifted to mobile.
and bring the country to a grinding halt.
And if it didn't come to a grinding halt? They risk demonstrating how worthless their jobs are.
I think 3d holographic projections will be bigger than both.
Can confirm. I fondly remember late nights hacking the Gentoo kernel so my college radio station could reliably live stream shows via icecast and darkice.
Yikes, when did HN become so full of haters?
Since at least 2007. I'm sure we all remember the warm reception the Dropbox Show HN[0] got?
Don't forget a blood boy. You gotta have a blood boy.
I would love to if the US had the same food quality laws that European countries have. By HN standards, I'm a right wing nutcase and am in favor of as small a government as we can stand, but our food is killing us.
Bread has sugar in it. If you want bread without sugar in it, you must either pay more for the organic stuff or make it yourself. If you want bread without any additives or preservatives at all, you must buy your wheat from outside the country. Wheat in the US is fortified with iron and vitamin B by law.
Human labor is still cheaper and more consistent than current AI and ML systems.
interesting. Thanks!
The end of copper clad fiberglass boards are in sight
Where can I read more about that? My google searches have not been fruitful.
I hate to be that guy, but... https://news.ycombinator.com/item?id=15703544
There's a reason enrichment of foods is illegal in most of Europe.
Initially, I balked at your suggestion that the 3rd amendment is not relevant anymore. Then I thought about it for a few minutes and realized you're right. In the age of 4th generation insurgency warfare, housing your military in private homes is a very, very bad idea.
What's the alternative? Arming the kids?
This already exists. It's called a concealed carry permit. Giving somebody who has no law enforcement powers a badge is a bad idea.
Exactly the same here with my 4 nephews (into minecraft, distracted by breath of the wild for a bit, then back to minecraft) with one exception: they're also into all things lego.
My niece, which is the same age as two of the nephews, is far more into her dolls than video games. Although, she does like the occasional game of mario kart or kirby and the rainbow curse.
Have they fixed the git corruption issue yet? I switched from WSL to MacOS specifically because, if the computer blue screens while I'm working in WSL, something in the .git directory corrupts itself and I have to check out the repo again.
I worked my way through grad school with a 17 inch macbook pro. I would work in between classes by sitting in a chair in the lounge, putting the laptop on my lap and working. The height of the arms of this one chair was perfectly level with the top of the laptop. The angle of the chair back put the screen straight ahead in my vision. The ergonomics were almost as good as working at a desk.
Ikea doesn't sell that chair anymore and apple doesn't sell that laptop anymore. sigh
It's an ergonomics nightmare. You use the keyboard infinitely more than you use that trackpad and a good, solid keyboard is the only advantage of using a laptop over a tablet these days. It makes no sense to compromise the primary functionality of the laptop for something that rarely gets used.
This. A non-centered keyboard, a non-centered trackpad and the lack of trackpad buttons makes this a no go for me.
Same here, but there's no sense trying to convince the people here that.
You can still do cardio and maintain muscle mass. Sprinting is better than running miles and miles.
But, if you want to run marathons or triathlons, google "alex viada the Hybrid Athlete." He's a bodybuilder who maintains his muscle mass and strength while also doing triathlons. He has a background in biochemistry and works in pharmaceuticals. At least he used to. I'm not sure if he still does.
What do you eat most of the time? Meat and veggies?