crashfrog
@crashfrog@lemm.ee
- Comment on Donald Trump latest: Former president scrambled to safety after shots fired on his golf course 2 months ago:
Well, he’s down in the polls again so why not do what works
- Comment on NATO official: Ukraine has legal right to strike deep into Russia 2 months ago:
How so?
- Comment on NATO official: Ukraine has legal right to strike deep into Russia 2 months ago:
How did Ukraine start “ww3”?
- Comment on A perfect visualisation of a wasteful system 11 months ago:
Communism is when made-up stats
- Comment on A perfect visualisation of a wasteful system 11 months ago:
The point is that there are beds that nobody are using while people are forced to sleep on the ground.
If you let a guy sleep on it, then you can’t sell it. Who would buy it? The bed isn’t “not being used”, it’s not being used as a bed.
It’s about resources not being used as efficiently as they could be
There’s nothing inefficient about this allocation of resources.
- Comment on A perfect visualisation of a wasteful system 11 months ago:
If anything this guy is a lot less in need of a bed than someone who hasn’t trained themselves to be able to sleep in a doorway (to wit, me.)
- Comment on A perfect visualisation of a wasteful system 11 months ago:
“Capitalism is when stores aren’t hotels”
- Comment on Real quick question about the "break" 11 months ago:
Good luck
- Comment on Real quick question about the "break" 11 months ago:
What would be an example where you need different logic based on a number’s parity? Why wouldn’t you write logic that ignores the number’s parity?
Part of getting better as a programmer is realizing which stuff doesn’t matter, and writing less code, as a result.
- Comment on Real quick question about the "break" 11 months ago:
(however, I don’t get why more loops and ifs makes a function harder to test, I’m just going to trust you and that I’ll find out later.
Well, it’s fairly easy to explain - each branching statement in your function doubles the number of discrete paths through the code. If there’s one
if
statement, there’s two paths through the code. (The one where theif
predicate is True, and the one where it isn’t.) If there’s twoif
statements, there’s four paths through the code. If there’s threeif
statements, there’s eight paths through the code.In order to test a function completely, you have to test every possible path through the code. If you used three
if
statements, that means you have to devise and write eight tests just for the different code paths, plus testing various exceptional cases of the function’s input (“what if all inputs are 0”, “what if all inputs are null”, “what if the integer is a string”, etc.) That’s a lot of tests! You might even have to write tests for exceptional cases combined with different code paths, so now you’re writing eight times the number of tests you otherwise would have had to.Whereas if your function doesn’t branch at all, there’s only one path through the code to have to test. That’s a lot fewer tests which means you’ll probably actually write them instead of saying “well, it looks like it works, I won’t spend the time on tests right now.” Which is how bugs make it all the way through to the end of the project.
- Comment on Real quick question about the "break" 11 months ago:
I suspect “you’ll fail the test if you use
break
” is more of a joke by your teacher than an actual grading rubric, although if you used it more than twice in the same test I wouldn’t award you better than a B.Is there a benefit to not using breaks or continues?
The benefit is that you learn to write non-branching code. That’s important for beginners, who tend to write very complicated and complex code with lots of branching, which they then discover they’re not able to test and debug. Barring you from using
break
andcontinue
forces you to write more abstract code to achieve the same level of function with less complexity, and that’s how programmers advance in skill - simpler, more abstract code.Ultimately it’s an effort to kick a crutch out from under you. Whether you think that’s appropriate for a teacher is up to you, I guess - I’m inclined to think it is, but many students don’t respond well to being challenged.
- Comment on Brand X 11 months ago:
Russia is a shithole because it threw out all of its Jews. Too bad, they all moved to Brooklyn; our gain and your loss.
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
The comment itself is pretty unhinged. I just find the irony amusing.
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
Yes, it was shown to have been an algorithmic adjustment that predated his purchase of the company, and was actually taken out after Musk bought Twitter
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
In a comment about how “control of language” is a key indicator of emotional stability?
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
That’s simply ignorant. Here’s Tom Mueller, co-founder of SpaceX on Musk’s contributions to spaceflight:
Elon was the best mentor I’ve ever had. Just how to have drive and be an entrepreneur and influence my team and really make things happen. He’s a super smart guy and he learns from talking to people. He’s so sharp, he just picks it up. When we first started he didn’t know a lot about propulsion. He knew quite a bit about structures and helped the structures guys a lot. Over the twenty years that we worked together, now he’s practically running propulsion there because he’s come up to speed and he understands how to do rocket engines, which are really one of the most complex parts of the vehicle. He’s always been excellent at architecting the whole mission, but now he’s a lot better at the very small details of the combustion process. Stuff I learned over a decade-and-a-half at TRW he’s picked up too.
This isn’t the story of a guy who just “had money”.
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
Your charismatic public facing CEO has turned from an asset to a liability?
Has he? If you’re a shareholder of Tesla or SpaceX why would you think that?
increasing competition in the EV space
Didn’t Ford just cancel the F150 Lightning?
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
Right, but it is actually true that anti-semitic views are more prevalent among racial minorities (in the US) than among whites. No less a figure than Matt Yglesias had made the exact same point the day prior. How is it an “anti-semitic trope” to agree that that’s true?
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
Sorry I’m not popular enough for you to talk to
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
I’m not asking about the word “unhinged”, I’m asking if you consider yourself unhinged because you said:
repedatly
What word is that even supposed to be?
I don’t understand how you don’t look at your own posts, with their bizarre spelling and use of capitalization, and believe you can accuse Elon Musk of “not being in control of his language.”
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
If someone is so unhinged that he repedatly can’t control his language and emotions
Are you currently unhinged? Like, I’m not even sure what word you tried to spell here, but why should I not take this as a sign that you can’t control your language or emotions?
Why should I think Musk can’t “control his language”? Because he said a dirty poo-poo word?
it is a valid reason to suspect that these Person might have serious psychological Problems.
Sorry, I just want to be clear, here. You’re raving at me that it’s Musk who might have “psychological problems”? And not you, who obviously can’t control yourself at all?
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
Are they not? His companies are, on balance, profitable in sectors which were largely written off before he succeeded in them (new car companies, private space launch.)
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
His actions are actively doing the opposite: he is causing his company to lose money.
At Twitter? Sure, but so were the previous guy’s. It’s not actually clear that a social media company can generate revenue at all.
I agree it seems pretty unlikely that Musk is going to turn it around but that’s because the outcome is probably impossible - it’s not possible for Twitter to make money.
Tesla and SpaceX, his other companies, are making money. If you’re on the board of those then there’s no reason to wonder if Musk is causing the company to lose money because you can just look at revenues and see that he’s not.
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
Wasn’t this unconfirmed?
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
I don’t really see how that’s an answer to my question.
Like, the vibes are bad? That’s what you’re saying? And what you want from a CEO is good vibes?
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
Which comment did Musk make that was antisemitic?
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
What would be an example of Musk “demanding worship from the masses”?
I feel like people make claims about Musk that aren’t well-supported by evidence.
- Comment on Elon Musk on X antisemitism controversy: “Don’t advertise. Go f*** yourself” 11 months ago:
The Tesla board should remove him as CEO as he is clearly unstable.
Walk me through how you get from this to “instability”, whatever that’s intended to mean.
- Comment on Brand X 11 months ago:
Ok, well, if you’re a Russian you’re just a sack of shit no matter what you do, honestly. Stay, go, eat a bullet, whatever.
- Comment on Brand X 11 months ago:
Yup! If you fled Ukraine rather than defending it, you’re a coward. Hope that helps!