479 karma · joined February 26, 2017
So I think that means I was asking about execution in the same context (as in memory context), unless you mean stack frame by context, in which case, I think i understand that because the caller returns the value of the deferred, they are in the same stack frame, and nothing else could insert in that frame between them. I'm not sure you know what i mean, but do i have it about right?
I don't really understand this, but i think I'm getting somewhere.
It really hammers home the concept that a function is a transformation, and of what into what. And I think this syntax would probably encourage pure functions. And it's so useful to allocate the return in the top line. I really like go.
https://play.golang.org/p/7bfiSqKY_w
I was also looking for a "spread" / ... operator, but couldn't see a way to do that.
return { named_var_1, named_var_2 }
const { named_var_1, named_var_2 } = f()
But then I read the article.I don't know really what is going on in this article on a quick reading, but it builds by existing sense that go is a really cool language that I ought to get into.
I have no idea if anyone wants to help me understand, but in the last part where he changes to use a named return parameter, he says, you may also "enjoy the cleaner look of the source code, too". To me the only difference I see is the return name, to the right of the existing function signature. What was I missing that makes this actually cleaner?
The way he thinks about things is it's not a threat to his business to have competitors in his space not just because he is prepared to undercut them on cost but because he knows that his true focus is on customer satisfaction. And competition, whether through providing customers with a choice or encouraging his own systems to provide better services is good for his business.
But in this case it's really just because Netflix is too insignificant to matter to Amazon overall. It's just a tiny fraction of their revenue and what they're trying to do.
And if you want to be Machiavellian of course it's good because then Amazon has leverage of Netflix.
Seriously how would it look if Amazon turned down a company because they were competing? It would be an admission of defeat and weakness for AZ. That's not how an "apex predator" thinks.
Keep your friends close, and your competitors....
P.S I wanted to ask have you had much interest / use / payment for this? :);p
I think I tried doing some code when in Amsterdam in a coffee house ... with this super high hope that it was going to be great. IIRC, I couldn't think at all. Zero productivity.
But that could have been a consequence of the "setting" rather than the drug. It would be cool to try out coding when high in a THC cowork space in Amsterdam specifically designed for people coding on laptops when high. That could be some hackathon!
I disagree with your notion. I think that having an ego is necessary to deal with the slings and arrows of failing when from taking outrageous risks.
Take risks. But take calculated risks. If you don't believe in yourself, and trust your own vision, someone might talk you out of it. Or your metric of safe will include acquiescing to or acting with the advice of others.
There's not really a way to rationalize courage in my opinion. And it's not a case of you have it or don't I've found. At some point in my life I feel brave, other times no. What makes courage in my experience is just saying, 1,2,3 do it, and making yourself do it. If there wasn't fear it wouldn't be courage. You have the vision or desire, you're afraid to take the step, then you take it. That took courage.
Ego helps me believing enough in myself to dream up outrageous ideas. I find that if I'm low confidence or not freed from cares and worries plaguing doubters, my mind isn't free enough to dream up, and my heart isn't free or strong enough to take risks. So have ego and believe in yourself (for me, they are the same thing). Having ego lets me enjoy myself, and makes me happy. And enjoying and being happy helps my creative process.
Have ego. But be rational and strategic about your ego and keep it in check. Use it in a way that works for you, not against you. Is my advice.
YMMV.
Same as with creating a community around anything.
1. Define a group of outsiders, explicitly (politics) or implicitly (privilege).
2. This scaffolding sets up the emotional payoff necessary to motivate people to be involved and belong. The nature of community is also the essence of how you create it. Tap into people's reward circuitry. Their tribalistic instincts. If you find such notions repellant, you could be in the wrong business.
3. Apply optimizations, such as letting people advertise recognition and status (reputation), develop mastery ("my skills are improving"), and act autonomously ("I got this").
4. Make a safe space for them to congregate. You need boarder control / bouncing / moderation. You can take an editorial stance yourself, or work with the community to develop it collaboratively.
5. Let them communicate.
Do you really want to do this? A community is like a ginormous multiheaded baby. It will suck you dry and lay waste too all your other plans. But maybe it will also be among the most beautiful and amazing things you've ever helped create. Your call, buster.
How can you pay for this if it's free? It's unreliable unless its financially viable.
[...{[Symbol.iterator](){return {next(){ return {done:console.log(1)}}}}}];
JSON.parse("[]",()=>console.log(1))I had no idea. I'm a post 1980 baby after all.
You're probably too clever for me to be able to argue with. But that doesn't matter to me. Because it doesn't really matter what either of us believe, it only matters what we do. And when I look at the world, I don't see it is the people who win the arguments who win. It is the people who can sway others with emotion, the countries that can better tell their own story, the civilizations that can build something that other people want and the militaries that can deploy technologies that dominate that win. And above all, I'm someone who loves humanity. For what it is. So it doesn't matter to me even if your arguments are right. Because I'm more concerned about what's necessary. I have strong opinions, born of my own experience, based on logic and emotion.
Maybe I have been duped by the MSM, the AI of tech corporations and swindled on a hopeless dream of being a "somebody" / a tech founder / a snowflake whatever, in a consumerist society that needs to worship individualism and the purchase of status, or relief from fear, to drive the economy. I've certainly been duped by my friends and enemies, so, surely, the government, big corporations and the media, with their infinitely better resources, can probably dupe me too.
But I'm fine with that. Because all that really matters to me is how I live my life. I figure most people are living in a delusion anyway. Of one form or another. SO the question is not "do I have the truth?" the question, for me, is "Is my perspective useful?" Does it work for me? Does it help me achieve my goals? Whatever they might be.
And I think I'm good at that, or at least I try to be.
But on the topics you broach I'll give you my clear opinion: our societies, that have something to offer ( freedom, justice, prosperity, equality, harmony ( maybe democracy if you like that sort of thing ) ), are better than the societies that don't have such things to offer. As far as I'm concerned, any violence from people emanating from such places against our own is wrong. Prima facie wrong. Mainly, I think, because, if they were to win, they would offer nothing. So we must win, because we can offer something. So all our wars, against them, are justified to me. I see it as their problem. If their societies didn't suck, if they had devleoped themselves, protected themselves from manipulation and outside influence, then they'd be in a better place. But instead, they didn't keep their houses in order, and they became these breeding grounds for bad things, bad ideas. And I see no problem with wiping them out. If we have to. Just like the human body will kill its own cells if it diseased, I believe we should not hesitate to cut off those parts of our human civilization that are toxic. An extreme view to utter, but not to practice. I'm not saying that makes it okay. I'm saying it's okay, because that's what we say is okay. We have to protect what's good. What's good is certainly not what's perfect. But we have to get down in the dirt, and do bad things, to protect the good.
Maybe you say that's extreme, and you pretend I'm bad, and I don't expect you or many others to agree with me. I got that you would see it differently. But I would just see that as the comforting delusions people adopt to tell themselves they're good and righteous.
I want you to imagine if you have a family, and you are on a camping trip in the forest, far from any outside help. And a group of bandits tries to attack your camp. What kind of family person are you, who would refuse to do anything necessary to protect the good that was their family? I say, that you'd be in the wrong, if you refused to do anything "wrong" to protect your family.
So that's how I see humanity. Essentially good. Worth protecting. But protecting it, and developing our civilization, is not going to be pretty. Look at China. So much achieved. But so much horror and bloodshed to get there. To me that's all there is. The development of the human civilization and the forward march to a better future. There will be blood. But I believe it's worth it. Other people don't. That's fine. To me, their "noble mindsets" are the fruits of the peacetime they now enjoy because of the thousands of years of bloodshed that have brought our civilization to where we can enjoy peace.
TL;DR - I enjoy peace and love as much as the next human. I just think it's fine to do anything we need to protect that and keep moving forward as a species. Yes, it's a war mindset. Yes, the "terrorism is a threat" narrative gets a lot of mileage. But who cares? Nothing is guaranteed in this world. As far as I am concerned, humanity is always at war. If it's not terrorism, it's disease, it's planetary annihiliation. Until we are a multiplanetary species, who can upload our brains into new bodies whenever we like, until we've cured death, we're always going to be at war. So we're on that road. We can't take any chances. We ought not to waste any time. See the threats. Stamp them out. Protect what's good. Excise the diseased parts. Nothing else matters. We do not have the luxury of fanciful meditations, except from the security of an armchair, a secure perch provided by the blood of people who fought and died to bring you to the brief respite from endless horror we currently enjoy. Humanity has a long way to go, and it's not going to be pretty, but I believe we'll get there. You just have to be prepared to get dirty along the way. Get down in the dirt, and muck it out. To save and protect what's good.
You probably care more for argument and logic and facts and finely stated opinions than all of this emotive, rhetoric. But to me, it's not that. It's very plainly how I see things. So, thanks for giving me this chance to express it here. I feel internet conversations are useless, but they give me a chance to know my own thoughts better.
Another point is -- all governments monitor communications and we don't call them tyrannical. Take the Germans. They're notorious. But people consider the Germany government quite liberal.
Restricting communications does not have to be a tool of "cruel, unreasonable, oppressive or arbitrary use of power or control." It can be deliberate, reasoned and helpful. China restricts their communications and they enjoy a lot of civil harmony, and a huge amount of national pride.
The media in the US practice a form of "information restriction and control" by tightly directing the narratives, and editorial perspective ( and sometimes even the facts ) that people are consuming. That's been the case for a long time. No one's calling it a tyranny, even tho plenty of Americans distrust authority.
I think your model of tyranny and your belief in crypto are unrealistic.
The reason I don't believe in crypto is because I consider everything as "security theatre." IMHO, every single cryptosystem that exists has already been broken. The pretense that it hasn't is just a charade.
Note: I believe in the strong version of the above statement. That RSA / EC / AES / DES and so on are broken. But the weak version, that protocols, physical monitoring, side channel attacks, and other vectors make every practical cryptosystem broken is kind of born out by the events of the last few years.
Whether you believe in the strong or the weak version of that statement the net result is the same, no? I think so, anyway.