HNHacker News
TopNewBestAskShowJobs

eieio

3,173 karma · joined December 24, 2011

I build unusual games with big constraints (such as https://en.wikipedia.org/wiki/One_Million_Checkboxes). You can see all my work at https://eieio.games

I'm based in Brooklyn. You can reach me at eieiogames at gmail dot com

alum Jane Street Capital, Recurse Center (F23, W25)

submissionscomments
eieio··on What does O(log n) mean, exactly?
Nobody explains Big O because the OP demonstrates that he understands the idea of Big O by giving the complexity of a piece of code and explaining how the complexity would change if the code changes.

OP is confused with the idea of O(log n), not of Big O in general.

eieio··on Meet Runscope
Looks like a great product!

That being said, I can't be the only one who misread this as "runescape". Fortunately, I doubt there's significant overlap between users of runscope and of runescape :)

eieio··on My biggest problem with Vim
I spend all day in vim writing python, and I've got to agree that refactoring and completion are two of vim's weakest points(I have heard that ropevim is pretty good but I never got into it).

I've had very poor luck getting omnicompletion to work to my satisfaction, but one thing that works very well for me is opening buffers for several files related to what I'm working on and just using <C-n> / <C-p> for basic completion. I always have a bpython console open to test bits of code and make sure I'm calling functions correctly. The one thing that I miss is being able to complete a function name and have a small window pop up with its arguments and documentation. I've tried writing some simple plugins for this but have never managed more than a hack of a solution.

My system works incredibly well for me and I wouldn't use anything else, but many of my coworkers use totally different methods and I don't blame them.

eieio··on My biggest problem with Vim
I know just what you mean, it looks absolutely ridiculous. I occasionally send coworkers very long vim macros just for the enjoyment of explaining how useful some 100-character line of gibberish is.
eieio··on My biggest problem with Vim
I made a more detailed post below, but I would think an alias to something like vim -c s/^/\\=@\* (or @\+ I'm not sure which register you'd need to use) would be your best bet for fast editing: it should let you open vim with text from your clipboard already inserted on the first line.
eieio··on My biggest problem with Vim
I use the pentadactyl extension for firefox, and I've added the emacs hotkeys <C-a>, <C-e>, <C-n>, <C-p>, <C-f>, <C-b>, <M-f>, and <M-b> to insert mode so that I can at least move between lines and words without much problem. It's not vim, but it makes things like writing this comment a lot easier for me.

Also having <C-p> and <C-n> as up and down means that moving between search suggestions on sites is really easy, which is nice.

eieio··on My biggest problem with Vim
The easiest thing to do here would likely be to make an alias that runs vim -c s/^/\\=@\* which opens vim with the text from "* on the first line. You could even add a mapping like gg"* yG:qa!<Cr> to yank the new text and close vim(the space after the asterisk is to escape it, of course).

I definitely agree that having a faster way to use the system clipboard is great, but I don't like cloberring the clipboard when I do deletions and whatnot in vim, so I have <Leader><Leader> (I use ; for leader, seems like most people use ,) mapped to "* which I find much easier(;;y is so much faster than "+y for me).

eieio··on Source Code Makeover: Square Shooter, Part 1
I did find it strange that the post didn't even address that the allignment advice was contrary to PEP 8. That being said, I definintely find

  my_data   = 3
  your_data = 2
much easier to skim than

  my_data = 3
  your_data = 2
