Well I failed one interview because to calculate number of days in between I suggested substracting Unix timestamps and dividing the difference by 86400.
I understand the interviewer wanted to approach the problem as non decimal number of months in a year and variable number of days in a month. One day as the most granular entity. I didn't even wanted to argue over leap years and why the year 1900 wasn't one. It was consecutive meeting in a row and I was too tired for his shit.
The lithium AA/AAA/CR batteries don't seem to leak. They're not widely available though. I use them for devices which mostly sit in a drawer and their lifetime can reach 5-6 years.
Primary lithium batteries absolutely do leak, given enough time. Often the victim is an old Mac motherboard, search for "mac pram battery ruined motherboard" on an image search engine of your choice.
Haha, you just reminded me about replacing motherboard CR battery. Recently I was fixing over five years old computer, noticed the battery and thought "What does it do, I wonder if it works, perhaps I should replace it?".
Tracking weather balloons. They use lithium AAs for power, and the mission only uses a fraction of their capacity. When the balloon pops and the payload lands, there's a good pair of AA's laying in some farmer's field, stuck in a tree, or otherwise sitting around waiting for you to clean 'em up.
I just watched a video with the battery replacement in Macbook Air. There is no way the laptop will switch on after I do it by myself for the first time.
Inconsistent style. Once global functions (that's so 2000), once prototypes (that's so 2010). No lazy loading, no modularization, no state management. Mixing variable declarations with initializations, one "var" declaration in the code. He probably haven't heard about TypeScript, transpilation, and doesn't understand static typing. Fells like a show off. That guy is an absolute no-no.
Was going to ignore this comment until the last 2 sentences. I rarely come across sites / articles that do this good of a job at explaining something I think calling it a "show off" and saying the author is an "absolute no-no" is a bit rude and I don't agree with it either. If anything I appreciate the code as it is, it's very readable at least to me.
My comment was /s of course. JavaScript from 2000-2010 era can do wonders especially if you leverage modern APIs and enormous performance of modern browsers, instead of silting it up with transpilation, frameworks, and layers of modules. Unfortunately simplicity is signalling a beginner and amateur in enterprise working environment.
That's why I pass every time a fierce political discussion is just about to unleash. I have no reason to believe you and I have no possibility to verify what you're saying.