HackerTrans
TopNewTrendsCommentsPastAskShowJobs

_benton

no profile record

comments

_benton
·vorig jaar·discuss
Hahahaha this got me. My sarcasm/satire detectors are clearly malfunctioning today...
_benton
·vorig jaar·discuss
You can also schedule code to run each "tick" of the event loop, which is a non-blocking version of a while loop.

Or you could promisify the send function and use normal async/await.

   let q = Promise.resolve(),
     sendAsync = (p) => new Promise(r => send(p, r)),
     sendOnce = (p, c, ms) => setTimeout(_ => q.then(_ => sendAsync(p)).then(c), ms)
Or you could actually spin up a new worker thread and get multithreading :P
_benton
·vorig jaar·discuss
JS has an event loop, it's single threaded but still lets you write asynchronous code.

let send = (payload, callback) => fetch(...).then(callback)

fetch() returns a promise synchronously, but it's not awaited.
_benton
·vorig jaar·discuss
Fascinating article. It's think the author's experiences are fairly context-dependant, with where you live, the political leanings of your social circle, your online community etc. But I have noticed an increase in the pathologizing of normal human behaviours and traits. Maybe not all character flaws should be fixed.
_benton
·vorig jaar·discuss
I find it really fulfilling to meet strangers but I need to be in the right headspace and it needs to be the right atmosphere.

"Every person you look at, you can see the universe in their eyes -- if you're really looking." -- George Carlin
_benton
·vorig jaar·discuss
Yeah fair enough :)
_benton
·vorig jaar·discuss
I'm introverted and I enjoy networking and group activities and also meeting and chatting with strangers. I just can't do it all day every day, I need breaks.

Having social anxiety is different from not knowing how to talk to people and make friends. Bill Russel would get so worked up before games he would throw up. But he could also perform.

I think it depends on what you're anxious about. Being scared that people will dislike you is different from being scared of embarrassment and it's different from being scared you don't know what to do in the moment.

Of course all of those can be helped by simply exposing yourself to the situation over and over again. You learn that if you do embarrass yourself or if people dislike you, the world doesn't turn to ash.
_benton
·vorig jaar·discuss
I really should read Jung. So much wisdom in that.
_benton
·vorig jaar·discuss
I mean push the devs towards writing native swiftui.
_benton
·vorig jaar·discuss
I suppose it's only the bad ones that I notice, but I can definitely get annoyed by UI that's janky, choppy, or close-but-not-quite native. It's jarring.
_benton
·vorig jaar·discuss
I agree with you but I think at a certain point with large teams, the marginal benefit of hiring n+1 becomes negligible and then dips negative.

I've never worked for a company with thousands of devs but I imagine at a certain point the cost of simply collaborating and managing those devs becomes pretty high too.
_benton
·vorig jaar·discuss
I don't think it's that hard for someone with experience writing shaders to emulate. The moat is that it's almost impossible to replicate with browser technology, which hurts web-based ui systems and is still a big challenge with something like flutter or jetpack compose multiplatform.

Stuff like React Native get it basically for free because their ui is still technically "native".

But apps that rely on web views are screwed and I'm sure Apple will be happy to push devs away from those solutions as they're inferior for users.

Now they just need to figure out a way to push RN apps towards true native.
_benton
·vorig jaar·discuss
I clicked on this fully expecting it to be about the video game...
_benton
·vorig jaar·discuss
I'm sorry but what you are describing is not what a zero sum game is.
_benton
·vorig jaar·discuss
Yeah I agree. I think it's the same way as fashion - it's often not new styles, just new takes on the past. But it keeps things fresh and interesting.
_benton
·vorig jaar·discuss
Inequality is possible in a non-zero-sum game. It's just as possible to have an inequal non-zero-sum game as it is to have an equal zero-sum game.

Capitalism isn't zero sum because at its core principle are transactions, which are inherently non-zero-sum.
_benton
·vorig jaar·discuss
Nothing of what you said has anything to do with the concept of "zero sum". It has to do with if the resources in a system are fixed or if they are changing.
_benton
·vorig jaar·discuss
UI change is similar to fashion. Things can't remain stagnant, they must change.
_benton
·vorig jaar·discuss
I have a feeling this will be yet another case of the nerds thinking something is a huge deal and when people update their phones this fall I bet most people won't care after 10 minutes.
_benton
·vorig jaar·discuss
What the article describes is pretty sensationalized and full of bias.

Obviously there is plenty of room for it to go wrong but I don't think it's automatically the case that somehow paradoxically, giving the government less control over a region will make that region more authoritarian. I would expect the null hypothesis to be the opposite.