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$ $$$$$$$$$ $$$$ $$$$$$$$$$$$$$ % $$$$$
$$$$ $$$ $ $$ $$$$ $$$$$$ $ $ $$ $$$$
$$$$ $ $$$ %%%$$$ %% $$$ $$$$
$$$$ %%%% $$ %%%%%% %%% $$$$
$$$$ %%% %%%%% $ %%%%%%% $$$$
$$$$ %%%%% $$ %%% $$ $
$$ $ %% $ $ $$
$ $$ $ $ $
$ $$ $ %$ $$ $
$ $ $ %%$ $$$$
$$$ $$ $ %%% $ $ $$
$$ $$ $ %%%% $ $$$ $$ $
$ $$$ $$ %%%% $$$ $$$ $$$ $
$ $$$ $$ %%%$$$ $$$$ $$$$ $$$$ $
$$$$$$$$$$ $$$$$$$$$$$$$$ $$$$$$$$$ $
$$$$$$$ $$$$$$$$$$$$$$ $$$$$$$$ $
$$$$$$ %%$$$$$$$$$$$$$$ $$$$$$$$$$$$$$
$$$ $$ %$$$$$$$$$$ $$$$$$$$$ $$$$
$$ $ $$$$ $$$$$$$$ $$ $$$
$$ $ %$$$$ $$ $$$$
$ $ %%%%$$$ $$$$$$$$$$$$$ $$$
$$ $$ %%%% $$ $$$$
$$ $$ %%$$$$ $$$$$$$$$$ $$$
$ $ $$$$$%%%%%%%%%% $$$$
$$ $$ $$$$$%%% $$$
$ $ $$$$ %%%%%%%%%%%%%% $$$
$$ $$$$ %%%%%%%%%%%%% $$$
$$$ $ $$$$ $%%%% $$$
$$ $$ $$$$$ $$$$ $$$
$ $$ $$ $$$$$$ $$$ $$$
$ $$$$ $$ $$$$$$ $$$$ $$$
$ $$$ $$$ $$$$$$ $$$$$$$ $$$
$ $$$$$$$$$$ $$$$$$ $$$
$ $$ $$$$$$$$ $$$$$$$$$$$$$$$ $$$
$$$$$ $$$$$$$ $$$$$$$$$$$$$$$$$$
$$$$$$ $$$$$ $$$$$$
$$$$$ $$$$
$$$$$$ $$$
$$$$$ $$$
$$$$$$$$
$$$$$$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.
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.
http://underscorejs.org/#debounce
I never would have guessed that debouncing was first used to tame physical keys bouncing on contacts.
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.
This sentence has had a typo for 21 years.
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...
https://docs.google.com/drawings/d/1kshrK2RLkW-XV8enmWZxeRFR...
> x = {}
> x["foo bar"] = 1
> x
{ 'foo bar': 1 }In my experience there are only people that tolerate JIRA on one side of the spectrum and a bunch of people that hate JIRA on the other side.
def filter_authors(authors, company):
return [author['twitter_handle'] for author in authors if author['company'] == company and author['twitter_handle']]
EDIT: HN code formatting seems to be broken so you may need to scroll right to see the entire comprehension.You can do other SQL-like operations with list comprehensions too.
http://code.activestate.com/recipes/159974-sql-like-set-oper...
"The demand for our facilities and services could be adversely affected by the relaxation of enforcement efforts, leniency in conviction or parole standards and sentencing practices or through the decriminalization of certain activities that are currently proscribed by criminal laws."
Source: http://yahoo.brand.edgar-online.com/displayfilinginfo.aspx?f...
import json
import sys
text = sys.stdin.read()
try:
print json.dumps(json.loads(text), sort_keys=False, indent=4)
except Exception as e:
print eYou have a talent for clearly explaining complex abstractions. Nice work!
Political warfare isn't always obvious to a newcomer with several months on the job.