News for hackers. Stuff that matters.

shill

Re:Tell HN: Happy Thanksgiving Everyone on Thursday November 25, 2021 @05:03AM (#29339908)
Do you mind sharing the name of the book?
Thank you for not calling it a heat map.
Organizations can start by implementing strict wire transfer policies that require multiple authentication factors.
Re:Guide to Take-home Coding Challenges on Sunday February 11, 2018 @08:52PM (#16355986)
There are several possible reasons why you didn't include any tests in a take home exercise, and they are all bad.

1) You ran out of time to write tests.

This might be the least bad reason. You can probably talk your way out of this by explaining what tests you would have written if you had the time.

2) You don't know how to write tests.

This shows that you have only worked at places the don't do testing and that you haven't taken the initiative to learn about testing on your own.

3) You know how to write tests, but you don't think they are needed.

You could probably tell the interviewer why tests were not important for the particular exercise. But I have never seen a take home exercise that doesn't require a basic algorithm and some tricky conditional business logic. Both of which would benefit from unit tests.

4) The code you wrote isn't testable.

This is probably the worst reason. Everything is in one or two giant functions and you can't inject dependencies for testing without refactoring everything. This will frighten your interviewer.

Re:Dear Apple, please fix notifications on Wednesday January 31, 2018 @11:02AM (#16274825)
I just want my sms messages to be correctly ordered by sent/received time again.
Ego-depletion is mentioned, not always by name, in hundreds productivity and focus related articles and books published in the last 5 years or so.

Steve Jobs is often used as an example because he wore the same outfit to work every day, purportedly so he would not have to waste any crucial willpower early in the day on such a trivial task as choosing what to wear.

Debouncing is a pattern used in UI software development. Here’s an implementation.

http://underscorejs.org/#debounce

I never would have guessed that debouncing was first used to tame physical keys bouncing on contacts.

Re:Apple Says It Slows Older iPhones to Save Their Battery Life on Thursday December 21, 2017 @01:34PM (#15981498)
My geekbench CPU scores (single-core 1458, multi-core 2480) show that my 6s has been throttled but honestly I hadn't noticed a slowdown.

In which apps would I notice a significant difference if I replace my battery?

If Safari page load speeds increased I would be happy, but I assume that is more influenced by bandwidth and mobile optimization.

Re:Ask HN: Who is hiring? (December 2017) on Friday December 01, 2017 @02:55PM (#15826801)
I ctrl-f for 'Snoop Dogg'.
Re:CNN – 1996 Year in Review on Wednesday November 15, 2017 @10:03AM (#15704217)
> It's a question journalists like to ask themselves at the end of ever year.

This sentence has had a typo for 21 years.

Re:How Pure Is This Cup of Joe? on Monday November 06, 2017 @05:34PM (#15639606)
Does anyone know what the fish oil additive is used for?

I was recently researching how Trader Joe's coffee is so inexpensive and found some reviews noting a "fish sauce" flavor and a "fishy" flavor in two TJs coffee products.

https://www.thrillist.com/culture/best-trader-joe-s-coffee-t...

The problem is that many interviewers don't know how to suss out a good engineer. So they just ask questions that Google and Amazon ask. And that's why you spend half of your interview pre-optimizing contrived algorithms down to O(n) when the probability of the startup ever running code at scale is very small.

Older »