HNHacker News
TopNewBestAskShowJobs

lj3

1,746 karma · joined April 27, 2016

hn@lj3.me
submissionscomments
lj3··on The “10,000 Hours of Practice” Myth
Please don't commit the genetic fallacy here of all places.
lj3··on Making SetInterval Declarative with React Hooks
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.
lj3··on Don’t Romanticize the Present
> 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.

lj3··on Browser diversity starts with us
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.

lj3··on Making SetInterval Declarative with React Hooks
> 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.

lj3··on Making SetInterval Declarative with React Hooks
> 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.

lj3··on Making SetInterval Declarative with React Hooks
> 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.

lj3··on Browser diversity starts with us
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.
lj3··on Windows 98 Icons are Great (2015)
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.
lj3··on T.S.A. Agents Refuse to Work During Shutdown, Raising Fears of Airport Turmoil
> 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.

lj3··on Marc Andreessen: VR will be 1,000 times bigger than AR
I think 3d holographic projections will be bigger than both.
lj3··on Game dev: Linux users were only 0.1% of sales but 20% of crashes and tickets
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.
lj3··on Boom Supersonic raises $100M, aims for 2019 test flights
> 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?

[0]: https://news.ycombinator.com/item?id=8863

lj3··on Excercise in futility – Why exercise alone won't save us
Don't forget a blood boy. You gotta have a blood boy.
lj3··on What Foods Are Banned in Europe but Not Banned in the U.S.?
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.

lj3··on Fast and accurate object detection in high resolution 4K and 8K video using GPUs
Human labor is still cheaper and more consistent than current AI and ML systems.
lj3··on Ask HN: What skills to acquire in 2019?
interesting. Thanks!
lj3··on Ask HN: What skills to acquire in 2019?
> The end of copper clad fiberglass boards are in sight

Where can I read more about that? My google searches have not been fruitful.

lj3··on Iron Is the New Cholesterol?
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.

lj3··on Social media password, search history could be required to buy firearm in NY
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.
lj3··on Judge Sides with Police in Parkland Slaying: LEO Has No Duty to Protect Students
What's the alternative? Arming the kids?
lj3··on Judge Sides with Police in Parkland Slaying: LEO Has No Duty to Protect Students
This already exists. It's called a concealed carry permit. Giving somebody who has no law enforcement powers a badge is a bad idea.
lj3··on Forget Fortnite–my son is still obsessed with Minecraft
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.

lj3··on From macOS to Windows and WSL
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.
lj3··on LG Releases Gram 17 Laptop: An Ultra-Thin Notebook with a 17.3in Display
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

lj3··on LG Releases Gram 17 Laptop: An Ultra-Thin Notebook with a 17.3in Display
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.
lj3··on LG Releases Gram 17 Laptop: An Ultra-Thin Notebook with a 17.3in Display
This. A non-centered keyboard, a non-centered trackpad and the lack of trackpad buttons makes this a no go for me.
lj3··on A comparative study: tongue muscle performance in weightlifters and runners
Same here, but there's no sense trying to convince the people here that.
lj3··on A comparative study: tongue muscle performance in weightlifters and runners
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.

lj3··on Type 2 diabetes: NHS to offer 800-calorie diet treatment
What do you eat most of the time? Meat and veggies?
Page 1 of 30Next →