Recent comments in /f/explainlikeimfive
tiltboi1 t1_j2f2c5o wrote
Reply to ELI5. What does "return" do in programming? I read about it a lot and still dont understand the purpose. by BlendsLoL
“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.
[deleted] t1_j2f2b0b wrote
Reply to [ELI5] Why do plumbers hate Drano? by kalesalaad5
[removed]
surfmaths t1_j2f2asv wrote
Reply to ELI5. What does "return" do in programming? I read about it a lot and still dont understand the purpose. by BlendsLoL
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.
ScienceIsSexy420 t1_j2f2826 wrote
Reply to comment by MyFavDinoIsDrinker in ELI5: If penicillin became the pinnacle antibiotic why are many of us now allergic? by stealth941
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.
blipsman t1_j2f23vg wrote
Reply to ELI5: Why do we board up the windows of abandoned or currently renovating buildings instead of leaving the glass? by bandreasr
If glass gets broken and not repaired, critters and the elements will destroy the inside; thieves break in to steal anything of value like appliances, copper wire and pipes.
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.
Nice_Sun_7018 t1_j2f1wad wrote
Reply to comment by MyFavDinoIsDrinker in eli5 Why is being barefoot unsanitary? by GoodLittleTerrorist
Yes. I would add too that many diabetics have neuropathy, so something small will lodge itself into their skin and they literally cannot feel it the way “normal” people can.
carlitospig t1_j2f1uu3 wrote
Reply to comment by themagicmunchkin in ELI5. Why is honey and lemon a popular cure for cold like symptoms. What makes lemon more effective than say an orange or lime? by alexkid_in_realworld
Hope you feel better soon, thanks for the additional context.
TheZerbio t1_j2f1u56 wrote
Reply to Eli5 why do we as humans, globally, accept to pay a different price for the exact same product just somewhere else on the globe? by [deleted]
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.
themagicmunchkin t1_j2f1pmp wrote
Reply to comment by carlitospig in ELI5. Why is honey and lemon a popular cure for cold like symptoms. What makes lemon more effective than say an orange or lime? by alexkid_in_realworld
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.
kalesalaad5 OP t1_j2f1nlh wrote
Reply to comment by NoSoulsINC in [ELI5] Why do plumbers hate Drano? by kalesalaad5
Ahhhh ok gotcha
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.
stilsjx t1_j2f1k4w wrote
Reply to comment by devil_d0c in ELI5: Why do companies require annual budget be spent 100%? by angrybird7677
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.
EclecticKant t1_j2f1jai wrote
Reply to comment by [deleted] in Eli5, Why can you lift more will both hands than each hand can lift combined by Cocaimeth_addikt
If someone with one hand can at most lift 20 lb, with two hands they can probably lift at least 50 lb, which is more than the sum of the combined hands alone.
HangrySkeptic t1_j2f13si wrote
Reply to comment by JustinianImp in eli5 Christian vs Catholic? by shad0w_qween
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.
surreal_blue t1_j2f0w0i wrote
Reply to comment by deep_sea2 in eli5 Christian vs Catholic? by shad0w_qween
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.
Tallguy67ca t1_j2f0suh wrote
Reply to [ELI5] Why do plumbers hate Drano? by kalesalaad5
Of the 20 times I have tried Drano, it has only worked once. The other times the plumber now needs to work on a pipe full of caustic chemicals that want to burn the plumber.
amazonfamily t1_j2f0s99 wrote
Reply to [ELI5] Why do plumbers hate Drano? by kalesalaad5
Drano is a very strong caustic substance that can give chemical burns. It makes the job dangerous for the plumber.
nstickels t1_j2f0dmf wrote
Reply to eli5 Christian vs Catholic? by shad0w_qween
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.
LordCoweater t1_j2f0bx9 wrote
Reply to comment by ITCoder in ELI5. Why is honey and lemon a popular cure for cold like symptoms. What makes lemon more effective than say an orange or lime? by alexkid_in_realworld
Raw, or? One clove or a third? Thanks.
Rojibeans t1_j2f09ui wrote
Reply to comment by jswansong in Eli5 How exactly does Noise cancellation work? That too in such small airbuds by Professional-Ad3441
This sounds like some insanely complicated piece of technology. Actually kind of blows my mind
Browncoat40 t1_j2f07ub wrote
Reply to ELI5: Why do companies that own a building sell the building and lease a space in it? Ex: CBS with television city by hypersucc
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.
themagicmunchkin t1_j2f057g wrote
Reply to comment by TeamGrissini in ELI5. Why is honey and lemon a popular cure for cold like symptoms. What makes lemon more effective than say an orange or lime? by alexkid_in_realworld
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.
NoSoulsINC t1_j2f04eq wrote
Reply to [ELI5] Why do plumbers hate Drano? by kalesalaad5
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
explainlikeimfive-ModTeam t1_j2f2dkm wrote
Reply to comment by [deleted] in ELI5. Why is honey and lemon a popular cure for cold like symptoms. What makes lemon more effective than say an orange or lime? by alexkid_in_realworld
Please read this entire message
Your comment has been removed for the following reason(s):
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.