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

help-circle
  • It’s not “people vs persons” but “those people vs they”.

    Conversationally, “those/these” distances you from the group you are talking about, which is humorously weird when it’s your family you’re talking about.

    It’s not the meaning of the words, but habitual (and often fleeting) attribution around them that tripped you up.

    PS: “People” are uncountable, “persons” are countable. That’s basically the whole difference between the two plurals. Although it’s rapidly disappearing, as “ten people” won’t raise a single eyebrow in a conversation.






  • The author clearly doesn’t realize that they still mock in their examples. I understand the annoyance with mocking away the complexity, however.

    To address your second claim - doing IO in tests does not mean testing IO.

    I test my file interactions by creating a set of temporary directories and files, invoking my code, and checking for outcomes. That way I can write my expectation before my implementation. This doesn’t test IO, merely utilizes it. The structure in temp that I create is still a mock of an expected work target.

    Very similarly I recently used a web server running in another thread to define expectations of API client’s behavior when dealing with a very ban-happy API. That web server is a mock that allowed me to clearly define expectations of rate limiting, ssl enforcement (it is a responsibility of an API client to initialize network client correctly), concurrency control during OAuth refreshes etc., without mocking away complexities of a network. Even better, due to mocking like that I was able to tinker with my network library choice without changing a single test.

    Mocks in the general sense that author defined them are inevitable if we write software in good faith - they express our understanding and expectation of a contract. Good mocks make as few claims as possible, however. A networking mock should sit in the network, for example, lest it makes implied claims about the network transport itself.


  • Teeth cannot produce enamel. Enamel is not a living tissue and it was produced by cells outside of the tooth in a coral-like manner. In order to grow a new tooth, you need it to be fully surrounded by specialized living tissue for the whole growth cycle.

    PS: I honestly expected something like this to come out of bioelectric computation research, but progress seems slower there. Or rather knowledge and techniques in other fields is reaching critical mass, giving us these advances.








  • Please correct me if I’m wrong, but doesn’t this allow one to represent virtually any resource as a mail inbox/outbox with access through a generic mail app?

    I’m working with a specialized healthcare company right now, and this looks like a way to represent patient treatments data as an intuitive timeline of messages. With a local offline cache in case of outages. Security of local workstations is a weak point of course, but when is it not…






  • Slotos@feddit.nltoMildly Infuriating@lemmy.worldForm over function, eh?
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    3
    ·
    6 months ago

    In the dark, with the other side obscured (or just broken), you don’t want the blinker to actively prompt you to come to a wrong conclusion.

    It’s better to see a blinking light and think “I don’t see enough, gotta slow down” than see a blinking arrow and potentially not even realize it’s a turn signal.