towerful

joined 1 year ago
[–] towerful@beehaw.org 6 points 1 year ago

Tests.
Target the "business logic".
You can structure your code to facilitate unit or integration testing.
Setup tests for the key functionality. Whenever a bug gets reported, create a test or test case to address that bug, fix the bug, and ensure the test now passes.

Have a staging environment, so the site can be interacted with and tested without touching anything in production.
You can push to this often, and request some help with QA to ensure nothing is broken.

Have a testing environment. Again, a complete duplication of the infrastructure.
Set up end-to-end tests. These automate interactions with the entire application.
Have tests that run against key features. "Setup appropriate state, load form page, fill in form, click button, check that database entries are correct"... "setup appropriate state, check that submission summary shows correct data".
These are quite handy, but a lot slower and fragile than unit and integration tests.

There are automated testing platforms that can capture a "good" state of a website, then use image matching to ensure further runs visually match what it should look like.
These are normally expensive and finiky.

Hopefully you will get to a stage with your testing that your unit and integration tests catch 90% of your potential bugs, and e2e tests will ensure the core functionality is working correctly.
Then, as you do a bunch of work, you can run your tests, see they all pass, and be confident.

Finally, I will say that tooling like frameworks and typescript can catch a lot of these errors quite quickly.
However, these won't catch logic bugs - which is what tests are for.

[–] towerful@beehaw.org 6 points 1 year ago (2 children)

Utah’s safety net for the poor is so intertwined with the LDS Church that individual bishops often decide who receives assistance. Some deny help unless a person goes to services or gets baptized.

Soinds like coercion

[–] towerful@beehaw.org 2 points 1 year ago (1 children)

I think both are rational (consistent with or based on reason) it is just that one of them is using the right premises.

Man, I had a whole thing typed out when I re-read what you wrote.
I'm assuming you mean "aliens are real" is the false premise here...
Because I'm glad I re-read. I had massively mis-interpreted your comment!

2.... [Snip]

The way to teach this is critical thinking of "follow the money, follow the power".
And it's pretty murky.
I'm fairly certain "ban plastic straws" got so much traction because it diverted from actual issues.
Fishing nets cause more issues and pollution. People now hate pasta straws, and blame it on environmentalists.
Oil companies divert attention for another 5-10 years.

Maybe I'm just cynical.

[–] towerful@beehaw.org 4 points 1 year ago* (last edited 1 year ago) (3 children)

The 3 things to fix:

  1. Our collective feeling that things aren't going well
  2. Our general distrust in current authorities
  3. Our collective belief that an authority is good/necessary

...

Also if we want society to be less susceptible to this we need to fix one or all of the three things

Ok, so:

  1. Fix things that aren't going well (or make people feel things are going well).
  2. Have authorities we can trust (or make people trust our current authorities).
  3. Reject authority (or make people believe that needing authority is a good thing).

I have no idea what you are trying to say.
It all seems really wishy-washy.

But I agree that people aren't stupid.
I mean, on average, at least half the people are stupid. By whatever metric that is.
Chances are - however - they are irrational.
Despite all the evidence, they still want something to be true.

Irrational:

If you describe someone's feelings and behavior as irrational, you mean they are not based on logical reasons or clear thinking

https://www.collinsdictionary.com/us/dictionary/english/irrational

99% of conspiracy theorys are irrational.
By the time you know about a conspiracy theory, it is probably being tested and will likely be disproven. Or it has already been tested and proven to be wrong. Otherwise the conspiracy/theory would be a working scientific theory.
Believing otherwise makes you irrational.

Look at LK99. Huge deal, claimed proof, seemed legit. Within 2 months it was disproven to the satisfaction of the scientific community.

Now there will be stories about LK99 being legit, and the "scientific community" (read government) rejecting it because UFOs are going through US court whatevers. And LK99 came from extraterrestrial origins, or whatever.
This is irrational (edit: as pointed out in a comment, this is actually rational. It follows logic. But it is based on an irrational premise: that aliens exist).

Or ... scientists made a mistake.
This is rational.

( Never mind the extremely infinitesimally small chance that extraterrestrial sentient life exists and coincides with our time, travelled across the universe and failed to survive an encounter with our planet (or that they successfully contacted only the government via means they were able to keep quiet, who then successfully kept that a secret). )

Rationality is different from stupid.
You can be stupid and rational.
You can be intelligent and irrational.

[–] towerful@beehaw.org 11 points 1 year ago

References https://www.reddit.com/r/BaldursGate3/comments/15u9z0g/comment/jwoh42k/?context=3
I don't want to copy the text here, because credit where credit is due. And some things are marked as spoilers, which idk if all Lemmy clients support.

Essentially 8 levels of monk, 3 in Rogue Thief, Tavern Brawler, and 22 STR getting 8 attacks due to extra bonus attacks and flurry of blows due to feats and gear mods.
And some various WIS as damage gear mods, and some other bonuses.

[–] towerful@beehaw.org 5 points 1 year ago

For passwords in software chains, I always think of them as API keys. So, making them 32 or 64 character random strings doesn't seem ridiculous.

[–] towerful@beehaw.org 1 points 1 year ago* (last edited 1 year ago)

It's because ram is even faster with lower latency.

Pcie4.0x4 nvme is 40Gbps (I presume you mean pcie4.0 which is the newest and greatest over pcie3.0).
And that's if it can actually sustain that level of read/write consistently, and isn't just dumping data into a buffer.

DDR3 1333mhz is 80Gbps (which is 15 years old).
DDR4 2133 is 136Gbps.
These are just rough numbers. Actual throughput is going to depend on number of channels, mobo, CPU etc.

[–] towerful@beehaw.org 1 points 1 year ago

Same for wind, solar, geothermal, nuclear energy generation then?

[–] towerful@beehaw.org 1 points 1 year ago

I can tell you that big data centers likely have a 4 year hardware cycle, where it is all under warranty and service contract.
After which, it gets sold to refurbishers who refurb it and resell it. Or the datacenter may repurpose it for labs, OOB hardware, or donate it to schools.

A lot of smaller companies don't need the latest and greatest, and are quite happy running old 2nd hand hardware.

Even after they are done with it, there are plenty of hobbyists that will buy it. I have a couple 8 year old servers that run absolutely fine for what I need.

Old servers are also kept around as parts for companies that refuse to update old hardware (and will just keep buying spares, or like-for-like replacements).
The last step is ewaste, where the good stuff gets boiled in acid to extract the gold, or whatever they do.

The only things that are generally destroyed during hardware cycles are the storage, and that's normally for compliance reasons.

[–] towerful@beehaw.org 4 points 1 year ago

The salt water won't come into contact with anything except pumps, a heat exchanger and the exterior of the container.
The servers live in a nitrogen environment, so it reduces corrosion, I doubt there would be any dirt or dust. It's going to be an incredible sterile environment.

[–] towerful@beehaw.org 11 points 1 year ago (2 children)

I don't care about Manifest V3. I care about ublock origin.
When that stops working, then I'll swap.

[–] towerful@beehaw.org 11 points 1 year ago (1 children)

Ah, the new Lemmy switcharoo!

view more: next ›