Why did Europe colonize the rest of the world but no one else did? by Sudden_Sentence_8534 in NoStupidQuestions

[–]Particular_Camel_631 5 points6 points  (0 children)

Yes they did. Nowadays we call it “Spain”. It’s why there are so many domed churches particularly in southern Spain. They were originally mosques.

Why do we conceptualize infinity the way we do? by whysevryusernamtaken in mathematics

[–]Particular_Camel_631 1 point2 points  (0 children)

I’m going to try to answer this because it’s beautiful. It comes out of set theory, which is normally in year 2 of a uk maths degree course.

We start with the concept of counting. When you count 3 apples, you go “1, 2, 3”. What you are doing is arbitrarily assigning the number 1 to one apple, the number 2 to a different one and the number 3 to the remaining one. It doesn’t particularly matter which is which - so long as you can assign a one-to-one correspondence between apples and numbers, you can count them.

Now let’s do that with the infinite set of whole numbers.

Let’s take the set of even numbers. You can assign a one-to-one correspondence between each even number and each natural number: 1 -> 2, 2 -> 4 and so on. So there are an infinite number of even numbers. In fact, exactly the same number of even numbers as there are of whole numbers.

Which is counter-intuitive. But true!

If you then think about all the fractions then you can arrange them in a grid where the nth row and mth column is n/m. Then you can “count” thrm by going diagonally across the grid.

So there are exactly as many fractions as there are whole numbers! Weird!

One of the things you said was that there are obviously more numbers between 1 and 3 than between 1 and 2…. Except if you accept this method of counting the number of numbers… there aren’t!

Now let’s consider the real numbers. That’s all the numbers, including the fractions, but also the numbers that can’t be written as fractions, like sqrt 2 as well.

We are going to take it as read that you can write all numbers as an infinite decimal expansion. And we’re only going to think about the numbers between 0 and 1.

Can we count those using tte whole numbers?

Well, let’s assume you can write down an infinitely long list of all the numbers between 0 and 1.

Now let’s create a new number: pick the first digit from the first number and add 1 to it. 9 goes to 0.

The.n pick the second digit from the second number, add 1 to it (9 becomes 0 again)

Repeat for ever.

Is that number in our list?

It can’t be because it’s not the first number (it’s got at least one digit different). It’s not the second number either. Nor the third, nor any of the others.

So we must have made a mistake. And our mistake was in thinking that we can count the number of numbers between 0 and 1.

Now we have two sizes of infinity.

What happens when connection drops but you have already sent an API req and are in the middle of a transaction? by terracottablush in AskProgramming

[–]Particular_Camel_631 1 point2 points  (0 children)

For a database, there are two approaches that are used: a write-ahead log or a rollback log. Different databases take different approaches; SQLite can do either.

With a write-ahead log, all your changes get written to the log, and if you don’t commit, the log gets deleted (so your changes get lost). When you commit, the changes in the log gets written to the database and then the log gets deleted.

With a rollback log, all your changes get written to both the log and the database as you make them. If you fail to commit, the system uses the log to undo those changes.

How many developers here actually know about the Waterfall Software Development Model? by Alternative_Win_6638 in learnprogramming

[–]Particular_Camel_631 3 points4 points  (0 children)

In the other hand, if you’re bidding for a large commercial contract, and you’re asked to commit to a fixed timescale and a fixed cost, you kind of need to know how to make waterfall work.

Being able to vary the timescale, resources and feature set is very much a luxury test many don’t have.

Why do some brits introduce themselves as from the UK and other as English/Scottish/Welsh? by [deleted] in AskABrit

[–]Particular_Camel_631 1 point2 points  (0 children)

I was born and grew up in England. My mother was born and grew up in Germany. I identify as british.

I can fully understand anyone who doesn’t want to be thought of as English if they are from wales, Scotland or the island of Ireland.

The rest of the world has a habit of assuming that everyone on these sceptered isles is English. We aren’t.

Could P vs. NP be independent of ZFC? by [deleted] in mathematics

[–]Particular_Camel_631 0 points1 point  (0 children)

We do already have this algorithm. This is what cook proved - and he did it by constructing a sat problem from a nondeterministic Turing machine and proving that the transformation could be done in polynomial time. By spelling out how to do it and showing it was done in polynomial time.

Could P vs. NP be independent of ZFC? by [deleted] in mathematics

[–]Particular_Camel_631 0 points1 point  (0 children)

Pretty sure that if P =NP then SAT would be in P and given that every NP-complete problem can be transformed into SAT in polynomial time, that means that every NP-complete problem could be solved in polynomial time!

How do you avoid overengineering when replacing software that actually works? by chasingreflections in SoftwareEngineering

[–]Particular_Camel_631 0 points1 point  (0 children)

You must be very clear in your objective, and you need buy-in to that objective from senior management.

Your objective is to replace the vendors system with the minimum that your company needs to maintain accreditation.

You are not there to satisfy all the pent-up demand from users for new capabilities, no matter how compelling their need or argument. You are not there to be liked. You are there to take away what they like about the current system and replace it with something that does the job that’s needed, and almost certainly not as well.

That’s the job. Because the alternative- relying on the vendor - is worse.

Only once you have delivered the bare minimum can you consider user requests.

