Correct, but the callback passed to useEffect is only scoped to the call stack triggered by the dependency array. So, this makes the callback passed to useEffect dynamically scoped.
Basically every call of a functional component MyComponent() represents a new scope. When you're working with a hook such as useEffect(), you have to pay attention to the dynamic scope so and correctly trigger the useEffect() with the dependency array.
I just wanted to note that most of Westworld is shot in Downtown Los Angeles! I love that he mentions this though because futuristic worlds in the show have been amazing.
IMO there's still a lot of room for Snap to do something. They still have an opportunity to seize, same for Twitter.
For example, there's a subset of content creators on Snap that charges for premium content (a separate private account w/ more content). Subscription and payment is done outside of the Snap app. Cancellations and payment confirmations are all done manually. I'm not even sure if Snap realizes this but they can totally make money off of it.
Now that Evan is being more open and less dictatorial, someone will notice and bring opportunities like these to his attention.
This hardware should have been here in the previous iteration. Also, I've yet to meet a single person who fancies the touch bar. It's now just something that's tolerated. Bring back the hard keys, shorten the oversized track pad, and add a shorter touch bar to the top if you really want to keep it.
Yeah I'm not surprised. It's really hard to track how any online advertising leads to B&M purchases. On the flip side, I have no doubt online retailers thrive with Faceboook ads.
I genuinely believe that advertisers are only pulling out because it's the PR thing to do. There are many other companies that would love to take advantage of a less competitive bid for Facebook ad space and I have no doubt they will be taking advantage of it and will continue to spend boats of money on Facebook.
Wow what a coincidence, I actually just had a terrible experience at McDonald's yesterday. I tried ordering through the mobile app and they got my order wrong. When I went to get this fixed, the employees were busy fixing 3 other orders they had wrong. There's a ton of room for human error when electronic ordering allows for more customization.
I can also see the reason for slowdown. Before, they had a cashier queue to control the flow of orders. Now with mobile and kiosk orders, they've pretty much tripled their traffic of orders while keeping fulfillment the same.
I joined in college and HN has always been a leading indicator of technology for me. At first I was a lurker and around 2009 all I saw were articles on Rails and Bitcoin.
Fast forward 5 years of time wasted by a young adult and Bitcoin becomes a missed opportunity (I know, still wasn't, but how could anyone know for sure?) meanwhile Rails hype plateaued here on HN.
Anyway, now anytime there's heavy mention of anything, I do my fair share of due diligence and have been a lot more successful because of it. Thanks HN!
I would never deep copy using any of those methods. Can't you just write your own recursive version? I remember plenty of examples on jsPerf (site not working at the moment) including my own that significantly outperformed JSON parse/stringify.
I'm surprised I haven't heard anything along the lines of Ajit being hacked or receiving death threats.
My only hope from this is that as soon as cable companies start their bullshit, people become aware of how this all happened and maybe we can reverse the damage in the long run. I'm also hoping things like Google Fiber get more aggressive or Musk keeps his promise of launching his internet satellite.
Oh my god I went into the comments section to post exactly this! It makes me curious how they determine when to show a street name. Honestly, all I want is at all times the center of my screen should show its street name. That's it. Sometimes I find myself zooming in and out of the very center of my screen and it refuses to show the street. Instead it shows the names of nearby streets I don't care about. Sometimes I'm on the damn street and I just want to know what street I'm currently on. It really does feel arbitrary.
They'll probably be more effective to be honest. Anecdotally, I've encountered nothing but incompetence when it comes to getting help from Walmart store employees. When asked where I can find something their response is usually "somewhere in that area" while pointing broadly.
This is very impressive. I don't have to labor anymore over tediously designed landing pages with slick animations. This looks like it's as easy to use for designers as After Effects.
It sounds like in addition to delivery services where margins seem pretty tight, they offer cloud kitchen services that partnering restaurants can use to expand.
Would you prefer a different language or just a better answer? From my perspective, I don't see how the language makes a difference. In security, you have way more to worry about before even considering an application's underlying implementation language.
I think static vs. loosely typed both have their pros and cons but that's the thing that's great about the Javascript community. It's not opinionated on things like this. So if you want statically typed, then you can code in Typescript.
This is in contrast to something like Rails which is super opinionated and doesn't give you much of a choice if you as a developer or even as a company as a whole were to disagree with these opinions.
Because it's not opinionated, it all depends. IMO the code base where I work is very complex but it's very easy to onboard new engineers with it. This is due in part to enforcing documentation and code style guidelines.
Unrelated to the article, but WOW did anyone else see the giant full view height ad video at the top? I have ad blocker off for NatGeo. It's followed by a giant banner. I can't imagine how much crazier ads have been getting and most of us don't even notice 'cause we have ad blocker.