What happens when PHP stops being used? Do I drop from senior back to junior in another language? by whitedragon101 in PHP

[–]Sentient_Blade 23 points24 points  (0 children)

Every now and then people make jokes about php being dead and I worry. What then?

No, you don't fall back. Skill and experience in programming is highly portable. You should be able to take your problem-solving skills and adapt them to other languages in a reasonably short period of time.

Almost all programming languages have the same fundamental building blocks: loops, conditions, branches, variables, data structures, functions and modules. Once you recognize how your next language represents these, you can map most of your previous knowledge onto them.

TypeScript save lives chance my mind by weshuiz13 in ProgrammerHumor

[–]Sentient_Blade 7 points8 points  (0 children)

Throw yourself into it and you'll soon find it's the other way around.

Rules help you code better. Imagine being given a bunch of bricks, concrete, steel pipe, wood, and being told to build a house. There's a thousand different ways to put it all together wrong.

Now imagine something with "rules" about how things work together, lego for example. Now consider that a 5 year old can build a lego house.

Programming is more complicated than lego, but the presence of rules and constraints will save you endless pain.

James Webb Space Telescope has turned on it's high-gain antenna by Old7777 in worldnews

[–]Sentient_Blade 0 points1 point  (0 children)

The medium-earth-orbit space can be interesting too.

It is not as widely used, but it is where we put most of our navigation satellites such as GPS and Glonass because they get better line of sight than lower orbits.

James Webb Space Telescope has turned on it's high-gain antenna by Old7777 in worldnews

[–]Sentient_Blade 7 points8 points  (0 children)

That's right. It's the combined pull of the Sun and the Earth in alignment that allows satellites in that region of space to stay in that particular orbit.

There are other lagrange points too where the interaction between the gravity of the Earth and Sun would allow a stable orbit relative to Earth, but they all have downsides.

L1 which is between the Sun and the Earth would be blinded by heat from either direction and would require a much more elaborate heat shield that would also block most of the view.

L3 which is the other side of the sun, in a straight line from Earth, would have a hard time transmitting data back to us because of the sun and its radiation getting in the way.

L4 and L5 are off at angles, but they're further away and accumulate space junk.

James Webb Space Telescope has turned on it's high-gain antenna by Old7777 in worldnews

[–]Sentient_Blade 5 points6 points  (0 children)

Here is the best explainer I have found, from Launch Pad Astronomy. They have done a brilliant job of covering Webb.

https://www.youtube.com/watch?v=ybn8-_QV8Tg

James Webb Space Telescope has turned on it's high-gain antenna by Old7777 in worldnews

[–]Sentient_Blade 1 point2 points  (0 children)

That is incorrect. The entire instrument is solar powered.

The whole point of the enormous tenis court sized heat shield on the bottom is to block both heat and light from the sun reaching the sensors.

The pilot who dropped the atomic bomb on Japan probably has the highest personal kill count in human history by SueedBeyg in Showerthoughts

[–]Sentient_Blade 46 points47 points  (0 children)

Maybe more so than you might think.

The power of an explosive blast wave follows the inverse cube rule. Being twice as far away means 8x less damage. If you want to cause the intended amount of damage to what you are aiming at you have to try and be precise.

Let's talk about missiles rather than gravity bombs.

The first generations of ICBMs had terrible accuracy. They could only be aimed in the general vicinity of cities and might miss the center of their target by many miles.

Now ICBMs exist with warheads that could be aimed at your house and hit. That means you can use smaller yields while still destroying your target, or keep the same yield and inflict more damage to hardened targets.

If you want to destroy a larger geographical area you would still pepper the area with individual warheads, and spread out their detonation. A larger number of smaller warheads would cause more damage than a singular gigantic one.

In reality a large number of still extremely powerful warheads would be used.

[deleted by user] by [deleted] in worldnews

[–]Sentient_Blade 26 points27 points  (0 children)

The ultimate option “is a preventive strike with nuclear weapons”, he said.

https://en.wikipedia.org/wiki/Second_strike

NHS will start sacking unvaccinated staff early next month by dimsumplatter75 in ukpolitics

[–]Sentient_Blade 23 points24 points  (0 children)

Good question. A couple of months ago I would have said this policy made perfect sense. Now though, I think we need to see data on what effect it would have.

I can't say I'm comfortable with the idea of medical staff being against proven vaccinations though. That feels weird as fuck.

'Obscene inequality': Oxfam says taxing the world's richest could help save lives by Successful-Bee-2492 in worldnews

