Recent comments in /f/explainlikeimfive
xzt123 t1_iybn96i wrote
Reply to comment by Milnoc in ELI5: why is using "goto" considered to be a bad practice in programming? by Dacadey
What language? In Java you can label the loop and break out of the loop by name.
In C#, your use of goto is probably ok. C# has more rules about goto, it can't be anywhere and I believe it can't skip variable definitions. C# also has a use of goto where switch blocks cannot fall through cases, that have statements, without an explicit goto statement to go to the next labeled case. It makes missing a break; statement accidentally not possible.
Anyway, obviously a ton of languages out there, so curious which one?
trutheality t1_iybn8oa wrote
It is a convention, but there is a reason to prefer this convention to one where you add first, which is that multiplication distributes over addition, but not the other way around:
(1 + 2) x 3 is (1 x 3) + (2 x 3), but 1+ (2 x 3) is not (1 + 2) x (1 + 3).
That means that a lot of expressions where sums and products appear, like polynomials, would require using more parentheses if we were to write in a system that adds first.
Performing products first also keeps things consistent when working with units in equations: 50 meters + 10 meters = 60 meters, "meters" can be seen as a thing that gets multiplied by 50 and 10 and 60. If you added first you'd need parentheses to write that.
RepeatedReentry t1_iybmso8 wrote
Reply to comment by Dunbaratu in ELI5: why is using "goto" considered to be a bad practice in programming? by Dacadey
Real OG gangstas just code in machine code
Salindurthas t1_iybms9m wrote
Reply to comment by Walty_C in ELI5 why we first multiply, then add by TheManNamedPeterPan
>Why couldn’t you just write it 5 x 12 + 2 and solve it all left to right?
Well, what if you are writing down the eggs you see, as you see them?
What if you spot 2 eggs, so you write that down, and then spot 2 cartons of a dozen, so you write that down.
Oh, dang, now you've written 2+ 5x12, and under your convention, that isn't what I meant (I've written 7x12, but I mean 2 more than 5x12).
-
Or, what if you have a formula like: "D = 2*x/y + 5*z^2"
You might be working in a lab, , and your assistant tells you "I've measured x & y, they are 7 and 3.5 respectively."
You're waiting for them to measure z, and figure that you'll simplfiy your equation, and you work out the left term happens to be 4 (2*6/3.5=4).
So you write "D = 4 + 5*z^2" to keep your equations easy to read and lined up.
Oh, dang again! That isn't what you meant, you need to change the order around!
-
I think it is better to have a convention where the order you write addition in doesn't matter, so that you can add things as you discover them/calculate them, rather than needing to reorder your equation every time.
You *could* do it, but I think if society did, we'd have more errors than using our current convention.
Deep_Potato5013 t1_iybmjv7 wrote
Reply to comment by Megalocerus in ELI5 Are cows constantly producing milk? by ms_myco
"for us it's harvest day, for the carrots it's the Holocaust"
ViciousKnids t1_iybmgbz wrote
To dispell the American perception of Soccer:
They're not flopping all the time. It's a contact sport and sometimes they get the wind knocked out of them or really fucked up. In this past MLS final the keeper of LAFC got a broken leg (and a red card for illegal contact) trying to stop Philly's striker by sliding into him. Look at pictures from the Brazil/Serbia game of Neymar's ankle. It's swollen to the size of a grapefruit. In the past week of just a handful of World Cup games I've watched, I've seen dudes get kicked in the face, head, and dick. People ramming into each other at full speed. And getting cleated anywhere fucking sucks. There's a player for Wolverhampton that's still wearing a brace for a fractured skull and that motherfucker is still playing. Some games are physical slogs, it can actually get real nasty.
Now. As to why they'll flop and/or feign injury:
-
fishing for fouls. And sometimes you kind of need to do it because you were fouled but referees are pants on head stupid.
-
Time wasting. I like to say a team is 20 seconds away from scoring at any point in the match. You're up by 1 goal and it's the final 5 minutes? Got some rough contact? Better go to ground to burn the clock (and take a little break). It's not even the main method of time waisting. If you're up a goal, and you get a set piece (corner, goal kick, free kick, throw in, etc.) You taaake youuur tiiiime.
I'll say this: if you actually watch a game, they really don't flop as much as my fellow Americans like to think they do. They spend most of the time, you know... Playing the game. And it's exciting to watch because there's always something happening instead of people standing around or commercials every 30 seconds like with NFL and baseball.
There are rules for egregious flops. Simulation (faking illegal contact) gets ya carded. And the practice of flopping ain't going away. It's part of the tactics of the game, really. Not that they practice it in training or anything. And like I said, it's not like every bit of contact results in a player dropping to the ground and playing hurt. They go at each other hard most of the time. The only protection they have are shin guards. The rest of the body is exposed to abuse. You get tripped up while you're sprinting, it's going to hurt. Dude steps on you literally anywhere, it's going to hurt. NFL players have the luxury of play stopping for a minute between plays to walk it off when their bell gets rung. Soccer players don't. Hell, the game even keeps going if there's a man down. They won't stop play unless he doesn't get up for a while. Or if it was contact to the head.
JimAsia t1_iybm38j wrote
Reply to comment by x1uo3yd in ELI5 why we first multiply, then add by TheManNamedPeterPan
Writing them is slightly tedious but typing them is a royal pain. Capital case, lower case, capital case, lower case ad nauseum.
Salindurthas t1_iyblyns wrote
On one hand, we simply decided to use it that way. It is just a convention we agreed upon.
-
On the other hand, when people were deciding on the convention, surely they had *some* reason, right?
I think they did, and that there is some underlying logic to it.
The mathematical operations have some sort of inherent order to them, basically about how 'strong' (in a sense) they are.
- You may have heard that multiplication is repeated addition. (e.g. 3x4 = 3+3+3+3 by definition).
- Exponentiation (taking a 'power') is repeated multiplication. (e.g. 3^4 is 3x3x3x3 by definition).
- So, in a sense, by being repeated versions of another operation, Exponents are stronger than Multiplication, and Multiplication is stronger than Addition (and Addition is stronger than Counting, for what it is worth).
We don't have to do operations in the order of most 'strong' to least 'strong', but it feels natural to do so, and so we formally choose and decide to do so.
So do exponents (aka powers) first, then multiplication, then addition.
But we've forgotten some operations, so let's add them in. Division is just as 'strong' as multiplication, because is the opposite, and can therefore undo exactly what multiplication causes. Subtraction is similarly the same strength as addition. So, in standard ways of listing the order of operations (like BODMAS/PEMDAS/etc), we obey that ordering.
I'll reiterate that despite this reasoning, it isn't lot as if we are logically forced to use this convention. It is just a fairly natural one to use.
NoName05478 t1_iyblupv wrote
Multiplication is a shorthand way of addition. This means 1+2×3 is actually 1+2+2+2 or if you want 1+3+3. It is simply a way to compile or group a series of additions together.
This means in order to reverse it you have to first degroup the multiplication then do the adding.
[deleted] t1_iyblsxx wrote
Various_Succotash_79 t1_iybls5r wrote
Reply to comment by presidentofstamford in ELI5 Are cows constantly producing milk? by ms_myco
Hmm, rBST is used to boost milk production but I don't know if it can be used to bypass the need for pregnancy/birth altogether. It's probably cheaper to just let them have a calf, plus they need female calves to keep the dairy going.
Flair_Helper t1_iyblg62 wrote
Reply to ELI5 what is the benefit of a charter school vs regular public schools? How do they differ? by [deleted]
Please read this entire message
Your submission has been removed for the following reason(s):
Subjective or speculative replies are not allowed on ELI5. Only objective explanations are permitted here; your question is asking for speculation or subjective responses. This includes anything asking for peoples' subjective opinions, any kind of discussion, and anything where we would have to speculate on the answer. This very much includes asking about motivations of people or companies. This includes Just-so stories.
If you would like this removal reviewed, please read the detailed rules first. If you believe this submission was removed erroneously, please use this form and we will review your submission.
badgerj t1_iyblf87 wrote
Reply to comment by johndburger in ELI5 why we first multiply, then add by TheManNamedPeterPan
Rad! Thanks!
constantino675 t1_iybl9bl wrote
In any math that matters, to expect others to rely on pemdas would be very very bad form.
Formulas are always written with brackets so there can be no misinterpretation. After all, past the 3rd grade, no one trying to trip anyone up with ambiguous syntax.
explainlikeimfive-ModTeam t1_iybl87y wrote
Reply to Eli5: How do people get those absolutely gigantic LG TVs in their house after it was built? by PhychologicalEgg
Your submission has been removed for the following reason(s):
ELI5 is not for straightforward answers or facts - ELI5 is for requesting an explanation of a concept, not a simple straightforward answer.
If you would like this removal reviewed, please read the detailed rules first. If you believe this was removed erroneously, please use this form first. If you believe this was removed erroneously, please use this form and we will review your submission.
Flair_Helper t1_iybl5kw wrote
Please read this entire message
Your submission has been removed for the following reason(s):
Questions about a business or a group's motivation are not allowed on ELI5. These are usually either straightforward, or known only to the organisations involved, leading to speculation (Rule 2).
If you would like this removal reviewed, please read the detailed rules first. If you believe this submission was removed erroneously, please use this form and we will review your submission.
[deleted] OP t1_iybl1c3 wrote
zagglefrapgooglegarb t1_iybkyry wrote
There is a competitive sdvantage to be gained by feigning injury or exaggerating a tackle. It's the same logic as claiming a corner or throw in when you know you shouldn't be awarded one. This exact same potential competitive advantage doesn't exist in other sports, but where one does people will attempt to manipulate it for their/their team's benefit. Like a player claiming they made a catch in the NFL when they know they weren't in bounds or when the ball grazed the turf first. Or when a QB makes sure the refs notice any late contact in the hopes of a roughing the passer call.
[deleted] t1_iybkquw wrote
[deleted] t1_iybkmgg wrote
AsanoSokato t1_iybkb67 wrote
Reply to comment by SuspiciousBeing6499 in Eli5: What does it exactly mean when doctor says a baby is born addicted to crack? by SuspiciousBeing6499
lol no racism in south L.A.
just ask Rodney King
And I just gave an answer.
Examining one's life is not a criticism, but a show strength. Be strong.
maxxie10 t1_iybk9zk wrote
It works. There are lots of plays that are fouls in football but that don't actually cause you to fall over or be in pain, but still cause you a disadvantage. If you don't fall over or feign injury, the referee feels less pressure to give a foul, and referees have a bias towards staying out of the game - "we didn't talk about the referee tonight, that means he had a good game" - is a saying.
Until referees grow enough of a spine to call fouls for things that look like nothing, this will always happen, because it will always help you win.
It can also break up the momentum of the game if the other team is doing well. Some managers essentially use it as a time out to talk to their players.
AsanoSokato t1_iybjxbo wrote
Reply to comment by nursejenspring in Eli5: What does it exactly mean when doctor says a baby is born addicted to crack? by SuspiciousBeing6499
What I said.
orangezeroalpha t1_iybjwhl wrote
Reply to comment by BurnOutBrighter6 in ELI5 why we first multiply, then add by TheManNamedPeterPan
If parentheses are used most of this confusion immediately evaporates. A person can still remember how to do math decades after forgetting the "order of operations."
If someone wanted the answer to 1+2x4+3 I'd ask them why they wrote it out in a way that is so easy for typical humans to misinterpret.
May not be helpful, but my point is, avoid needless confusion if possible. One does this with parentheses. I'm not sure I can think of an example other than a math class where it would be advantageous to avoid parentheses. Long live parentheses.
ViciousKnids t1_iybnwy0 wrote
Reply to ELI5: how effective is bear-safe storage for scented items/food at campsites? by togapartywalkofshame
Not as effective as a bear bag. And it's not just food you have to worry about: soap, toothpaste, flavored drinks. It doesn't matter how "bear proof" a container is, they might come a sniffing. Using a bear bag a good distance away from camp will make them less likely to poke around your tent. For those unaware, a bear bag is a bag that you toss all your smell-ables into at night and suspend from a tree branch high off the ground. Not only does it keep your food safe from being eaten, but being far away from camp means it draws the bears away from where you sleep, which is good for your health.