• 0 Posts
  • 30 Comments
Joined 1 year ago
cake
Cake day: June 9th, 2023

help-circle
  • 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.orgtoChat@beehaw.orgPeople aren't stupid.
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    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.orgtoChat@beehaw.orgPeople aren't stupid.
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    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.




  • 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.



  • 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.





  • Never mind flaky internet, what about people that do events?

    Things like PowerPoint presentation machines, VJ systems, video servers (for massive multiscreen playback).
    You can’t go into a field for a festival and expect reliable internet.
    You can’t go into a theatre and expect reliable internet, especially when 3k+ people turn up.
    There are a few systems that run OSX, but Apple’s hardware doesn’t give you as much control as something like an Nvidia Quadro with sync cards. 99% of the big shows will be ran from Windows OS


  • Which is awesome.
    I actually have no idea where Blockchain tech could exist.
    A reputation could be an excellent example. But if it can be manipulated or gamed, it kinda makes it pointless.
    At which point a centralised registry makes sense.
    As long as the central registrar can be trusted.
    But I don’t think Blockchain solves that point of trust.

    So, once again, turns out Blockchain tech is pretty useless.





  • This is how mixr - or whatever it was called - died out.
    They bought in a couple big streamers expecting the rest to follow.
    But what makes twitch so good are the smaller communities.
    They often play niche games, have their own fantastic history, raiding each other, nice people, nice streamer interactions.

    Some streamers I know have talked about kick. Apparently they are offering a 95% split.
    I know twitch is probably extremely inefficient, but if twitch is struggling with a 50/50 split, how the fuck can kick maintain a 95/5 split? And if you move your entire community to another platform, just for that platform to die?

    YouTube is probably in the best position to rival Twitch.
    But their live stream system and discovery is severely lacking


  • I personally use cloudns as DN server. It’s fine. It was good before a lot of other services were developed. No idea what the kids are using these days. But cloudns gives me full control over records, decent enough interface, 2fa, and has an acme/letsencrypt API.
    I buy the domains from whomever, and change the NS records to cloudns. This bit is messy, but I also have geo-located domains that only some registrars can manage.

    Cloudflare is well known, and have their own registrar.
    I’m sure Amazon has similar.
    I’ve heard namecheap and porkbun are be decent.
    Like I said, no idea what the cool kids are using

    I feel like this gets asked a lot on homelab and selfhosted over on reddit. Some google-fu will probably help.