Readit News logoReadit News
lj3 commented on The “10,000 Hours of Practice” Myth   greyenlightenment.com/the... · Posted by u/paulpauper
amvalo · 7 years ago
This blogger is not very credible... have a sample of some of his other posts

http://greyenlightenment.com/2017/12/

lj3 · 7 years ago
Please don't commit the genetic fallacy here of all places.
lj3 commented on Making SetInterval Declarative with React Hooks   overreacted.io/making-set... · Posted by u/clessg
jypepin · 7 years ago
Are you implying the use of context when you say that hooks allow you to re-use state between components?

Legit question because I don't know hooks very well. To my understanding, hooks are just syntactic sugar to use and update local state in a function component. How does that help you share state between components?

lj3 · 7 years ago
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 commented on Don’t Romanticize the Present   thefrailestthing.com/2019... · Posted by u/imartin2k
40acres · 7 years ago
As someone relatively new to following "public intellectuals" (think Tyler Cowen, Jonathan Haidt, Pinker, etc.) I've been surprised at who reductive their arguments seem to be.

There is a lot of talk among this class of people regarding the current state of debate but as in many cases I've seen examples of two people who are absolutely grounded in their beliefs and use straw man arguments, diversion and reductive reasoning to defend their points. If you ever listened to the Ezra Klein v. Sam Harris podcast you know what I mean.

This isn't the first occasion that I've seen someone rebute the philosophy of Pinker's work only for him to double down on the same argument. I guess I shouldn't be surprised because persuasion is difficult in general, but I expected a deeper dive into the complexities of these arguments.

lj3 · 7 years ago
> 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 commented on Browser diversity starts with us   zeldman.com/2018/12/07/br... · Posted by u/ccnafr
Yoric · 7 years ago
Do you have any starting point?
lj3 · 7 years ago
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 commented on Making SetInterval Declarative with React Hooks   overreacted.io/making-set... · Posted by u/clessg
jypepin · 7 years ago
I would disagree with you and say that from my own experience (not saying your experience is wrong obviously) it's quite the opposite; in small applications, using local states is fine, but as soon as your application grows, having everything inside a central store makes everything cleaner and much simpler, as multiple independent components might want to share state or listen to shared events, etc.
lj3 · 7 years ago
> 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 commented on Making SetInterval Declarative with React Hooks   overreacted.io/making-set... · Posted by u/clessg
bestest · 7 years ago
From my experience I found this kind of separation to be somewhat redundant and am simply using redux to manage all state — both global and local context.

This also means that components are simply components, and setTimeouts and everything else is moved out to redux thunk actions. Which makes hooks totally unneeded in my case.

lj3 · 7 years ago
> 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 commented on Making SetInterval Declarative with React Hooks   overreacted.io/making-set... · Posted by u/clessg
goatlover · 7 years ago
Maybe React hooks are a bit different, but Drupal was heavily hook based, and then starting going away from that in favor of Symfony components in recent years, which are class based and utilize inheritance. Also, UI has typically been considered one of the areas where OOP is well suited for, from Smalltalk to the Web DOM.
lj3 · 7 years ago
> 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 commented on Browser diversity starts with us   zeldman.com/2018/12/07/br... · Posted by u/ccnafr
lj3 · 7 years ago
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 commented on Windows 98 Icons are Great (2015)   alexmeub.com/old-windows-... · Posted by u/maxmouchet
tomc1985 · 7 years ago
This is true but users also frequently complained about the number of items on screen at once. I love high-density UI but I think the web and modern design has trended the way it has because focus groups/"everyone else"/"the mainstream" kept saying they were overwhelmed.

Now the prevailing trend is this Fischer-Price children's-toys minimalism, with bright shiny colors and cute mascots. It's insulting

lj3 · 7 years ago
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 commented on T.S.A. Agents Refuse to Work During Shutdown, Raising Fears of Airport Turmoil   nytimes.com/2019/01/11/ny... · Posted by u/smacktoward
joezydeco · 7 years ago
All 51,000 agents should stay home for one week and bring the country to a grinding halt.

That would result in some progress from Congress.

lj3 · 7 years ago
> 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.

u/lj3

KarmaCake day1746April 27, 2016
About
hn@lj3.me
View Original