immibis
immibis t1_iyam8iu wrote
It's easier to understand something when all the pieces are next to each other in a straight line. You tell the computer to do this, then this, then all of these, then frobnicate the widgets, then pass the salt. When you see a loop, you know the computer is going to repeat what's in the loop a certain number of times, then do the stuff after the loop.
"goto" lets you tangle up the pieces as much as you like. The problem is not the word "goto" itself, but it is the fact that if you didn't create a tangled mess then you'd be able to write it without the word "goto". An otherwise straightforward program with one or two "goto"s is often still understandable, but when you have many of them, it can be hard to understand exactly what the program is doing, e.g. you might not even be able to work out how many times a certain line of code gets run.
Note that when Edgar Dijkstra wrote his famous letter "Go To Statement Considered Harmful" in 1968, structured programming with instructions like "if" and "while" were somewhat new and people weren't using them as much as they could have.
Ironically, many programmers write the exact same kind of mess with classes and methods, and think it's good because there's not a single "goto".
immibis t1_ixjbres wrote
Reply to comment by DownrightDrewski in TIFU by not having a bank account sooner. by GwyndolynRedwood
and the children not even attempting to do anything about it!
immibis t1_ixjbnbe wrote
Find a lawyer. They are thieves and they can be punished appropriately and forced to give you the money.
immibis t1_iw8acfz wrote
Reply to comment by gh411 in Are there any K-Strategists insects? by [deleted]
Isn't this the same as any parasite species for example?
immibis t1_ivn617s wrote
Reply to comment by thenatar007 in TIFU by working on my wife's laptop while sleep deprived by SyCoREAPER
You can't rely on everything having automatic thermal throttling, but it is pretty normal nowadays. It used to be that CPUs would go pop if you forgot the heatsink.
immibis t1_iv4w5vo wrote
Reply to comment by Chris_90_TO in Denver firefighters suspended for getting woman pronounced dead even though she was alive by xraygun2014
Spoiler alert: none of the employers are "good employers"
And there aren't competing fire departments
immibis t1_iv4usir wrote
Reply to comment by i-opener in Driver ‘seriously injured’ after being run over three times by own car by GregorSamsa67
Turns out she was also a bricklayer using a pulley to lift bricks up...
immibis t1_itq94k8 wrote
Reply to comment by dbuzman in eli5: how long would power stay on if the power company abandoned their post? by larsattacks94
> I have been on the front porch when the fuse blew. It was very loud.
That's the explosives!
immibis t1_ito6ntq wrote
Reply to comment by 685327594 in eli5: how long would power stay on if the power company abandoned their post? by larsattacks94
It should. Think of the profits the ownership class could make by firing all those technicians!
immibis t1_ito6lk2 wrote
Reply to comment by 685327594 in eli5: how long would power stay on if the power company abandoned their post? by larsattacks94
Are you sure they don't have fuses as well?
immibis t1_ito52v9 wrote
Reply to comment by 685327594 in eli5: how long would power stay on if the power company abandoned their post? by larsattacks94
The computer to keep everything running
immibis t1_ito4ro6 wrote
Reply to comment by tired-space-weasel in eli5: how long would power stay on if the power company abandoned their post? by larsattacks94
I think it's somewhat automated but not completely. They call it droop control, yes?
immibis t1_ito4mmz wrote
Reply to comment by 685327594 in eli5: how long would power stay on if the power company abandoned their post? by larsattacks94
Is it not remotely possible that the load drops at a reasonable rate which the control system can cope with, ending with the dam powering just its own local area from a trickle of water?
immibis t1_ito4cvu wrote
Reply to comment by 685327594 in eli5: how long would power stay on if the power company abandoned their post? by larsattacks94
Wouldn't there be a control system that would reduce the water flow to prevent the turbines going faster than normal?
immibis t1_ito2dfn wrote
Reply to comment by Dingo_The_Baker in eli5: how long would power stay on if the power company abandoned their post? by larsattacks94
(I do not work in the power industry but) the lines wouldn't burn up, as they have fuses for the worst-case scenario. In the worst-case scenario, power lines wouldn't burn up but they would still have to drive around and replace all the fuses.
As I understand it, the real problem in a major event is that all the safety systems trip. You get these cascading failures where the computer at each power plant and substation is like "oh fuck, something's really wrong, fuck it, I'm out" and then disconnects whatever section it's responsible for. No actual damage (that's the point of the safety systems), but everything is shut down and disconnected.
E.g. https://en.wikipedia.org/wiki/Northeast_blackout_of_2003#Sequence_of_events - according to this list, you had a few individual things disconnecting themselves and the rest of the grid took up the slack, but then within a few hours it got to a point where there wasn't any slack left and then you get this big cascade where everything that trips due to overloading causes something else to overload, and it just spirals until everything is disconnected. I assume the "heroism" at your company is related to the fact this didn't happen in Texas, so whoever still had power lines could still get power.
And then they have to figure out how to restart the whole grid from zero without tripping all the safety systems again. Did you know that most power plants need electricity to start up, which apparently makes it quite an ordeal? https://en.wikipedia.org/wiki/Black_start
> To provide a black start, some power stations have small on-site diesel generators, ..., which can be used to start larger generators..., which in turn can be used to start the main power station generators
Fun fact: high voltage fuses have explosives in them to make sure they disconnect properly, as high voltage can jump through air if the gap isn't wide enough.
immibis t1_ito247y wrote
Reply to comment by EscapeRich9091 in eli5: how long would power stay on if the power company abandoned their post? by larsattacks94
Both power spikes and brownouts should causes systems to automatically "trip" offline. Power plants and substations have sensors to detect if the voltage, frequency, or current is out of spec - and shut themselves down, or at least disconnect themselves from the grid. Maybe some areas would happen to be in balance with their local power plants for a little while and would stay running.
immibis t1_irqfz7p wrote
Reply to comment by Katana1369 in Pot twist: Cannabis firm refuses federal judge's ruling because its business isn't legal under federal law by Doc_Dante
What do your rents pay for
immibis t1_irntrz0 wrote
Reply to comment by Katana1369 in Pot twist: Cannabis firm refuses federal judge's ruling because its business isn't legal under federal law by Doc_Dante
Is taxation theft?
immibis t1_irma8s7 wrote
Reply to comment by Katana1369 in Pot twist: Cannabis firm refuses federal judge's ruling because its business isn't legal under federal law by Doc_Dante
Landlordism is theft.
immibis t1_irma7ng wrote
Reply to comment by CallofBootyCrackOps in Pot twist: Cannabis firm refuses federal judge's ruling because its business isn't legal under federal law by Doc_Dante
I assume the cannabis firm doesn't have to argue that it does illegal stuff, only that the landlord is trying to enforce a contract for something illegal, which may or may not have actually happened.
immibis t1_irma340 wrote
Reply to comment by Aleyla in Pot twist: Cannabis firm refuses federal judge's ruling because its business isn't legal under federal law by Doc_Dante
Whoever a landlord is mad at is usually the good guy.
immibis t1_iyb4c7v wrote
Reply to comment by PooPartySoraka in ELI5: why is using "goto" considered to be a bad practice in programming? by Dacadey
it's a pretty common placeholder verb