The correct term would be “presidentte”
- 0 Posts
- 35 Comments
AeonFelis@lemmy.worldtoMicroblog Memes@lemmy.world•Redistributing resources for the public good, you say?English
3·1 day agoUse all parts of the Sam Altman.
The purpose of the Nose-to-Tail approach is to show respect to the animal. Are you trying to show respect to Sam Altman?
AeonFelis@lemmy.worldto
Programmer Humor@programming.dev•some wrote A bash script that writes to Sam Altman once a day to report the RAM he missed.
7·2 days agoLLMs have the basic decency to admit they were wrong when corrected. That places their humanity level above that of CEOs.
AeonFelis@lemmy.worldto
Comic Strips@lemmy.world•I mean ... what are we doing here? [instachaaz]
1·2 days agoIt’s satire, but AFAIK the source is not The Onion.
AeonFelis@lemmy.worldto
Comic Strips@lemmy.world•I mean ... what are we doing here? [instachaaz]
18·2 days agoUnless used for images:

AeonFelis@lemmy.worldto
Programmer Humor@programming.dev•Anon died on the "clang format bad" hill
1·10 days agoNow, depending on the size (and architecture) of your system, the full test suite of into tests could take like, 10 hours.
You’ll eventually have to run these 10 hours no matter what. If you only run the unit tests you won’t be able to tell if your code actually works, and if your full e2e suite passes then you won’t learn anything of value from running the unit tests - if one of them fails you can be fairly certain that it is that unit test itself that is broken, not the product.
During development, you don’t need to run the full test suite. It’s usually quite trivial to identify a single integration test that checks the parts you are touching, and then you only have to run it to see the effects of your changes.
And even then, you’re STILL probably mocking something (direct seeding bombs into the db). Full setup of all life cycles of all your entities using their associated entities (bombs, wires, wire clippers, bomb diffusers, their rank, their bosses, their diffusion history, etc…)
Integration tests rarely (if ever) need mocks. If they need Test Doubles at all, they’d typically be _Fake_s rather than _Mock_s. But even that is not always needed - an integration test can often just use non-production versions of the real dependencies.
So - if your real software typically runs against a database that sits on a powerful server and has tables with billions of rows, the e2e tests can use the same database engine but run it locally and only put a few dozens of rows in these tables. This setup is quick and cheap to set up and tear down while still being faithful to the production setup - maybe not 100%, but orders or magnitude more faithful than a unit test’s mock that just compares the SQL commands given to it with the ones preprogrammed into it.
Another thread to pull on is what are you mocking in your tests to begin with, and if they’re not resulting in valuable test results then that goes back to one of my original points being that you might have suboptimal patterns in your production code.
Like, what logic governs bomb diffusion and where does it live? Are you mocking the right thing? If you have to mock the wrong thing… WHY? The ritual of writing those tests give you the first whiff of a potential smell.
My argument is that this is more about the “problem domain” than about the “solution domain”. Some field of software work very neatly with unit tests - general libraries are a good example. Other fields are a very poor fit, and trying to shoehorn them into using unit tests - even worse, shoehorning them into using mostly unit tests - will inevitable result in a nightmare of mock maintenance.
I tell my guys not to test implementation: test behaviour. Test contract adherence. If that’s hard, no problem, message me let’s review it. Maybe a behavior they’re trying to test legitimately should be an int test. More often than not, their design is demanding to mock something that should be decomposed further, and then composed with dependency injections that are where the units that should ACTUALLY be mocked are the things that get mocked and injected, so the unit tests are actually testing the BEHAVIORS we want to pin rather than implementations. Composition and single responsibility principal are what enable unit tests to pull their weight.
The problem is that unit tests “promote” aspects of implementation into behavior. Classic example - the exact syntax of the SQL query a function uses to obtain the data it needs is by all rights an implementation detail, but a unit test is forbidden from using a real database so it passes a mock that expects a very specific query - now it became a behavior.
I’d argue that trying to find and exploit loopholes in ethics is in itself unethical. “Do not <verb>” is not an invitation to find creative ways to <verb> without “technically” <verb>ing.
AeonFelis@lemmy.worldto
Programmer Humor@programming.dev•Anon died on the "clang format bad" hill
3·14 days agoAnd they pin behavior more than strict correctness, in my experience, but that’s a valuable signal. Canaries in the mine.
The problem is that the behavior they pin is not the official API-exposed behavior. The behavior they pin is mostly implementation details. If
diffuse(bomb)is supposed to diffuse the bomb, I need to test that given a legal instance of aBombit’d end up diffused. A unit test cannot test that - ifdiffuseis the unit being tested, thenbombis not allowed to be an actual bomb - it has to be a mock. And thusdiffuse(bomb)does not test thatdiffusediffuses a bomb - it tests thatdiffusecuts very specific set of wires in a very specific order.- If the bomb change, the unit test is till green because the mock is still replaying the old behavior.
- If I fix
diffuseto handle the new bomb, the unit test becomes red.
Once the bomb change, the unit test shows the opposite of what a test is supposed to show - and now you have to fix the test itself. Because that’s what unit tests test - they test themselves. They don’t test the system.
An integration test that would bring in an actual bomb, diffuse it, and check if it’s diffused in a controlled environment where it can’t do damage by blowing up - is going to be more expensive to run, yes, but at least you will be getting a meaningful signal out of it. It’d be testing something of value. The unit test is cheap to run (although writing it was probably more expensive), but it gives you nothing. It’s completely pointless.
AeonFelis@lemmy.worldto
Programmer Humor@programming.dev•Anon died on the "clang format bad" hill
222·15 days agoUnit tests are overrated to the point of being harmful. They have their place, but that place is certainly not “the base of the testing pyramid”. They are useful for a very specific type of “units” - and using them anywhere else just messes things up.
Protip: don’t use of using an asterisks for footnotes. There is Markdown syntax for that:
Main[^1] text[^2] [^1]: First footnote. [^2]: Second comment.It gets rendered like this:
Note that the footnotes don’t have to be at the bottom of the comment. You an put each in a paragraph immediately after its usage, and the Markdown renderer will still put them at the bottom.
AeonFelis@lemmy.worldto
Programmer Humor@programming.dev•Whenever I talk to not terminally online people
3·27 days agoIs it Georg again?
AeonFelis@lemmy.worldto
Programmer Humor@programming.dev•Whenever I talk to not terminally online people
7·27 days ago- The one preinstalled on their computer.
- The one preinstalled on their phone.
- The one preinstalled on their smart TV.
- ???
AeonFelis@lemmy.worldtoMicroblog Memes@lemmy.world•Drug addict tells Pope he isn’t allowed to weigh in on the harm drugs cause because he doesn’t do drugsEnglish
52·1 month agoThe dumbest thing here (and it was a tough competition) was using the term “influencer” to imply expert authority.
Is there a way to have friends that does not involve getting involved with other people?
AeonFelis@lemmy.worldtoMicroblog Memes@lemmy.world•Surprisingly effective explanationEnglish
4·1 month agoyeah intentionally misunderstanding it of course.
Pretty sure it’s an analogy to “just get a better job then”.
America is fine, as long as you steer clear of the United States.
AeonFelis@lemmy.worldto
Comic Strips@lemmy.world•Animals with Misleading Names by Bird and Moon
1·1 month agoBro needs to make a decision. Can’t be both a king and a hermit.



“Presidentess” then?