Hacker News new | past | comments | ask | show | jobs | submit | undebuggable's comments login

Well I failed one interview because to calculate number of days in between I suggested substracting Unix timestamps and dividing the difference by 86400.


Is there a problem with that or were the interviewers just being stubborn?


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.


I presume on the surface it looks nothing like in the ocean depths where it's under enormous pressure.


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?".


They fall from the sky. I don't buy them, I just hit up sondehub and see where there's a barely-used pair waiting for me to go clean up some litter.


What do you mean, what is sondehub?


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'm genuinely surprised that Apple product has a replaceable battery at all.


Do you mean “user-replaceable”? You can get new batteries for most Apple products (I think). Exception is AirPods (Pro).


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.


Well... congratulations?


Funnily, this JavaScript would not pass through most modern job interviews.


For those of us not in the know, why not?


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.


Dang my bad, I feel silly for not catching the sarcasm in hindsight. Apologies.


...and can cause cancer in California


It's actually well executed how they managed to say exactly once "Amadeus" or "Patton" in their biographical films.


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.


I knew all these answers once. Knowing them then got me to where I am now.


I've never known exactly the size of a cord of wood.


I mean rather culturally, historically, and geographically adjusted as these are very US centric.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: