10 comments

[ 3.0 ms ] story [ 32.3 ms ] thread
> They told us all about this during our first day or two of classes - the infernally-named "onboarding".

Curious - why is "onboarding" an infernal-name?

Infernally. Not internally. Presumably the author doesn’t like the word.
I’ve heard it said that it only exists as a word so that there can also be “offboarding” when people are let go. I do not have a strong opinion about this.
State the units clearly, always.
Units aren't clear from a callsite, though. That's the point she is making: nobody can tell if `credit_account(123)` is crediting $1.23 or $123. In a strongly-typed world if `credit_account` took cents and the called passed dollars they'd have to explicitly cast it along the lines of `credit_account(to_cents(123))`.

(Also worth noting: never use a float to represent dollars and cents (or whatever currency) amounts because floating point precision will get you.)

Yes, that's the point. Credit_account_cents() would be the name that states the units.
Nice anecdote, it seems like this would've been a nice place to work at: Lots of things done right.
It was an ad-selling company, I'd be hating myself all day.
(comment deleted)