Recent comments in /f/explainlikeimfive

explainlikeimfive-ModTeam t1_j2f2dkm wrote

Please read this entire message


Your comment has been removed for the following reason(s):

  • Top level comments (i.e. comments that are direct replies to the main thread) are reserved for explanations to the OP or follow up on topic questions (Rule 3).

If you would like this removal reviewed, please read the detailed rules first. If you believe it was removed erroneously, explain why using this form and we will review your submission.

1

tiltboi1 t1_j2f2c5o wrote

“return” essentially means that the function is done, and provides a way of giving an output. Usually a function is “called” by another function which needs its results, so the return keyword is saying we are done and ready to go return to the calling function.

The reason why we use a special keyword has to do with how functions are actually called. Each time a function is called, it’s parameters, local variables, etc are saved to RAM in a block called a stack frame. But during the computation of this function, you may need to call another function. The parameters and local variables are saved into another stack frame next to it. The return keyword initiates the procedure of deleting the current stack frame, and moving back to the older one.

3

surfmaths t1_j2f2asv wrote

You can create small pieces of code that we call "function". Those function take a few input that we call "arguments" or "parameters". They execute whenever they are meant to do... and usually return an output we call "result".

An example of function is "distance". It takes two coordinates as input and compute the distance between those coordinates and returns said distance.

So that does the return do in programming? It terminate the function it's in, and takes an optional argument which is the return value of the function.

7

ScienceIsSexy420 t1_j2f2826 wrote

Not exactly, allergies are when the immune system responds to a molecule as though it is a pathogen. An autoimmune disease is when our immune system recognizes some portion of ourself as a pathogen You just blended together autoimmune diseases and allergies, and they are two very different things.

8

clideb50 t1_j2f1xgl wrote

Let's say you run the IT department of a company. You had a great year with very few computer upgrades or replacements needed, so you only spent 4/5ths of your budget. Next year your budget gets cut by that 1/5th. Now you have a rough year where everything seems to break, and while you could have covered it with the old budget, you can't under the new one; and the higher ups have allocated that money elsewhere. Now your stuck trying to make do, and you look bad doing so.

​

As a result, you waste/use up the remaining budget so it doesn't get cut next year.

1

TheZerbio t1_j2f1u56 wrote

While most comments have a rough idea, I am gonna try to make it easier to understand. You might have already heard that the price of a product is dependent on its supply and the demand for this product. Let's take the recent hike in Food prices as an example. Especially if you are in Europe you will have experienced a price explosion for Everything made from flour and sunflower seed oil. That's because most of it came from Ukraine. Before the invasion Ukraine was a poor countries. Not as bad as some African Countries but compared to the EU or US still poor. But they had a lot of area to plant wheat and sunflowers. So there was a lot of supply in the country pushing prices down for Ukrainians. Then Supermarkets in Germany for example realised that the sunflower oil out of Ukraine is way cheaper then the one made in Germany. So they decide to import massive amounts of it from ukraine. Of course shipping something costs money as well so the price in Germany was higher then in Ukraine for the same oil. At the same time Germany is a waaaaay richer country then Ukraine so the people there have more money to spend. So even if the oil is more expensive then the oil in Ukraine, it's still a steal compared to locally produced oil. So people will happily pay the higher price for the Ukraine oil.

1

themagicmunchkin t1_j2f1pmp wrote

I'm currently on a codeine-based cough medicine and it has an expectorant in it to help bring up any mucus when you do cough because none of these medications completely eliminate it.

I personally only take it at night because I cannot function on codeine, but even then I still have a productive cough during the night.

These medications aren't (shouldn't be) prescribed to people with mild/moderate coughs. They're for people who can't sleep at night and can't get rest to fight off the infection (I was sleeping less than four hours when I saw my doc). They're for people who are coughing to the point of vomiting and injury (also me). So, generally people who are doing more harm to their bodies by coughing than they are by not coughing.

9

RewRiteRealityWithMe t1_j2f1lbo wrote

