

I’m glad you noticed. That was my favorite part too.


I’m glad you noticed. That was my favorite part too.


Yeah, it does look like C now that I think about it. You’re right about the end result too. I believe C# will let you do inline declaration and assignment like that, so maybe that’s what we’re looking at? Been a while, could be wrong


I just tested it in PowerShell. Works fine
$i = 1
$x = -$i
$x
Outputs -1


It’s an incoherent hodgepodge of C#/.NET, PowerShell, and JavaScript, each of which I’ve forgotten more about than I currently know


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;


If this is JavaScript, it would have a value of -0, which is actually valid and works the same as normal zero thanks to type coercion. I think the only difference is some methods that detect if a number is negative will return true instead of false, but otherwise, JS treats -0 the same way as 0


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?
Unless you called the cops don’t talk to them.
If you have a problem and call the police, now you have two problems.


Dear Canada,
Please don’t.
Sincerely,
-Every American


Yeah, pretty sure you’re right. Though I’ll admit I’ve forgotten much more than I know on the topic.


Mad cow disease is caused by prions from dead cow brains infecting the healthy brains of living cows. It’s kind of the cow equivalent of Kuru.
It’s definitely a G-force thing. If I remember correctly from Mythbusters, the human limit is about 10 Gs before losing consciousness, 15 Gs before suffering internal organ damage, and about 20 Gs before instant death.


Most modern means of electricity production involve creating heat in some way, then using that heat to boil water, creating steam. That steam is then used to turn a turbine, which generates electricity.
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.
Coding on mobile is hard