HN user

lj3

1,746 karma

hn@lj3.me

Posts31
Comments880
View on HN
twitter.com 7y ago

Jonathan Blow on Linux Game Development

lj3
4pts0
news.ycombinator.com 7y ago

Ask HN: What's the best UI creation method of all time?

lj3
4pts9
caseymuratori.com 7y ago

Killing the Walk Monster

lj3
1pts0
www.youtube.com 8y ago

Video: Designing Library imports for a new language

lj3
3pts0
www.targetprocess.com 8y ago

Agile Development Process: 10 Years of Evolution

lj3
17pts0
www.businessinsider.com 9y ago

Journalists' brains show a lower-than-average level of executive functioning

lj3
2pts0
www.sizefivegames.com 9y ago

How to Survive as a Solo Dev for Like a Decade or So

lj3
432pts164
soundcloud.com 9y ago

Code Podcast 6: Don't make me write UI

lj3
1pts0
www.washingtonexaminer.com 9y ago

Trump fires acting attorney general: She 'betrayed' the DOJ

lj3
20pts4
shakycode.com 9y ago

The Story of the Fraudulent Coder

lj3
1pts0
www.nbcnews.com 9y ago

France's National Front Finds Support Among Millennials

lj3
3pts0
www.express.co.uk 9y ago

Map reveals shocking extent of migrant sex attacks on women and children

lj3
4pts0
infogalactic.com 9y ago

Show HN: Infogalactic

lj3
3pts0
blog.interviewing.io 9y ago

Technical interview performance really is kind of arbitrary

lj3
1pts0
www.realtruenews.org 9y ago

Inside Correct the Record: Post-Debate PLOT

lj3
1pts0
blog.johnnovak.net 9y ago

Cross-Platform GUI Toolkit Trainwreck, 2016 Edition

lj3
3pts0
arielelkin.github.io 9y ago

Why I'm Not a React Native Developer

lj3
5pts0
www.youtube.com 9y ago

The Legend of Zelda Ultimate Glitch Explained [Arbitrary Code Execution]

lj3
3pts0
derekthewolf.com 9y ago

How the Alt-Right Prevented a Potential Hate Crime

lj3
4pts0
medium.com 9y ago

The most bizarre technical interview I went on

lj3
38pts33
medium.com 9y ago

Twitter Censorship

lj3
1pts6
news.ycombinator.com 10y ago

Ask HN: How would you improve Twitter?

lj3
4pts6
www.zamiang.com 10y ago

Why I Don't Do Live Coding Interviews

lj3
5pts6
begriffs.com 10y ago

Returning to the Original Social Network

lj3
4pts0
blog.dilbert.com 10y ago

Why Gun Control Can't Be Solved in the USA

lj3
10pts2
www.wsj.com 10y ago

How Journalists Tried to Suppress the News

lj3
1pts0
www.gdcvault.com 10y ago

Fast Iteration Tools in the Production of the Talos Principle

lj3
3pts0
eev.ee 10y ago

One year later (followup to “I quit the tech industry”)

lj3
6pts0
news.ycombinator.com 10y ago

Ask HN: In an alternate world, how would you re-create the web browser?

lj3
2pts0
medium.com 10y ago

Why hiring is broken and how to fix it

lj3
2pts0

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.

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.

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.

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

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.