A lot of brain science these days is basically "turn off this part of the brain, see what happens." We've gotten good at it and can usually guess the outcome, but at the core that is the usual idea. There is a drastic impact on people's ability to think, visualize, and a whole bunch of other "mind- related" tasks when we turn off brain areas or physically remove them so that is why the current assumption is that it's in the brain.

2

stilsjx t1_j2f1k4w wrote

Oh that’s easy. They don’t do it because it would require the number crunchers up top to actually understand what is happening down below. Or care, for that matter.

The formula is to drive profits. That is all. A certain level manager might get a reward for coming in under budget, but their budget is going to get reconfigured.

The reasoning is different for different types of companies. But for a for profit company, every dollar spent requires a significant amount of effort to earn it. I worked in distribution for almost ten years, so this is my experience. Target gross margin on sales was 20 percent. So for every 100 dollars sold, 20 is profit. But that doesn’t take into account the cost to produce it. You’ve got to pay someone to source material, pay someone to take orders, pay someone to ship it, pay supervisors, warehouses, pay rent, cleaners, energy…etc. at the end of the year, we contributed like 2-3 cents on the dollar in NET profit. So for 1000000 in sales, 20-30,000 in net profit.

If you’re able to reduce 4 different departments budgets by 5000 each, you can double your net profit with the same sales. That’s a SIGNIFICANT motivation for the branches management to cut budgets. Because they DO get management incentives on that net contribution.

5

HangrySkeptic t1_j2f13si wrote

Have you never seen a tree that splits into two trunks?

The Schism of 1054 that split eastern and western practices was still a formal spilt from Western Christianity (i.e. Roman Catholicism) to recognize an equally long standing set of practices and traditions. There were other political factors that assisted the formal split and those do not negate the long standing traditions of the eastern church. I get it but it was still an ELI5 explanation.

2

surreal_blue t1_j2f0w0i wrote

Nitpick on the nitpick: while a cardinal does not rule over other bishops, there are metropolitan archbishops and suffragan bishops. A metropolitan is the head of an ecclesiastical province and doesn't rule over other bishops as such, but is more like a general overseer and symbolic head of the province.

3

nstickels t1_j2f0dmf wrote

One thing I don’t see mentioned is that up until 1054 AD, all Christians were Catholics. In 1054, the Eastern Orthodox broke off from the Catholic Church. Then the whole Protestant reformation started in 1517 with Martin Luther, a German Catholic Priest, was upset at the Pope and the Church for a variety of reasons, but the primary one being the Pope selling indulgences (free entry into heaven) to finance the building of St Peters Cathedral. The Pope didn’t like his rule being questioned (due to the Catholic belief in Papal infallibility, meaning if the Pope says or does it, it is right), so he excommunicated Luther (kicked him out of the Church). However Luther was extremely popular in Germany, so he still had a large group of followers that he continues to preach to. This group went on to become the Lutherans. Other religious leaders saw it was possible to nitpick certain Catholic beliefs, which led to many other Protestant churches forming like the Baptists, the Calvinists, the Anglicans, etc. This cherry picking of ideas has continued since then leading to hundreds of distinct Protestant sects. All of whom are still Christian, but vary in their specific ideology from other Christian sects, including whether or not other Christian sects will go to heaven or not.

1

Browncoat40 t1_j2f07ub wrote

For many companies, renting is a better tax situation because they can claim rent as a business expense that means their net profit (the number that is actually taxed) is much lower. So even if a company wants to own a building, the owners will create a separate business that owns the building and rent it from their other business.

6

themagicmunchkin t1_j2f057g wrote

Most codeine cough medicines also have an expectorant in them as well so when you do cough it does help you get stuff out. None of the prescription cough medicines completely eliminate coughing so you'll still be able to clear mucus from your respiratory system.

I'm on one right now because I've got a pretty severe case of bronchitis, but I only ever take it at night time because even a little bit of codeine gets me hella high, and even then it only mildly reduces my cough.

18

NoSoulsINC t1_j2f04eq wrote

It’s doesn’t solve the problem, at least not long term. The solution is to remove the clog, usually via snake or or auger. Some drain cleaning chemicals can make the clog worse over time or damage pipes. Plumbers would rather be able to fix the problem right away and do it correctly

21