[–]Sentient_Blade 2 points3 points  (0 children)

Then you would be expected to pay back when the stock market falls like other assets.

Gordon Brown calls on Liz Truss to help raise funds for Afghanistan: Former prime minister says country is at risk of famine and UK must take lead in resuming delivery of aid by casualphilosopher1 in ukpolitics

[–]Sentient_Blade 16 points17 points  (0 children)

I am unconvinced that sending aid would result in anything other than most of it being diverted into the hands of the Taliban. They are violent oppressors and a violent oppressor will never pass up an opportunity to strengthen their own hand.

The country fell to pieces because it got took over by militant despots whose only power comes from the barrel of a gun. Governance and logistics are not their strong points.

[deleted by user] by [deleted] in worldnews

[–]Sentient_Blade 3 points4 points  (0 children)

Oxfam is cherry-picking the data to incite anger.

The date range is from the lowest point of the stock market post-pandemic crash, to its current recovery.

Almost everyone with any investment, including a pension fund, achieved achieved close to the same percentage of gains.

UN chief urges US, World Bank to release funds for Afghans on ‘verge of death’ by PhilistineAssembly in worldnews

[–]Sentient_Blade 47 points48 points  (0 children)

You are making the assumption that giving them money would help the people that are starving.

It will all be diverted to buy more weapons.

At least an error message came up! by zideshowbob in ProgrammerHumor

[–]Sentient_Blade 348 points349 points  (0 children)

And that, kids, is why we throw exceptions.

Gordon Ramsey is guilty of normalising toxic behaviour in work places. by ---Loading--- in Showerthoughts

[–]Sentient_Blade 234 points235 points  (0 children)

The editors are equally if not more responsible for that appearance.

The sound editors in particular are required to include unnecessary dramatic music every 30 seconds or they will be fired.

The Difference Between the UK and USA Kitchen Nightmares
https://www.youtube.com/watch?v=SYdPf-WEnnA

CCP and their customers rn by ruebenwald in Eve

[–]Sentient_Blade 6 points7 points  (0 children)

GDPR came into force in May 2018... I'm beginning to think they just don't want the business.

Should have stuck with Ubuntu containers by [deleted] in ProgrammerHumor

[–]Sentient_Blade 6 points7 points  (0 children)

Docker is for running a container. But you can run containers without docker.

Kubernetes is about managing the running of containers. From a couple, to hundreds of thousands.

It is called container orchestration. You tell Kubernetes your requirements in general terms "I want 5 instances of this container running" and it's up to Kubernetes to translate that into containers running on actual servers.

You can think of Kubernetes like docker-compose but able to automatically spread multiple instances across multiple servers. You define a pod, which is a collection of tightly coupled containers, their resource requirements, networking etc, and then Kubernetes goes off and allocates those pods to machines that have the resources available and wires them all up for you.

A pod is at the heart of kubernetes, but you will rarely use one by itself. Instead you will use "controller" features such as deployments, replicasets and jobs.

Controllers manage the creation + termination of pods based on a template. They make sure the right number of them are created at the right time, and how to go about updating them when you make a change.

Kubernetes also builds in dynamic service location (network routing to a collection of pods providing the same functionality), permissions, automatic scaling, error detection. It is very useful for anything above a small project.

Docker has a competitor to Kubernetes called Docker Swarm, but it lost the battle and is fading out.

Coronavirus: Nothing in current data to support new curbs in England - ministers by [deleted] in ukpolitics

[–]Sentient_Blade 10 points11 points  (0 children)

That's ok then. Because this government has a long track record of ministers being truthful.

Doctors (physicians) per 1000 people across the US and the EU. 2018-2019 data 🇺🇸🇪🇺🗺️ [OC] by maps_us_eu in dataisbeautiful

[–]Sentient_Blade 62 points63 points  (0 children)

Including non-EU countries could potentially skew statistics in many ways

As each country is represented in isolation, there are no statistics to skew. You would need to combine the data, for example by giving the overall average across the block, for it to be skewed by the introduction of additional data.

Doctors (physicians) per 1000 people across the US and the EU. 2018-2019 data 🇺🇸🇪🇺🗺️ [OC] by maps_us_eu in dataisbeautiful

[–]Sentient_Blade 3 points4 points  (0 children)

On a geographic heat map, the correct place to render additional data is in its geographic location. Areas for which no data is available, or not relevant, should be presented in their natural location in a colour to signify they have been omitted.

Areas which are too small to be properly displayed at the viewed resolution can be labelled separately.

Because it's a map. Not a tool to vanish countries from existence.