

function myFunction() {
try {
x = new Random().nextInt();
if (x != 10) {
throw "not 10";
}
else {
return (10)
}
catch(err) {
myFunction()
}
}
}
x = myFunction()
Commit notes: Added error handling


function myFunction() {
try {
x = new Random().nextInt();
if (x != 10) {
throw "not 10";
}
else {
return (10)
}
catch(err) {
myFunction()
}
}
}
x = myFunction()
Commit notes: Added error handling


function foo() {
x = new Random();
case (x = 10):
return (x);
default:
foo()
}


Shit, you’re right. x is declared inside the loop, so it doesn’t exist until the loop begins execution.
Technically, I suppose you could say the compiler will allocate memory for x without assigning a value before the loop is executed and… I’m understanding what you mean now, I think.


Not in this case. First, i is declared and assigned a value of 0. Next, x is declared and assigned a value of -i or -0. On the first loop iteration, i will decrement to -1, perform the conditional check, then execute the loop body which will assign x to -i or -(-1) or positive 1, and so on.
The only time a variable is created without a value is if you declare one without assigning a value like with
[int]i;


Now write a function to unroll the while loop to “optimize it for the compiler”
The glut of US tech workers is due to the excessive number of H1B visas being issued. This year, the number was almost the same, but slightly higher than the total number of US tech graduates. Why hire an expensive American new graduate when you can hire someone from India with 3-5 years of experience at 60% market rate instead?


Close. I believe you’re referring to the EPA efficiency mandates passed in the 90s that carved out exceptions for “heavy duty” trucks and SUVs, which lead to the creation of “crossover” vehicles, which started as a way to deliver car-like efficiency and features, while still minimizing development and efficiency costs by still having it classified as a “truck.”


This is the better option. But, if you’re gonna do that, there needs to be some kind of program that allows people to sell their banned vehicle to the government for above market value so they can afford to purchase a comparable, but more suitable vehicle instead. Otherwise, you’re gonna have a bunch of pissed off people with six-figure, three-ton lawn ornaments crying about how they couldn’t have known their vehicle would get banned and it’s now useless.


Close. I believe you’re referring to the EPA efficiency mandates passed in the 90s that carved out exceptions for “heavy duty” trucks and SUVs, which lead to the creation of “crossover” vehicles, which started as a way to deliver car-like efficiency and features, while still minimizing development and efficiency costs by still having it classified as a “truck.”


So, pass a ban that only applies to poor people and let the rich continue to do whatever they want still since they can afford the fine?


It’s an intentional choice, but it’s not for style. The EPA passed regulations in the 90s that demanded a certain level of efficiency from all manufacturers. Sounds great in theory, but the execution was very flawed. The problem is, the regulations allow for less efficiency, based on the size and weight of the vehicle. Well, it’s much easier to engineer a big, heavy vehicle than it is to engineer a more efficient vehicle, so which option do you think most American car companies chose? That amount of bulk allows them to have a lower rated MPG while still remaining “compliant.”
I can read just fine. You’re asserting that climate change should be embraced because we’ll learn to “live with it.” I’m pointing out that you’re ignoring a giant mountain of evidence that says the best case scenario is that ten percent of our species survives. So, if we’re understanding each other correctly, ninety percent of humans dying is the “new normal” you’re saying we should be cool with, and I’m not cool with that.
I just realized you’re from .ml. Please block me, I can’t stand you assholes anyway.
Ok then, it sounds like you think the only way to improve society is to replace its members with ones who are “more sensible,” as defined by you. Sorry, but I’m not sure how to help you with that one either.
You’re right, capitalism won’t make the Earth completely uninhabitable. Many mass extinction events have occurred in our planet’s past, and life has always eventually recovered (obviously).
However, capitalism will destroy our planet’s ability to sustain our society, and eventually our species, and it is doing so at an alarming rate. To disagree, at this point, is to ignore an amout of scientific evidence so substantial, it amounts similarly to denying the Earth is round.
It sounds like you’re saying the only way to better a society is to replace all its members with ones who already agree with you. If so, I’m not real sure how to help you. Good luck with that.


Lottery winnings are paid out from a pool of money that’s filled by ticket purchases; every dollar won comes from the pocket of someone who bought a ticket and lost, after the lottery company takes their cut. Even if the winners aren’t exploiting the losers directly, the system itself is exploitative, and any winnings are derived from that exploitation. As the old saying goes, “the lottery is a tax on people who are bad at math.”
No clue, actually. I know you can sort based on votes, but I’ve never thought about how the main feed works. I’ll have to look it up later, if I can remember
On Reddit, the algorithm that determines which posts appear on the main page is heavily influenced by the number of up/down votes for the post and its comments.


That’s because it’s morally justified to prioritize the needs of many over the needs of a few.
I’m glad you noticed. That was my favorite part too.