• 0 Posts
  • 29 Comments
Joined 2 years ago
cake
Cake day: December 24th, 2023

help-circle



  • My understanding so far is:

    if business logic assumes a set of preconditions before a particular piece of code that the language/runtime/os satisfies… then it’s an immediate assert. Any kind of IO, memory creation and OS operations fall into this carefory.

    However if the business logic assumes something in its own domain and that assumption does not hold then its better to handle that instead of crashing. Ex. being you expect a queue to have at least one element in some pipeline and if it is empty then return saying nothing to be done.

    Edit: don’t assert/crash if your application is single process multithreaded unless you want your friend from accounting asking you why their stock ticker crashed just when they clicked a button in the coffee shop module of your app. Use some thread exit mechanism.
















  • Hey man just because you got a threesome doesn’t mean its common.

    Spontaneous group happens in real life -> I agree.

    All the time -> I don’t agree

    There are people who seek it out

    But that doesn’t mean they get it “all the time”

    Unfortunately the difference between those two types of people defines the lens through which you define a “naive” person.

    And your lens is too much caliberated to view every encounter as an opportunity even if you don’t know whether the OP is actually into it or not, thus projecting your expectations into the scenario.


  • who is the thief here? One who wants outsized profit beyond 10 generations of children? Or the average overworked joe who hates dealing with the 3rd 2 minute ad on a 10 minute video?

    Maybe realise that there’s more important things to worry than denying “projected profits” from a billion dollar megacorp which steals regularly from people (in the form of bribing politicians to make policies that benefit them and disadvantage actual people, or destroying the earth for training LLMs, or stealing content to use for the same LLMs)