My problem is to manage an aquarium.
but it seems more correct and beautiful
Currently I have based my project on RTC, which is updated by a method call in the code.
I do not like this, it lets to the programmer the responsibility to ensure that the time is updated
simply believe it is better to avoid putting the "RTC.refresh ()", solving with something that just works without requiring you to manually refresh, so I thought of the thread.
probably the reason of the thread absence is due to the desire to direct the product to the general public, who perhaps had never even write a "hello world " ...
Although threads seem to be a small step from sequential computation, in fact, they represent a huge step. They discard the most essential and appealing properties of sequential computation: understandability, predictability, and determinism. Threads, as a model of computation, are wildly nondeterministic, and the job of the programmer becomes one of pruning that nondeterminism.
I have based my project on RTC, which is updated by a method call in the code.