602 karma · joined October 13, 2009
For example, if I commit something on a branch, and then later realize I made a typo in that commit, I can make a commit that fixes the typo, then use git rebase -i and make it a fixup commit. Fixup squashes the commit into another one, and discards the message.
http://google-styleguide.googlecode.com/svn/trunk/pyguide.ht...
I commented about this on another post. There's a nice explanation here as to why using mutable objects as default values in function/method definitions is bad:
http://effbot.org/zone/default-values.htm
In short, it can be bad to set default arguments to mutable objects because the function keeps using the same object in each call.
http://effbot.org/zone/default-values.htm
In short, it can be bad to set default arguments to mutable objects because the function keeps using the same object in each call.
It looks like Python is at ~400 in the graph, and Ruby is at ~1200. Am I missing something?
And thanks, my team and I worked hard at the competition. I always thought it was kind of cool that had a post about us on the White House blog. The website is down now, so here's a cached copy:
and thanks for taking an interest in me
I forgot to add this: the most recent interview that was discouraging was with a large travel-related company. A recruiter reached out to me (so, I didn't even apply), gave me a few questions to complete that I spent hours on. I worked super hard, typeset it in LaTeX, and figured it was way beyond what they normally receive from candidates. The recruiter even told me they were very impressed. I went in to interview, chatted with some engineers (and I even taught the second guy a few things, like the rename command), and never heard back. I emailed the recruiter and asked why. The recruiter said that the team simply needed to hire a senior candidate. I felt stupid for wasting my time.
Something similar happened with Jane Street; they wanted solutions to questions in OCaml. I spent a long time on the problems, submitted them in Scheme, Python, and OCaml, all using recursion, higher order functions, etc. After submitting the code, they turned me down.
Yelp also turned me down after I spent a long time on the problem they gave me. I did what the problem asked, including writing unit tests. It was fun to write since it was in Python, and I like Python. But again, turned down after submitting the code.
Also, I figured it wasn't a problem with the code, as I had friends who were hired by Amazon and Google review it and they said it looked fine.
These are the types of things that are making me want to stop interviewing.
What I'd like to do is become more active in the HN community, and eventually start working on projects related to studying Japanese or learning about Japan. I'm working on a small project now that will show a new Chinese character per day, because kanji-a-day.com is currently the top result in Google for "kanji of the day", and it's not nice looking.
http://cr.yp.to/djbdns/intro-dns.html
under the "Multiple Servers" section, he says
"To protect against computer failure, there are actually several root servers, several .to servers, and two yp.to servers."
I don't understand, is he saying there are only two DNS servers in the world that you can contact to resolve yp.to?