units

Nov. 25th, 2024 11:10 am
juan_gandhi: (Default)
  • 1 ms, millisecond, a small measure of time ("m" for milli, meaning 10−3 = 1/1000 multiplier).
  • 1 Ms, megasecond, a large measure of time ("M" for mega, meaning 106 = 1 000 000 multiplier).
  • 1 mS, millisiemens, a small measure of electric conductance.
  • 1 MS, megasiemens, a large measure of electric conductance.
 

(FYI: one siemens is equal to the reciprocal of one ohm (Ω−1) and is also referred to as the mho)
juan_gandhi: (Default)
 So, if you think you call a function in your code, and this function returns current time, or a random number... IT'S NOT A FUNCTION. Your code is function of "random number", or "time".

So, if your code is written as something that retrieves this kind of data, to test your code, you should provide that data. Not just today, but try the time, like 10 years from now. As to "random", You provide the randomness. If your code cannot be fixed to behave as a function of those inputs, make your "random stream" or "time stream" not hard-coded, but substitutable. Mockable. And mock it in your tests. MAKE SURE that you don't provide just happy-path data. Provide anything. A sequence of 100 numbers 4 for random. Time that is 10 years from now. Or even 30 yeas from now.

Make sure that your tests don't depend on anything. Because test Must Be Reproducible.

All these things, I know, are obvious to some, and not obvious to others.

If you still have questions, ask. But don't argue. Because what I say is math. Unless you have another math (some people do), or another logic (there's plenty of them), please don't argue.

I'd be glad to see how all this changes if logic is e.g. linear. 

 

wow

Jan. 10th, 2017 06:33 am
juan_gandhi: (Default)
https://en.wikipedia.org/wiki/Krohn%E2%80%93Rhodes_theory

Also applicable to AI, psychology, physics.
Also there's a version for category theory.

It's about deciphering and classifying the fabric of space and time. 

I even read a book once dedicated to it, but I still remained clueless.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 6 7
8 9 10 11 121314
15161718 1920 21
22232425262728
2930     

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 25th, 2025 01:28 pm
Powered by Dreamwidth Studios