Slotos

joined 1 year ago
[–] [email protected] 0 points 3 months ago (3 children)

How very republican of you.

[–] [email protected] 16 points 4 months ago

Laws of Ukraine explicitly state that elections cannot be held in a wartime. These provisions are older than current presidency and parliament.

Claim to illegitimacy due to refused elections is the best way to tell everyone you gobble up Russian propaganda.

[–] [email protected] 9 points 4 months ago

Occupying a country that size doesn’t take a mere week. So no, it won’t.

[–] [email protected] 4 points 4 months ago (8 children)

Oh yeah, please do imagine there is no such thing as a time zone.

On an ellipsoid!

[–] [email protected] 4 points 4 months ago

You’re one link click away from understanding why your message is stupid. Question is whether it’s message alone.

[–] [email protected] 4 points 4 months ago (1 children)

Or Star Control 2 Hyperspace theme.

[–] [email protected] 1 points 5 months ago

Ah, I didn’t get that impression myself, but looking at the article again I can see it.

[–] [email protected] 6 points 5 months ago (2 children)

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.

[–] [email protected] 5 points 5 months ago

Did you systemically persecute Indian business owners in Britain, escalating it to ethnic cleansing?

The analogy is historically exact.

[–] [email protected] 2 points 5 months ago (1 children)

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.

[–] [email protected] 2 points 5 months ago

A direct quote, I dare say.

[–] [email protected] 9 points 5 months ago (2 children)

You know how they call traditional medicine that works? Medicine.

You know how they call magic that works? Technology.

And by “them” I mean “us”.

view more: ‹ prev next ›