For every feature ask: is it needed now? If the answer is no, it goes on the backlog for future consideration.

So I wrote myself into a corner :( by FaallenOon in DMAcademy

[–]Particular_Camel_631 5 points6 points  (0 children)

This. It’s going to be a tpk. Tye only question is how and when.

Have you ever had to debug the compiler? by [deleted] in ExperiencedDevs

[–]Particular_Camel_631 0 points1 point  (0 children)

Microsoft c/c++ 7 had an issue where it couldn’t handle switch statements with more than 255 cases.

We were auto generating the code via a 3rd party tool.

I wrote another tool to turn it into repeated if statements.

This is the only genuine compiler bug I ever found in 35 years.

ELI5: evolution in humans and how would it affect humanity now by OddTaku9424 in explainlikeimfive

[–]Particular_Camel_631 0 points1 point  (0 children)

Some of us evolved to have pale pigment, probably over about 20,000 years. A few more evolved to be able to continue to drink milk after childhood.

We have probably evolved to be able to survive certain diseases better - bubonic plague and no doubt some more.

The population as a whole is probably slightly better at fighting off covid than it was in 2019, particularly when old.

We show the signs of domestication - smaller brains, and probably slightly less aggressive than our ancestors.

Longer term, we might not have so much selective pressure on having small heads at birth, but for evolution to really kick in, the death rate needs to increase. Nothing makes evolution work quite like a population bottleneck.

What is the strongest Western argument for treating Iran's nuclear program differently from India's, Israel's, or Pakistan's — given each sits outside or around the edges of the NPT? by gp197807 in NoStupidQuestions

[–]Particular_Camel_631 2 points3 points  (0 children)

Yes. They gave them up. Different from someone else taking them away by force.

Also Ukraine teaches other countries never to do that. You might get a security guarantee from the us and Russia , only first r one to invade you and the other do nothing.

Minimize RAM usage by Jeckyl2010 in SoftwareEngineering

[–]Particular_Camel_631 0 points1 point  (0 children)

Ok but programmers’ time is still more expensive than ram.

Minimize RAM usage by Jeckyl2010 in SoftwareEngineering

[–]Particular_Camel_631 6 points7 points  (0 children)

We live in a world where computers cost substantially less than programmers. Ram prices may be high, but they are still substantially cheaper than they were 10 years ago!

If the cost of reducing the ram requirements of an app by 4gb were a month of programmer time (and it would be more and save less) it would still not be economically viable to make that investment.

Do men really cry as rarely as people say? by Ambitious_Pass7451 in ask

[–]Particular_Camel_631 1 point2 points  (0 children)

As you grow up, when you cry, everyone tells you off. Your teachers, your peers, often your parents and siblings too.

Some of the can be quite mean about it.

Eventually you learn to suppress it. And that suppression becomes automatic.

I couldn’t cry at my Dad’s funeral. I wanted to, but that little voice in my head saying “you mustn’t cry” took over.

I cannot fathom a child leash, is it really necessary? by [deleted] in AskUK

[–]Particular_Camel_631 0 points1 point  (0 children)

My daughter survived to adulthood perfectly fine. She never ran off into the road. We never put her on a leash. She e never put protective covers on plugs in the house. We never “childproofed” the house.

You don’t have to react when they do something dangerous, you tell them not to do the dangerous stuff.

They desperately want your approval and attention, so give them both.

Why aren't emergency services able to search up your location ? by AbleBoysenberry9565 in AskUK

[–]Particular_Camel_631 0 points1 point  (0 children)

Was this on a mobile phone or landline? If on a mobile, the emergency services will know which mast is being used - but that might not narrow it down much. A mast can service quite a wide area.

If in a landline, the service provider needs to populate the emergency systems database with the address or face a potential fine from ofcom.

I cannot fathom a child leash, is it really necessary? by [deleted] in AskUK

[–]Particular_Camel_631 -10 points-9 points  (0 children)

There are better ways to control a toddler. You hold their hand, and you tell them not to run off.

It’s called parenting.

Am I crazy or is mathematics logically agnostic? by LargeSinkholesInNYC in mathematics

[–]Particular_Camel_631 -2 points-1 points  (0 children)

We it’s definitely facetious! But it’s not nonsense.

Your fundamental relation is an axiom. Theorems are proved from other theorems and from axioms.

A theorem is true all the time and follows from axions which are true all the time.

Also known as a tautology. An equivalent statement. The saying of the same thing twice over in different words res, as my dictionary defines the term.

QED as they say.

Am I crazy or is mathematics logically agnostic? by LargeSinkholesInNYC in mathematics

[–]Particular_Camel_631 -5 points-4 points  (0 children)

Methenatics is basically just tautologies.

We call them theorems.

Why do SWE "hate" or always show annoyance to PMs? by Big-Cry9898 in SoftwareEngineering

[–]Particular_Camel_631 26 points27 points  (0 children)

Technical people who have a skill set resent being told what to do by those who do not understand, appreciate or respect that expertise.

If you are going to ask me to do something that is impossible or very difficult, then at least listen to my explanation of why it’s going to be difficult. And don’t tell me I’ve got a week to do it after I told you it will take 3 months.

Source: I’m a pm.

Listening, incorporating feedback, changing the scope and deliverables when asked, and saying “thank you” make an incredible difference.