• 0 Posts
  • 146 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle


  • Best Practices thinking considered harmful. 🤷

    I like test names that are full sentences. Doing this for its own sake is unnecessary. It’s probably wise to practise this for a year, then decide when you still need it.

    For me, quite often, a combination of the test group name (often naming a behavior) and test function name (often naming a special case of that behavior) suffices, even though it is not a full sentence. (Example: test class SellOneItem, test method productNotFound. Is this not clear enough?)

    Test function names that merely repeatedly duplicate details (“conversion should…” to start 12 test names) indicate a test group trying to emerge (“Conversion Tests”). Insisting on full sentences for its own sake often either masks this risk (and delays helpful refactoring) or represents redundancy (merely reiterating what has been helpfully refactored).

    I have found this attention to full sentence names most helpful for tests whose audience is not programmers, since those folks are not accustomed to common source code conventions and patterns. For Programmer Tests, I think “should” turns this helpful advice into a risky overstatement.






  • “summation” is also related to summary. All these words are related to reducing a collection of things to a single thing. A sum reduces a collection of numbers to its total. A summary reduces a collection of thoughts to its essence. A summation is effectively a synonym for a summary.

    The word multiplication describes the operation applied to each pair of numbers. The word production would refer to the act of multiplying an arbitrary collection of numbers. Just as it would be for addition and summation.

    It would fit the pattern.




  • I would want to repeat that study with novels written in the past 25 years before concluding too much. Yes, the participants had access to a dictionary, but I imagine that needing to decipher certain parts, such as foreign cultural references and familiar words with unexpected meanings, interferes with the brain’s usual functions for turning words into images in the mind’s eye. And this even ignores the folks with aphantasia like me.



  • Political discussions online rarely lead to satisfying resolutions. As a result, political discussions bleed into everyday discussion in the desperate hope that something, somewhere, will magically make sense.

    Similarly, when businesses have meetings that don’t actually resolve matters, every meeting becomes a desperate chance to discuss things that matter in the hopes they’ll be resolved, so then every meeting that needs to happen will happen during every scheduled meeting, even wrhb ostensibly unrelated. This continues until meeting culture changes and even overall communication culture changes.

    It seems natural and reasonable in such an environment for many people (like you) to want to disengage. Why continue doing something that never seems to lead to resolution?







  • Or, and hear me out, the country that built itself in part on being prepared to meet tyranny with force is the one who ought to actually meet tyranny with force when the time comes. Other countries, which did not do this, have every right to call out hypocrisy and cowardice for what it is, especially after decades of watching the cowards be cowardly.

    And no, my country is far from perfect. Surely you see how irrelevant that is to this discussion.

    UPDATE: How nice! You understood me after all. You also assumed some facts not in evidence, but in a discussion such as this, that’s likely to happen. I’m not “keen”, I’m merely fucking exhausted.

    As a way of calling out the hypocrisy of the people who claim to be all gung-ho to stamp out tyranny from behind the barrel of a gun I have no issue with it […] https://lemmy.world/comment/16821307