Given that PEP 8 even says "But most importantly: know when to be inconsistent -- sometimes the style guide just doesn't apply. When in doubt, use your best judgment. Look at other examples and decide what looks best." I have no problem occasionally using more than one space for allignment.
eieio··on Source Code Makeover: Square Shooter, Part 1
I try very hard to follow PEP 8, but I have noticed some very nice python code(such as the setup portion of Peter Norvig's beautiful sudoku code http://norvig.com/sudoku.html) that alligns equals signs using more than one space. I try to use allignment when it makes the code easier to read, but if I'm unsure I will defer to PEP 8 and not allign.
eieio··on Vim clutch
Only problem with ctrl-c is that it doesn't function exactly like escape(for example, if you're inserting text on multiple lines in visual block mode, ctrl-c will only insert the text on one line and cancel the command, whereas ctrl-[ or escape will properly insert the text). If that's a problem for you, you can rebind ctrl-c to actually work as escape. Either way, I find it quite comfortable.
eieio··on Vim clutch
If you use KeyRemap4MacBook[1] you can map caps lock to Ctrl, but also map just tapping caps lock to escape. Be warned, the only problem with this set up is that it's so good that you'll have trouble using another one; I disabled it when I got a thinkpad and starting doing about 50% of my development on my x220 instead. After that I changed to using ctrl-[ or ctrl-c in place of escape for most everything.

[1] http://pqrs.org/macosx/keyremap4macbook/list.html.en

eieio··on How a Mexican Drug Cartel Makes Its Billions
Also notable are the stories of what he has done since his escape:

"In 2005 on a Saturday evening, Guzmán reportedly strolled into a restaurant in Nuevo Laredo, Tamaulipas, with several of his bodyguards. After he took his seat, his henchmen locked the doors of the restaurant, collected the cell phones of approximately 30 diners and instructed them to not be alarmed.[26] The gangsters then ate their meal and left – paying for everyone else in the restaurant.[27]"

(from the same wikipedia article, of course)

eieio··on Handy text manipulation tricks in Sublime Text 2
Unless I'm misunderstanding the purpose of your 'TwiddleCase' function, you can simply highlight the text that you want to flip and hit ~ to invert the case.
eieio··on The Oatmeal Fights Legal Threat, Raises $20,000 in an Hour
I found it particularly funny because it's not exactly a great drawing of a bear, so claiming that it's a kodiak bear is pretty absurd.
eieio··on MacBook Pro gets Retina Display; MacBook Air updated with Ivy Bridge
I use change space(https://github.com/sdsykes/Change-Space) to get around this, but the fact that I can't have native 2-d spaces really bothers me. Change Space is good, but it does have a few bugs that wouldn't exist if Apple hadn't insisted on breaking spaces for no reason that I'm aware of.

I love my Macbook but can't stand the direction of the operating system. It feels like I use more and more hacks like the above just to have a usable machine.

eieio··on 10 Python One-liners To Impress Your Friends
I felt the same about number 3.

  [x in tweet.split() for x in wordlist]
Seems better to me than

  map(lambda x: x in tweet.split(),wordlist)
Although the natural thing for me to do would be

  [x for x in wordlist if x in tweet]
Which both generates a list of words instead of booleans(['scala', 'sbt'] instead of [True, False, False, False, False]) and also matches the 'sbt' in tweet.
eieio··on How to be a Programmer: A Short, Comprehensive, and Personal Summary
I agree with you: Spivak pronouns are definitely easy to understand. I just see getting more people to use them as key to having a standard third person gender neutral pronoun in English.
eieio··on How to be a Programmer: A Short, Comprehensive, and Personal Summary
Spivak pronouns have all the benefits of a singular "they" with all the drawbacks of introducing a new set of pronouns into an established language. My experiences with programmers tell me that getting a large group of people to change syntax is not easy.
eieio··on Introducing the New GitHub Graphs
Hm, I was able to close the tab after telling Firefox to stop the script. However, my browser certainly was frozen for several seconds before I was able. FF12 on OSX.
eieio··on Github is making me feel stupid(er)
I do this using firefox bookmarks/keywords using %s.

For example, I use the bookmark http://www.reddit.com/r/%s with the keyword rdr so that I can just type "rdr programming" into the location bar to go to http://www.reddit.com/r/programming. It has made my browsing a whole lot faster.

eieio··on Show HN: Using a color pattern to let a user 'recognise' their password
If I understand correctly, you're talking about confirming whether a password / confirm password box match. The purpose of the three colors is that they are displayed next to the password box every time the user types their password in, providing a visual clue as to whether they've entered their password correctly.
← PreviousPage 10 of 10